API Documentation

SymEngine

LinearAlgebra.luMethod

LU decomposition for CDenseMatrix, dense matrices of symbolic values

Also: lufact(a, val{:false}) for non-pivoting lu factorization

source
SymEngine.subsMethod
subs

Substitute values into a symbolic expression.

Examples

@vars x y
ex = x^2 + y^2
subs(ex, x, 1) # 1 + y^2
subs(ex, (x, 1)) # 1 + y^2
subs(ex, (x, 1), (y,x)) # 1 + x^2, values are substituted left to right.
subs(ex, x=>1)  # alternate to subs(x, (x,1))
subs(ex, x=>1, y=>1) # ditto
source
SymEngine.symbolsMethod

symbols(::Symbol) construct symbolic value

Examples:

a = symbols(:a)
x = symbols("x")
x,y = symbols("x y")
x,y,z = symbols("x,y,z")
source
SymEngine.@varsMacro

Macro to define 1 or more variables in the main workspace.

Symbolic values are defined with _symbol. This is a convenience

Example

@vars x y z
source

Index