Menu

#3448 cf([1,2]*[1,2]) gives error

None
open
nobody
None
5
2018-07-02
2018-07-02
No

cf supports operations on continued fractions represented as lists, e.g., cf([0,2],[0,5]) => [0,10].

Some cases work fine:

 cf([1,2,3,4,5]*[5,4,3,2,1]) => [7, 2, 224, 1, 1, 7]

But:

cf([0,1,2]*[0,1,2]) => cf: argument of sqrt must be an integer; found [0, 5, 16]
cf([0,3]^2) => same error
cf(1/[1,3]) => same error
cf([1,2]*[1,2]) => same error
cf([3]/[5]) => same error
cf(2/[3]) => same error

Maxima version: "5.41.0a_dirty"
Maxima build date: "2017-10-24 09:10:17"
Host type: "x86_64-w64-mingw32"
Lisp implementation type: "SBCL"
Lisp implementation version: "1.3.18"

Discussion


Log in to post a comment.

MongoDB Logo MongoDB