On Tuesday, June 3, 2014 7:12:12 AM UTC-7, Bruno wrote:
>
> RuntimeError: ECL says: In function GCD, the value of the second argument
> is 1.0 which is not of the expected type INTEGER
>
>
> I don't know what this means. Can anyone give me a clue?
>
>
It means Maxima, which gets used for integration, runs into a problem. This
is because sage instructs maxima to keep floating point values rather than
substitute them with rational or integer values. Apparently you are hitting
a branch in the integration code that doesn't like that. A simpler example:
sage: integrate(e^(3.0/x),x,1,2)
RuntimeError: ECL says: In function GCD, the value of the second argument is
1.0
which is not of the expected type INTEGER
In maxima proper we can get the same error, although by default things work
(see below).
You may be able to hack sage's maxima into submission by executing:
sage: maxima_calculus.eval("keepfloat:false")
but I suspect you'll probably run into problems elsewhere.
---Example of same behaviour in maxima proper:
(%i2) integrate(%e^(3.0/x),x,1,2);
rat: replaced 3.0 by 3/1 = 3.0
rat: replaced -3.0 by -3/1 = -3.0
rat: replaced 3.0 by 3/1 = 3.0
rat: replaced 3.0 by 3/1 = 3.0
rat: replaced 20.085536923187668 by 138664461/6903697 = 20.08553692318768
rat: replaced 20.085536923187668 by 138664461/6903697 = 20.08553692318768
rat: replaced 20.085536923187668 by 138664461/6903697 = 20.08553692318768
rat: replaced 3.0 by 3/1 = 3.0
rat: replaced 3.0 by 3/1 = 3.0
3
(%o2) 3 gamma_incomplete(- 1, - 3) - 3 gamma_incomplete(- 1, - -)
2
(%i3) keepfloat:True;
(%o3) True
(%i4) integrate(%e^(3.0/x),x,1,2);
rat: replaced 3.0 by 3/1 = 3.0
Maxima encountered a Lisp error:
In function GCD, the value of the second argument is
1.0
which is not of the expected type INTEGER
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.