repo.or.cz
/
io
/
quag.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updating built in Io code to use += instead of x = x + y
[io/quag.git]
/
addons
/
ContinuedFraction
/
samples
/
Sample.io
blob
316e4de92a8d98b69495f36b2db950619f00d4d0
1
#!/
usr
/
bin
/
env io
2
3
/* Example usages of ContinuedFraction */
4
5
cf
:=
ContinuedFraction
with
(
2
) +
SQRT
with
(
2
) +
SQRT
with
(
3
) +
E
6
7
"2 + sqrt(2) + sqrt(3) + e = ["
print
8
for
(
i
,
0
,
100
, (
cf
at
(
i
) ..
", "
)
print
)
9
"...]"
println