Re: Polynomial Expansion in matlab
- From: "Steven Lord" <slord@xxxxxxxxxxxxx>
- Date: Sat, 24 Jun 2006 14:47:12 -0400
"Donglai Liu" <edward_srnre@xxxxxxxxxxx> wrote in message
news:ef3a320.-1@xxxxxxxxxxxxxxxxxxxxxxxxxx
given a variable 'Z' and constants'Z0','Z1','Z2',...'Zn'. Start with
two outcome (W2 and W1)from the polynomial, then this polynomial will
be '(Z-Z0)',W2=1 and W1=-Z0, effectively, W1 is the coefficient of
'Z' to the power of zero after expand, W2 is the coefficient of 'Z'
to the power of one and W3 is coefficient of 'Z' to the power of
three, so on and so forth. If there are three outcome needed, the
polynomial then become '(Z-Z0)(Z-Z1)', the results desired are W3=1,
W2=-(Z0+Z1), W1=Z0Z1. For four outcomes,
polynomial:'(Z-Z0)(Z-Z1)(Z-Z2)', results are W4=1, W3=-(Z0+Z1+Z2),
W2=Z0Z1+Z0Z2+Z1Z2, and W1=-Z0Z1Z2.
Here is the Question, I wish to write a matlab program that could
expand this polynomial automatically, with just the number of
outcomes as the input arguement, the outcome could be placed in
variables or an array. Is it possible for buildin matlab function to
do the job, or there are other complicated ways? PLEASE, I need help
and thx for your attention and advice
Look at DOC CONV, specifically the section in the Description that discusses
polynomial multiplication .
--
Steve Lord
slord@xxxxxxxxxxxxx
.
- References:
- Polynomial Expansion in matlab
- From: Donglai Liu
- Polynomial Expansion in matlab
- Prev by Date: Re: smallest unit
- Next by Date: Re: Matlab is not a real array oriented language.
- Previous by thread: Polynomial Expansion in matlab
- Next by thread: Font size user interface (JAVA)
- Index(es):
Relevant Pages
|
Loading