On Tuesday, July 11, 2017 at 7:23:20 AM UTC-7, Marcin Kostur wrote: > sage: taylor(1/4*x-x^2,x,0.2,3) > ... > typeError: ECL says: In function GCD, the value of the first argument is > -0.6000000000000003 > which is not of the expected type INTEGER > > but > sage: taylor(1/4*x-x^2,x,0.2,3) works ;-)) > > A lot of Maxima was written assuming exact numbers (integers and rationals) -- you have found such a function.
Generally Maxima converts floats to rationals in symbolic algorithms, but there is a global flag keepfloat, which is set to true by Sage, to prevent that conversion. That causes trouble, given the widespread implicit assumption about exact numbers. It's a bug of course -- perhaps you can submit a bug report to: http://sourceforge.net/p/maxima/bugs but you can work around it by setting keepfloat to false, or writing 1/5 instead of 0.2. best, Robert Dodier -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.