Re: How to extract the polynomial from the maple s



Dear Nasser,

Thanks for the information about accessing the maple manuel.

The main part of my problem is with the format of the output of
the series command in matlab:

series(L^3*H^2*W^5+(L^4*H^4+L^5*H^2)*W^6+(2*L^6*H^4+L^5*H^4+L^7*H^2)*W
^7+O(W^8),W,8)

Here, the polynomial that I'm interested in is embedded in some other
text i.e. 'series(' ... ',W,8)'. Do you have any suggestions on how
I could remove this extra text?

THanks again,
Paul

Nasser Abbasi wrote:



"Paul Lusina" <paull@xxxxxxxxxx> wrote in message
news:ef3270e.-1@xxxxxxxxxxxxxxxxxxx
Dear newsgroup:

The maple command 'series' outputs a fomat that I'm having
difficulty
using in the matlab environment.

I am using the maple symbolic toolbox to find the polynomial
series
expansion of a symbolic fraction of the form:
T = N(W,L,H)/D(W,L,H);

The command to find the series expression is:
no_coeff = 7;
S = maple('expand', maple('series', T, W, no_coeff+1));

The output of the function call is:
S =


series(L^3*H^2*W^5+(L^4*H^4+L^5*H^2)*W^6+(2*L^6*H^4+L^5*H^4+L^7*H^2)
*W
^7+O(W^8),W,8)

I would like to assign the polynomial as a function of W to a
variable for further computations.

I have tried using:
maple('coeffs',S,W), but I get an error message:
??? Error using ==> sym.maple
Error, invalid arguments to coeffs

For individual coefficients the command
maple('coeff',S,W^5)
Gives the correct coefficient for the symbol W^5.

I'm operating on a Linux Debian platform using Matlab
7.0.4.352 (R14) Service Pack 2.

Any help would be much appreciated!

If you are using the maple command from inside Matlab, then to find
what the
maple commands are you simply need to get a maple manual. They are
the same
exact maple commands. No need to ask here what is the maple command
to do
this and that. There is a maple manual that shows all of these
commands.

If you do not have maple itself istalled, there are a free ones
here

<http://www.maplesoft.com/products/maple/manuals/>

you can also ask in the maple newsgroup.

Nasser



.



Relevant Pages

  • Re: matlab terminated unexpectedly (during the session, maple is called)
    ... Above is the code structure of my .m file. ... Maple is called in the command -- str2num ... The ver of matlab I am using is R13. ...
    (comp.soft-sys.matlab)
  • Re: matlab terminated unexpectedly (during the session, maple is called)
    ... Above is the code structure of my .m file. ... Maple is called in the command -- str2num ... The ver of matlab I am using is R13. ...
    (comp.soft-sys.matlab)
  • Re: Matlab Maple Matlink Problems
    ... We recently installed Maple10 and Matlab 7r13 onto our Gentoo Linux ... everything seems to be running okay, but when we try to open the ... ; or another command which would cause openlink; ... After much searching on the net and through the Maple and Matlab ...
    (comp.soft-sys.matlab)
  • Re: algebraic problem, no explicit solution
    ... Type this command into Maple. ... That probably is why Matlab didn't return a result. ... I believe I want the complex roots. ...
    (comp.soft-sys.matlab)
  • Re: MatLab Display
    ... the input and especially the output display of computations. ... command line only, and the 'pretty' command for output display, while ... Other programs, like Maple, not only display output ... The best material model of a cat is another, or preferably the same, cat. ...
    (comp.soft-sys.matlab)