API Documentation
SymEngine
SymEngine.AsciiArt — Typeshow symengine logo
LinearAlgebra.lu — MethodLU decomposition for CDenseMatrix, dense matrices of symbolic values
Also: lufact(a, val{:false}) for non-pivoting lu factorization
SymEngine.N — MethodConvert a SymEngine numeric value into a Julian number
SymEngine.coeff! — MethodReturn coefficient of x^n term, x a symbol
SymEngine.free_symbols — MethodReturn free symbols in an expression as a Set
SymEngine.function_symbols — MethodReturn function symbols in an expression as a Set
SymEngine.get_args — MethodReturn arguments of a function call as a vector of Basic objects
SymEngine.get_libversion — MethodGet libsymengine version
SymEngine.get_name — MethodReturn name of function symbol
SymEngine.get_symbol — MethodHelper function to lookup a symbol from libsymengine
SymEngine.get_symengine_class — MethodGet SymEngine class of an object (e.g. 1=>:Integer, 1//2 =:Rational, sin(x) => :Sin, ...
SymEngine.has_symbol — MethodDoes expression contain the symbol
SymEngine.have_component — MethodCheck whether libsymengine was compiled with comp
SymEngine.is_constant — MethodIs expression constant
SymEngine.is_symbol — MethodIs expression a symbol
SymEngine.lambdify — Functionlambdifyevaluates a symbolless expression or returns a function
SymEngine.series — FunctionSeries expansion to order n about point x0
SymEngine.subs — MethodsubsSubstitute 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) # dittoSymEngine.symbols — Methodsymbols(::Symbol) construct symbolic value
Examples:
a = symbols(:a)
x = symbols("x")
x,y = symbols("x y")
x,y,z = symbols("x,y,z")SymEngine.@vars — Macro@vars x y[1:5] z()Macro to define 1 or more variables or symbolic function
Example
@vars x y z
@vars x[1:4]
@vars u(), xIndex
SymEngine.AsciiArtLinearAlgebra.luSymEngine.NSymEngine.coeff!SymEngine.free_symbolsSymEngine.function_symbolsSymEngine.get_argsSymEngine.get_libversionSymEngine.get_nameSymEngine.get_symbolSymEngine.get_symengine_classSymEngine.has_symbolSymEngine.have_componentSymEngine.is_constantSymEngine.is_symbolSymEngine.lambdifySymEngine.seriesSymEngine.subsSymEngine.symbolsSymEngine.@vars