Basics
Maxima.MExpr
— Type.A Maxima expression
Summary:
type MExpr <: Any
Fields:
str :: String
Maxima.MExpr
— Method.MExpr(expr::Expr)
Convert Julia expression to Maxima expression
Examples
julia> MExpr(:(sin(x*im) + cos(y*φ)))
cos(%phi y) + %i sinh(x)
Base.parse
— Method.parse(mexpr::MExpr)
Parse a Maxima expression into a Julia expression
Examples
julia> parse(m"sin(%i*x)")
:(im * sinh(x))
Maxima.mcall
— Method.mcall(m::MExpr)
Evaluate a Maxima expression.
Examples
julia> m"integrate(sin(x), x)"
integrate(sin(x), x)
julia> mcall(ans)
- cos(x)
Maxima.mcall
— Method.mcall(expr::T) where T
Evaluate a Julia expression or string using the Maxima interpretor and convert output back into the input type
Examples
julia> mcall("integrate(sin(y)^2, y)")
"(y-sin(2*y)/2)/2"
julia> mcall(:(integrate(1/(1+x^2), x)))
:(atan(x))