Convert symbolic SymPy expression to native Julia code?

I believe it is possible and might be done already but I have not found.
It would gain an infinite factor in the evaluation speed as in the example below:

I think you want lambdify Though it isn’t quite as fast as you can make it due to an invokelatest call in the _lamdify method. This can be worked around in your code, should you need it.

1 Like

It looks very promising, thanks a lot! I will try.