MTM
solve
solve equations
Calling Sequence
Parameters
Description
Examples
solve(eqn1,eqn2,...,eqnN);
solve(eqn1,eqn2,...,eqnN, var1, var2,..., varN);
eqni
-
equations or algebraic expressions
vari
variables
solve(eqn1,...,eqnN) returns solutions to the system of equations with respect to variables found by findsym.
solve(eqn1,eqn2,...,eqnN, var1, var2,..., varN) returns solutions with respect to given variables.
If no closed-form solution is found and the number of equations is equal to number of variables, numeric solve is attempted.
Three different types of output are possible. For one equation and one output, the resulting solution is returned with multiplicities for a polynomial equation in a vector. For several variables and an equal number of outputs, the results are sorted and assigned to the outputs. For several equations and a single output, a MTM[struct] containing the solutions is returned.
with⁡MTM:
t≔2+3+4⁢log⁡x2−5⁢log⁡x:
solve⁡t
ⅇ−1932+7⁢I⁢732ⅇ−1932−7⁢I⁢732
solve⁡p⁢sin⁡x=r
arcsin⁡rp
x,y≔solve⁡x2+x⁢y+y=3,x2−4⁢x+3=0
x,y≔13,1−32
S≔solve⁡u2⁢v2−2⁢u−1=0,u2−v2−1=0:
S:-u
−12+I⁢32−12+I⁢32−12−I⁢32−12−I⁢3252+1252+12−52+12−52+12
S:-v
−6−2⁢I⁢32−−6−2⁢I⁢32−6+2⁢I⁢32−−6+2⁢I⁢322+2⁢52−2+2⁢522−2⁢52−2−2⁢52
S≔solve⁡a⁢u2+v2,u−v=1,a,u:
S:-a
−v2v2+2⁢v+1
v+1
a,u,v≔solve⁡a⁢u2+v2,u−v=1,a2−5⁢a+6
a,u,v≔2233,13+I⁢2313−I⁢2314+I⁢3414−I⁢34,−23+I⁢23−23−I⁢23−34+I⁢34−34−I⁢34
Download Help Document