Algebra
You can factor or expand algebraic expressions:
(Use CTRL+6 for typeset exponents.)
Out[1]= | ![](Files/index-io-1-o.gif.en) |
The Wolfram Language uses == (two equal signs) to test equality:
Out[1]= | ![](Files/index-io-2-o.gif.en) |
Combine algebraic expressions with == to represent an equation:
Out[2]= | ![](Files/index-io-3-o.gif.en) |
Commands like Solve find exact solutions to equations:
For approximate results, use NSolve:
Pass in a system of equations as a list:
Find the roots of an equation:
(|| is the symbol for Or.)
Out[1]= | ![](Files/index-io-7-o.gif.en) |
If a polynomial is not easily factorable, approximate results may be more useful:
Out[2]= | ![](Files/index-io-8-o.gif.en) |
The Reduce command reduces a set of inequalities into a simple form:
(Type <= for the ≤
symbol.)
Out[1]= | ![](Files/index-io-9-o.gif.en) |
The reduced form may include multiple intervals:
Out[2]= | ![](Files/index-io-10-o.gif.en) |
NumberLinePlot is a handy way to visualize these results:
Out[3]= | ![](Files/index-io-11-o.gif.en) |