Partial sums of symbolic series?
2 ビュー (過去 30 日間)
コメント済み: Alasdair McAndrew 2016 年 10 月 14 日
I am just beginning to explore the symbolic math toolbox. And I can't work out how to create a sequence of symbolic partial sums. Suppose I enter, for example:
T = taylor(exp(sin(t),t,'Order',12)
c = children(T)
The answer has the constant term at the end, instead of the start, so that
is not correct. I can write a little program to list all the partial sums:
V = 
V = [V,taylor(exp(sin(t),t,'Order',n)];
but that seems very clumsy. Is there a better, more canonic way to do this?
Finally, with the array V above, if I display V, it's done using abbreviations, so that terms aren't repeated. How can I display V simply, in full?
回答 (2 件)
Walter Roberson 2016 年 10 月 13 日
However, remember that the order of terms is not documented, so relying on children() to return them in sorted order is not robust. To get sorted order you should be looking at coeffs()
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!