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

taylor() and pade() #120

Open
imakn634 opened this issue Feb 21, 2023 · 2 comments
Open

taylor() and pade() #120

imakn634 opened this issue Feb 21, 2023 · 2 comments

Comments

@imakn634
Copy link

In Maxima-Jupyter, the pade() does not work:

taylor (1 + x + x^2 + x^3, x, 0, 3);
pade (%, 1, 1);

pade: first argument must be a Taylor series; ...

This is because taylor() in Maxima-Jupyter does not return /T/ expression.
Any help?
Is there any tip to return /T/ expression?

@robert-dodier
Copy link
Owner

Hmm, I guess maxima-jupyter is converting % to an ordinary, non-Taylor, form for display. I find a workaround is to assign the result to a named variable, e.g. foo: taylor(...) and then pade(foo, 1, 1).

Not sure what to do about the problem in general. Aside from Taylor, there are rational function representations which are displayed with /R/. I guess the problem is that there is a display form which is different, but at present there isn't a way to distinguish them.

@imakn634
Copy link
Author

Thank you for quick reply! Surely,
pade (taylor (1 + x + x^2 + x^3, x, 0, 3), 1, 1) works.

Maxima on terminal returns:

(%i1) taylor (1 + x + x^2 + x^3, x, 0, 3);
                              2    3
(%o1)/T/             1 + x + x  + x  + . . .

It woud be nicer if Maxima-Jupyter returns the same form...

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