help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to find polynomial roots in OCTAVE?help...


From: jub
Subject: how to find polynomial roots in OCTAVE?help...
Date: Wed, 13 Jun 2007 23:05:29 -0700 (PDT)

i'm trying to find the roots of this equation:

x^4/3 - 21.3h^1/3 - 4.53^4/3 =0

in OCTAVE. the problem is the exponent is a fraction. i know how
to find the root if the exponent is in whole number in OCATVE, but how about
exponents? can someone guide me on how to find the root using OCATVE with
exponential functions?

in OCTAVE lets say you want to find the root of:

2x + 4

the syntax will be:

a = [2, 4];
roots(a)

so if you want to find the root of x^(n+1)+ ... + n
( assuming 'n' is an integer >0, and x is the coefficient)
just put:

a = [x, ..., n]; /*so you put the coefficient with the
highest exponent first followed by the
lowest*/
roots(a);


now this is no problem with exponent with type integer...but how about
fractional?




thanks!
-- 
View this message in context: 
http://www.nabble.com/how-to-find-polynomial-roots-in-OCTAVE-help...-tf3919829.html#a11114438
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]