Sage does not understand the some of the following constructs in
Maxima.
These are tests I have done to check the interpretation of Maxima
parsing.
such as obtaining the sine function from maxima works OK. Most every
other seemed to map OK. Which is great! Thanks!
sage: a=maxima('sin').sage()
sage: a(1.2)
0.932039085967226
However the following functions do not.
sage: a=maxima('sign').sage()
sage: a(-3)
-3
sage: maxima('sign(-3)')
neg
sage: a=maxima('x!').sage()
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
.
.
.
TypeError: unable to make sense of Maxima expression 'x!' in SAGE
sage: a=maxima('min').sage()
sage: a(1,2)
min(1, 2)
sage: a=maxima('min(x,y)').sage()
sage: a(1,3)
min(1, 3)
sage: a
min(x, y)
sage: a=maxima('max(x,y)').sage()
sage: a
max(x, y)
sage: a(1,3)
max(1, 3)
sage: max(1,3)
3
sage: imag(1+I*2.0)
2.00000000000000
sage: a=maxima('imagpart').sage()
sage: a(1+2*I)
2*I + 1
sage: maxima('imagpart(1+%i*2)')
2
This has been tested for version...
sage: version()
'SAGE Version 3.1.2, Release Date: 2008-09-19'
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---