These are chat archives for symengine/symengine
I have finally found time to write down my question, here it goes.
I am building a Julia library that, among other things, will take a system of
equations either from strings (commonly read from a file) or as julia
and output a Julia function to evaluate the system of equations or any of its
higher order derivatives. Right now I am using
Calculus.jl to take the
derivatives and am finding that this is a huge bottleneck in my code.
I did some preliminary testing and found that after loading the equations into
symengine, using symengine to compute the derivatives is about 3 orders of
What I would like to do is the following: find an efficient way to move from
Exprs to symengine
Basics and then differentiate the
respect to specific symbols. The symbols are currently Julia
Does anyone here have any tips or guidelines I can follow to make this process
as efficient as possible?
Symbolto a string efficiently.
basic_parseis too slow.
Is there a way to do something like this (in pseudocode)
s = basic_parse(my_string) diff(s, “foo”)
Where foo is a symbol that appears in