How to get the Coeffcient value?
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
Andrei Bobrov
2013-7-15
y = 4;
xout = roots([3,2,4 - y])
2 个评论
Andrei Bobrov
2013-7-16
编辑:Andrei Bobrov
2013-7-16
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 ])
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polynomials 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!