(%i1) jacobi_p(300,42, 12,10.1);
Maxima encountered a Lisp error:
arithmetic error FLOATING-POINT-OVERFLOW signalled
We have jacobi_p(300,42, 12,10.1) = 4.85995022683574b405. I suppose Maxima could automatically switch to big floats when floating point overflow happens, but I don't know
how that would work.
I don't think Maxima should do anything about this. There's some expectation that floating-point arithmetic should be fast and we're willing to trade that for things like overflow and underflow. Automatically changing to bigfloats could cause a huge slowdown.
Log in to post a comment.