Using Serialization to store then load a lambdified function?

I’m not sure if there is a direct way.

One thing you could just try is to use:

using SymPy, Symbolics

@syms a b c 
func = a^2 + b^3-c/a 
funky = lambdify(func,(a,b,c))

@variables a b c 
func_symbolics = funky(a,b,c)

# ... and then proceed as posed with Symbolics...

(But it depends a bit on your particular example.)

I wouldn’t be surprised if there are ways do it with Symbolics and some related packages,
for example it should definitely be possible to make a polynomial.
Anyway, that’s in the end your decision. But feel free to post examples and we can see if it works.


By the way, feel free to uncheck my post as solution if you are looking for another one :wink:

1 Like