Filter löschen
Filter löschen

How to get the Coeffcient value?

1 Ansicht (letzte 30 Tage)
Sheetansh Kaushik
Sheetansh Kaushik am 15 Jul. 2013
Hi!
I have the following polynomial: y = 3*x^2 + 2*x + 4;
Generally, we apply the value of 'x' and get the value of y. Is it possible or how to get the 'x' if i give a certain value of 'y'?
Its obvious to have a range of values for 'x'.
Please advise.

Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 15 Jul. 2013
y = 4;
xout = roots([3,2,4 - y])
  2 Kommentare
Sheetansh Kaushik
Sheetansh Kaushik am 15 Jul. 2013
thanks mate! could you still explain why its '-y'??
Andrei Bobrov
Andrei Bobrov am 16 Jul. 2013
Bearbeitet: Andrei Bobrov am 16 Jul. 2013
This is solution of the equation y = 3*x^2 + 2*x + 4, here y = 4, i.e.
3*x^2 +2*x + 4 - y = 0
coefficients c of the polynomial:
c = [ 3, 2, 4 - y ]
and him solution
xsol = roots(c) or xsol = roots([ 3, 2, 4 - y ])

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Polynomials finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by