Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dankogai committed Feb 8, 2016
1 parent b47bc87 commit 7756706
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,22 @@
Protocol-Oriented Number System in Pure Swift

![typetree](./typetree.png)

## SYNOPSIS

````swift
let bn = BigInt(2) ** 128
// 340282366920938463463374607431768211456
let bq = BigInt(1).over(bn)
// (1/340282366920938463463374607431768211456)
let bz = bq + bq.i
// ((1/340282366920938463463374607431768211456)+(1/340282366920938463463374607431768211456).i)
bz + bz
// ((1/170141183460469231731687303715884105728)+(1/170141183460469231731687303715884105728).i)
bz - bz
// ((0/1)+(0/1).i)
bz * bz
// ((0/1)+(1/57896044618658097711785492504343953926634992332820282019728792003956564819968).i)
bz / bz
// ((1/1)+(0/1).i)
````

0 comments on commit 7756706

Please sign in to comment.