Solving Equations

SMath Studio includes several methods for solving equations.

If you have a function of one variable, use solve(), roots(), or polyroots(). solve() is more flexible and can find more than one root; roots() gives only one root, but if you have a pure polynomial, use polyroots().

quadratic equation solved with solve()

Note: if you have simultaneous equations with several variables, use matrices for linear equations or roots() for a system of nonlinear equations.

This page is based on a legacy wiki article by Radovan Omorjan.