Re: Polynomial Expansion in matlab




"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


.



Relevant Pages

  • Polynomial Expansion in matlab
    ... 'Z' to the power of zero after expand, W2 is the coefficient of 'Z' ... Is it possible for buildin matlab function to ...
    (comp.soft-sys.matlab)
  • Re: Borat Osama Busted!!!
    ... power of it to unprecendented heights. ... and under your plan (the one where you want to expand the size and ...
    (alt.sports.football.pro.ne-patriots)
  • Re: Counting in Binary
    ... Are you asking if any decimal integer can be expressed as a ... in binary is that each digit is the coefficient of a power of 2. ...
    (sci.math)
  • Re: Eggsploding food
    ... >>expand is very soul satisfying...... ... Full sized marshmallows, or peeps. ... I generally nuke for 1 minute on full, but microwave powers vary a LOT! ... power off, it shrinks back down a bit but is still very yummy! ...
    (rec.food.cooking)
  • Re: OT--yer tax dollars at work--PBS
    ... pushed to expand the power of the presidency. ... from former assistant attorney general Jack L. Goldsmith. ...
    (rec.outdoors.rv-travel)

Loading