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

Usage example does not work #6

Open
kockahonza opened this issue Nov 1, 2024 · 4 comments
Open

Usage example does not work #6

kockahonza opened this issue Nov 1, 2024 · 4 comments

Comments

@kockahonza
Copy link

Hi, I've just found this package and would love to use it but I'm having trouble getting it to work. I've tried to exact example as in the README and I get "Aborted" for anything besides the simplest things.

julia> using Symbolics; using SymbolicsMathLink

julia> @variables x;

julia> expr = x^2 + x - 1;

julia> result = wcall("Solve", expr==0)
var"\$Aborted"

I think the wolfram installation was found correctly as

julia> wcall("Sin", x)
sin(x)

seems to work as intended, but anything involving Solve fails.

@eswagel
Copy link
Owner

eswagel commented Nov 1, 2024

Unfortunately, as far as I can tell that's something going wrong with MathLink, which handles the interface with Mathematica. I'll do some more testing to figure out for sure if that's the case, but if it is that's not easy for me to fix.

@kockahonza
Copy link
Author

I was thinking it might be, thanks for checking though.

@eswagel
Copy link
Owner

eswagel commented Nov 13, 2024

It does seem like the issue is in converting the W"Solve" head into Mathematica. I'll try to fix it ASAP.

@eswagel
Copy link
Owner

eswagel commented Jan 19, 2025

Finally got around to this, and the mistake was just a typo in the Readme. For Julia Symbolics, the syntax to create an Equation is expr ~ 0 not expr == 0. I've updated the examples in the readme, so give it a try now.

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

2 participants