I have following function:
2.3366*x^1+(-3.2684)*x^2+3.6513*x^3+(-2.2608)*x^5+2.1501*x^13+(-2.7412)*x^21+1.8876*x^34 = 0.8232711
I need to solve x.
In MATLAB I would use following:
fsolve(function1=15/18.22,x)
How do I do this in R? Can I use solve or uniroot or something else?
Use
polyroot
:You can check that you have the right polynom using this :
Thanks for the answers. Figured it out myself.