On Tuesday, November 6, 2012 11:12:45 PM UTC-8, Rolandb wrote:
>
> Hi, have a look at:
>
> print [p for p in Integer(8).factor(limit=10^6)]
>
> [(2, 3L)]
>
>
> Is the 3L intended?
>
No. That's a "python multi precision integer" as generated by
sage: long(10)
10
That's a crazy type for an exponent. It should be a sage Integer or if
absolutely required for efficiency reasons, a python "int".
The following line:
> if 1/3*log(3L) != log(6L): print "Correct"
>
> yields: TypeError: ECL says: THROW: The catch MACSYMA-QUIT is undefined...
>
Yes, translation to maxima does not know about "python long" string
literals. The expect interface stumbles too:
sage: maxima(1/3*log(long(3)) != log(long(6)))
TypeError: Error executing code in Maxima
...
Maxima ERROR:
incorrect syntax: l is not an infix operator
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
Visit this group at http://groups.google.com/group/sage-support?hl=en.