Updating built in Io code to use += instead of x = x + y
[io/quag.git] / addons / ContinuedFraction / samples / Sample.io
blob316e4de92a8d98b69495f36b2db950619f00d4d0
1 #!/usr/bin/env io
3 /* Example usages of ContinuedFraction */
5 cf := ContinuedFraction with(2) + SQRT with(2) + SQRT with(3) + E
7 "2 + sqrt(2) + sqrt(3) + e = [" print
8 for(i, 0, 100, (cf at(i) .. ", ") print)
9 "...]" println