-
-
Notifications
You must be signed in to change notification settings - Fork 601
Wrap Maxima's demoivre and exponentialize #10038
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
Comments
comment:1
You can use
I am very much against wrapping each maxima function for manipulating symbolic expressions individually from Sage. Even though maxima provides a lot of functionality, their user interface is far from intuitive. IMHO, the user interface to these functions should be something like:
BTW, it would be great if we could think about how to provide basic functionality like this directly in Sage without relying on maxima. It's possible that this requires wrapping more of pynac's features, for example
but it's well worth the effort. |
comment:2
Replying to @burcin:
Yes, thanks for that reminder!
I don't see why we can't provide a more intuitive user interface for some of them, though. Just because a ticket is opened doesn't mean it will ever be fulfilled, but at least it's here now if enough people want it.
This seems awkward, esp. if you don't know ahead of time whether it's sin or cos. I think that
Yes, of course. If only we could have that Sage Days solely about symbolics...
|
Changed keywords from none to expression tree |
comment:7
Replying to @burcin:
The links seem to have slightly changed: |
Branch: u/charpent/dm2 |
comment:9
Replying to @EmmanuelCharpentier: Eleven years later, it seems obvious that no one ever undertook to wrap Pynac's tree traversal utilities. However, the This proposal passes ==> New commits:
|
Commit: |
comment:10
Wups. A nice typo : ==> |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:12
Typo fixed ==> |
Author: Emmanuel Charpentier |
comment:14
One doctest (src/sage/doctest/sources.py) fails. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:16
New patchbot attempt ==> |
comment:17
A few little things: It would be good to use Sage's doc conventions: - """Returns this sumbolic expression with all circular and hyperbolic
+ """
+ Return this sumbolic expression with all circular and hyperbolic
functions replaced by their respective exponential
expressions.
The import here
should go after the docstring (which probably is not being picked up as a docstring but instead just a string being created within the function). -return op(*[self(_) for _ in ex.operands()])
+return op(*[self(oper) for oper in ex.operands()]) |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:20
Replying to @sagetrac-git:
Fixed doctests pass. setting |
Reviewer: Travis Scrimshaw |
Changed branch from u/charpent/dm2 to u/tscrim/demoivre_exp-10038 |
comment:22
Thanks ! Okay with your cosmetics (notwithstanding the fact that I do not grasp their rationale) ==> |
comment:23
Thank you. Most of them are formatting corrections, so after a |
Changed branch from u/tscrim/demoivre_exp-10038 to |
Sage does not appear to have easily accesible analogues of Mathematica's
TrigToExp
andExpToTrig
. From AskSage:CC: @kcrisman @sagetrac-fmaltey @slel
Component: symbolics
Keywords: expression tree
Author: Emmanuel Charpentier
Branch/Commit:
e913bee
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/10038
The text was updated successfully, but these errors were encountered: