Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Julia lambdify simpy expression: sympy_to_symbolics ? #402

Open
mmikhasenko opened this issue Oct 8, 2021 · 6 comments
Open

Julia lambdify simpy expression: sympy_to_symbolics ? #402

mmikhasenko opened this issue Oct 8, 2021 · 6 comments

Comments

@mmikhasenko
Copy link

mmikhasenko commented Oct 8, 2021

The question that came today in discussion with redeboer on ampform.

Since simplification of some special functions works only in simpy currently,
I would like to convert the simpy output to Simbolics.jl objects in order to lambdify in julia.
Is it possible, straightforward?

┆Issue is synchronized with this Trello card by Unito

@redeboer
Copy link

redeboer commented Oct 8, 2021

Thanks for posting this question @mmikhasenko!
For context: I was originally wondering whether it's an idea to implement lambdification from sympy/SymPy.jl to Julia code. (But maybe better to post that in the sympy repo?)

@mmikhasenko
Copy link
Author

mmikhasenko commented Oct 8, 2021

I also run Simpy.jl and getting the sumpy objects.
Julia code is used for the numerical approach, I am looking forward to Simbolics.jl to place the gap. But there might be a shortcut with simply conversion already now.

I believe it is easiet to do on Julia's side the python side.

Let's see what the experts will say

@ChrisRackauckas
Copy link
Member

There's a partial PR and some functions on it already. You might want to help finish #351

@mmikhasenko
Copy link
Author

wwhuyyy! I can certainly test it on my case

@mmikhasenko
Copy link
Author

looking more carefully, it seems that we need the opposite operation to what is discussed
not symbolics_to_sympy, but rather sympy_to_symbolics. It does not seem to exist.

Am I missing something?

@ChrisRackauckas
Copy link
Member

Oh yes, good point. We need the other direction.

@mmikhasenko mmikhasenko changed the title Julia lambdify simpy expression: example, mentioning in docs Julia lambdify simpy expression: sympy_to_symbolics ? Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants