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 polynomial in two variables does not work #7472
Comments
comment:1
I hope it has been fixed by the attached patch. |
Attachment: trac-7472-taylor.patch.gz |
this patch should be installed on the top of previous patch and improves documentation |
comment:2
Attachment: trac-7472-taylor-fixed_doc.patch.gz |
This comment has been minimized.
This comment has been minimized.
comment:3
I'm waiting for a build of 4.2.1... but in the meantime, is the new syntax (list for variables, list for numbers) more or less equivalent to other Sage functionality, or Mathematica/Maple syntax? I honestly don't know, just asking. It would be good to have compatibility, though. For instance, plotting has the variable and range together (x,-5,5), so maybe [x,4] and [y,1] would be more appropriate? Looks like Mma allows for different "distance" for different variables, see here... Just thinking out loud here. |
comment:4
Replying to @kcrisman:
Can be done easily, the expression is passed to Maxima and Maxima allows many possibilities how to use taylor command. I wanted to do as minotr change as possible. I was thinking for example also on the possibility to use different order for different variable, but I do not know if there is a demand for this. I do not know to much about habits in Sage notation, but I think that we evaluate expansion about point in n-dimensional space, so the coordinates should be together. |
Reviewer: Karl-Dieter Crisman |
comment:5
FWIW, I also like the MMA notation better. It is more consistent with the interface to |
Author: Robert Marik |
comment:6
OK. what about this, is it acceptable?
Note that in the first example the degree of polynomial is 4 and in the second example the degree of polynomial is 7. |
apply on the top of the two other patches |
comment:7
Attachment: trac-7472-taylor-experimental.patch.gz |
comment:8
btw: it seems that taylor command in Maxima may return not only Taylor polynomial as in calculus books, but also truncated power expansion truncated at given power. I think that this could be something different from Taylor polynomial, so the name of the command is misleading. How is it in Mathematica and Maple? What should be in Sage? |
New patch, replaces all previous patches. Notation is more Sage like. |
comment:9
Attachment: trac-7472.patch.gz |
comment:10
I assume the idea of different degrees for different variables was lost? That really doesn't matter to me, though. What about this one, from the documentation?
Why doesn't it end this way?
Maybe this is documented in Maxima? It does seem odd, though, if I'm understanding what a multivariable Taylor polynomial is supposed to look like. But overall this looks fine, assuming the Maxima computations are correct. I am waiting for 4.3.alpha2 to build to see if there needs to be a rebase, but surely it would be trivial if so. |
comment:11
Replying to @kcrisman:
Yes, different degrees for different variables seem odd to me (from the point of view of pure caculcus) and I do not know, if there is a demand to keep this functionality.
Very good question :). Maxima in fact returns
and Sage changes it somehow into
I do not know why, perhaps I should ask on sage-devel. The same problem is also in current Sage. The linear Taylor polynomial hal always slope intercept form f'(a)x+q, but should be (and Maxima returns) point slope form f'(a)(x-a)+f(a)
|
comment:12
Replying to @robert-marik:
The question at sage-devel. |
comment:13
I have made some trivial changes. The new thing is a bug in some ways, but shouldn't keep us from merging this valuable functionality. |
Apply only this. |
Merged: sage-4.3.1.rc1 |
comment:14
Attachment: trac-7472-review.patch.gz |
Changed author from Robert Marik to Robert Mařík |
make
work
Component: calculus
Keywords: taylor polynomial, derivative
Author: Robert Mařík
Reviewer: Karl-Dieter Crisman
Merged: sage-4.3.1.rc1
Issue created by migration from https://trac.sagemath.org/ticket/7472
The text was updated successfully, but these errors were encountered: