/usr/lib/open-axiom/input/contfrc.input is in open-axiom-test 1.4.1+svn~2626-2ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | -- Input generated from ContinuedFractionXmpPage
)clear all
c := continuedFraction(314159/100000)
partialQuotients c
convergents c
approximants c
pq := partialQuotients(1/c)
continuedFraction(first pq,repeating [1],rest pq)
z:=continuedFraction(3,repeating [1],repeating [3,6])
dens:Stream Integer := cons(1,generate((x+->x+4),6))
cf := continuedFraction(0,repeating [1],dens)
ccf := convergents cf
eConvergents := [2*e + 1 for e in ccf]
eConvergents :: Stream Float
exp 1.0
cf := continuedFraction(1,[(2*i+1)**2 for i in 0..],repeating [2])
ccf := convergents cf
piConvergents := [4/p for p in ccf]
piConvergents :: Stream Float
continuedFraction((- 122 + 597*%i)/(4 - 4*%i))
r : Fraction UnivariatePolynomial(x,Fraction Integer)
r := ((x - 1) * (x - 2)) / ((x-3) * (x-4))
continuedFraction r
[i*i for i in convergents(z) :: Stream Float]
|