SymEngine.jl
SymEngine.jl copied to clipboard
Where is the documentation (API) ?
I can't find a proper documentation (aside the github repository redme) neither in SymEngine.jl neither in the symengine C++ repository..
It seems very close to SymPy. For now I can't find equivalent of simplify() and solve():
An example to symbolically compute a Maximum Likelihood Estimator that resembles very much SymPy.jl:
using SymEngine
@vars Σx² θ n x
# MLE for Normal(0,θ)
Lakn = (1/(SymEngine.sqrt(2*SymEngine.pi * θ)^n) ) * exp(-Σx² / (2*θ))
lLn = log(Lakn)
# Error: dlL1_θ = SymEngine.simplify(diff(lLn,θ))
dlL1_θ = diff(lLn,θ)
# Error: SymEngine.solve(dlL1_θ,θ)
L1 = (1/(SymEngine.sqrt(2*SymEngine.pi * θ)) ) * exp(-x^2 / (2*θ))
lL1 = (log(L1))
dlL1_θ = (diff(lL1,θ))
dlL2_θ = (diff(dlL1_θ,θ))
E = subs(dlL2_θ , x^2=>θ)
Ifisher = -E
Varθ = 1/Ifisher
Documentation is now available. https://symengine.org/SymEngine.jl/