I am new to Mathematica. I have used the WolframAlpha online calculator to find roots of equations (listed under the heading Root in the output generated in response to a submission). When I try to find the roots of the same equation in Mathematica, I receive various errors. I have tried FindRoot and Reduce. Is there a function in Mathematica that corresponds to whatever is generating the Root output in the online WolframAlpha calculator? Thank you.
|
|
|||||||
|
|
The canonical way to solve algebraic equations is to use
The above This is an infix notation: and prefix : If you want to solve a transcendental equation e.g.
If you are interested in numerical values of solutions you could also choose
In general
NSolve[x^2 == Cos[x], x, Reals]
And here I briefly sketch a few samples of using functions which you mentioned :
|
|||||||
|
|
Other functions that are often useful when solving equations are
|
||||
|
