Reduce.jl Library

Index

Reduce Interface

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

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
Reduce.parse(r::RExpr)

Parse a Reduce expression into a Julia expression

Examples

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

Loads the specified package into REDUCE

Examples

julia> load_package(:rlfi)
source
Reduce.squashFunction
squash(expr)

Reduces an entire program statement block using symbolic rewriting

source

Tools & Options

Reduce.parsegenFunction
parsegen(::Symbol,::Symbol)

Parser generator that outputs code to walk and manipulate REDUCE expressions

source
Reduce.unfoldgenFunction
unfoldgen(::Symbol,::Symbol)

Parser generator that outputs code to walk and manipulate Julia expressions

source
SyntaxTree.linefilter!Function
linefilter!(::Expr)

Recursively filters out :LineNumberNode from Expr objects.

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
Reduce.SubHoldFunction
Reduce.SubHold(::Real)

Sleep timer in case of clogged Reduce pipe on SubCall

source
Reduce.SubFailFunction
Reduce.SubFail(::Integer)

Failure limit in case of clogged Reduce pipe on SubCall

source
Reduce.ColCheckFunction
Reduce.ColCheck(::Bool)

Toggle whether to reset REPL linewidth on each show

source
Reduce.PrintLogFunction
Reduce.PrintLog(::Bool)

Toggle whether to display the log of REDUCE commands

source
ForceImport.@forceMacro
    @force using Module

Forces imports of exported methods from Module, even if there are conflicts.