-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Allow keywords such as latex_name=LaTeX while defining symbolic function #6290
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:3
Nice. Could you add more to the docstring for function (at least the one that I get by default when I do function? from the sage prompt) that explains what happens to all kwds arguments? You do give a nice example (with riemann), but a sentence or two explaining what is going on would be very nice. |
comment:4
Replying to @williamstein:
Thanks for your comments! As you suggested, I have updated the patch with expanded docstrings. |
comment:5
Looks good to me. |
comment:6
Merged in sage-4.1.alpha0. |
Author: Golam Mortuza Hossain |
Reviewer: Nick Alexander |
Merged: 4.1.alpha0 |
comment:8
Would something similar be possible whenever a variable is defined? That would make it really flexible. |
comment:9
Replying to @sagetrac-schymans:
Hmmm, thats a great suggestion. Could you please post this to sage-devel? |
In new symbolics, underlying "sage.symbolic.function.SFunction" class allows one to pass the keywords such as "latex_name=LaTeX". It would be really good if we expose this feature at the user interface level. This will directly allow LaTeX customization by users according to their need.
Currently, Sage (4.0.1) raises error if one tries to do so.
Couple of example usage:
(1) Define symbolic function with its latex representaion
(2) Printing arguments of a symbolic functions as its indices.
Attached patch allows keyword arguments while defining symbolic functions.
CC: @williamstein
Component: symbolics
Keywords: latex_name, symbolic function
Author: Golam Mortuza Hossain
Reviewer: Nick Alexander
Merged: 4.1.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/6290
The text was updated successfully, but these errors were encountered: