Library

Reduce.jl Library

Index

Functions

Reduce.ResetFunction.
Reduce.Reset()

Kills the REDUCE process and starts a new instance.

Examples

julia> Reduce.Reset()
Reduce (Free PSL version, revision 4015),  5-May-2017 ...
source
Reduce.RExprType.

A Reduce expression

Summary:

type RExpr <: Any

Fields:

str :: Array{Compat.String,1}

source
Reduce.rcallFunction.
rcall(r::RExpr)

Evaluate a Reduce expression.

Examples

julia> R"int(sin(x), x)" |> RExpr |> rcall
 - cos(x)
source
rcall{T}(e::T)

Evaluate a Julia expression or string using the Reduce interpretor and convert output back into the input type

Examples

julia> rcall("int(sin(y)^2, y)")
"( - cos(y)*sin(y) + y)/2"
julia> rcall(:(int(1/(1+x^2), x)))
:(atan(x))
source
Base.parseFunction.
parse(r::RExpr)

Parse a Reduce expression into a Julia expression

Examples

julia> parse(R"sin(i*x)")
:(sinh(x) * im)
source
Reduce.load_packageFunction.
load_package(::Symbol)

Loads the specified package into REDUCE

Examples

julia> load_package(:rlfi)
source
Reduce.parsegenFunction.
parsegen(::Symbol,::Symbol)

Parser generator that outputs code to walk and manipulate REDUCE expressions

source
Reduce.RationalFunction.
Reduce.Rational(::Bool)

Toggle whether to use '/' or '//' for division in julia expressions

source
Reduce.SubCallFunction.
Reduce.SubCall(::Bool)

Toggle whether to substitute additional expressions

source