-
Notifications
You must be signed in to change notification settings - Fork 163
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
Gruntz Demo #2688
Gruntz Demo #2688
Conversation
cc @certik |
We can demonstrate the sample case that sympy use in their documentation which is
So i) ii) We then use sign on the generated exponent and the input variable
Now based on the value returned through sign, we return the output
|
Internally
This gives us |
A slightly more involved example would be this
|
Perfect. Yes, let's do the sin(x)/x, and you can take the running example in sympy and just simplify it to the bare minimum. Then we'll port the simplified code to LPython. |
The latest commit fixes some import errors and any issues with the code and now we can get results for our simplified gruntz algorithm through sympy. I've added a test for the same saying
I could maybe add another file that is relevant only for the |
The recent commits simplifies the previous version of gruntz by quite a bit. For our use case i.e.
|
Also talking about the So the
All of these have |
For the
I've raised a PR to symengine to add functionality for |
The
And technically the |
Listing all blockers below. |
e9a5cd9
to
81928ce
Compare
This is a draft PR trying to replicate the gruntz algorithm and a few test cases for the same.