Fix #4352: elliptic_e(1,1.23) signals lisp error on complex number
commitc52b955b0259d718f75e04a2cf9af40ebdb3b34c
authorRaymond Toy <toy.raymond@gmail.com>
Sun, 25 Aug 2024 00:07:14 +0000 (24 17:07 -0700)
committerRaymond Toy <toy.raymond@gmail.com>
Sun, 25 Aug 2024 00:07:14 +0000 (24 17:07 -0700)
treeacc5366333b38a4eff45d2111a562b3383e8127e
parent23ecb057a40b96c079823ed6e66693f93e6d7e0d
Fix #4352:  elliptic_e(1,1.23) signals lisp error on complex number

`elliptic_e` calls `elliptic-e` to evaluate `elliptic_e(1,1.23)`.
This calls `elliptic-ec` which returns a Maxima complex number because
it calls `to` before returning.  That's not right; it should just
return a Lisp complex number and the caller needs to handle that
appropriately.
src/ellipt.lisp