If I have a 3rd order polynomial (y = ax^3 + bx^2 + cx + d) with all the coefficients known, how do I plug in a y number and get out the x number?

 Akzeptierte Antwort

Honglei Chen
Honglei Chen am 21 Feb. 2012
Write the polynomial as
a*x^3+b*x^2+c*x+d-y
Then you can use fzero to solve x.
doc fzero

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 21 Feb. 2012
roots( [a, b, c, d-y] )

Kategorien

Tags

Gefragt:

am 21 Feb. 2012

Bearbeitet:

am 19 Okt. 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by