# Using Serialization to store then load a lambdified function?

**URL:** <https://discourse.julialang.org/t/using-serialization-to-store-then-load-a-lambdified-function/85884>\
**Category:** General Usage\
**Tags:** question, sympy, serialization\
**Created:** [August 17, 2022, 6:20pm UTC](https://discourse.julialang.org/t/using-serialization-to-store-then-load-a-lambdified-function/85884 "2022-08-17T18:20:31Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![SteffenPL](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/steffenpl/32/206270_2.png) [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)\
**Post date:** [August 18, 2022, 2:51pm UTC](https://discourse.julialang.org/t/using-serialization-to-store-then-load-a-lambdified-function/85884/4 "2022-08-18T14:51:07Z")

</div>

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

One thing you could just try is to use:

```julia
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 😉

---

_[View the full topic](https://discourse.julialang.org/t/using-serialization-to-store-then-load-a-lambdified-function/85884)._
