solvefor - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


solvefor

solve for one or more of the variables found in a set of equations

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

solvefor(eqn_1, eqn_2, ... )

solvefor[varseq](eqnset)

Parameters

eqn_1, eqn_2, ...

-

equation or a set of equations to be solved collectively

varseq

-

expression sequence of variables to be placed on the left-side of the equations forming a solution

eqnset

-

expression sequence; one or more equations to be solved collectively

Description

• 

Important: The solvefor command has been deprecated.  Use the superseding command solve instead.

• 

The solvefor command isolates specified variables (if any) from a set of equations on the left-hand side of a reduced set of equations. If no variables are specified it is essentially equivalent to a call to solve. Answer are returned in a form suitable for use in other commands such as subs and eval.

• 

The original set of equations is formed by collecting the arguments to solvefor into a set of equations. The solve command is applied to the resulting system to produce 0 or more solutions.

• 

If no solution is found this is indicated by an empty list. If more than one solution is found then they are returned as a list of solutions.

• 

Each solution is returned as an equation, or (if more than one equation is involved) as a set of equations in which the variables on the left-hand side do not appear on the right hand side.

• 

Variables may be specified as an index to the procedure name, as in solvefor[x](...).  This indicates that the solutions must include the indicated variables on the left-hand side of the solution equations.

Examples

Important: The solvefor command has been deprecated.  Use the superseding command solve instead.

solveforx3y2x+xy=3,x2+y2=1

Warning, solvefor is deprecated. Please use solve command.

x=RootOf4_Z63_Z412_Z3+6_Z+9,index=1,y=4RootOf4_Z63_Z412_Z3+6_Z+9,index=153+RootOf4_Z63_Z412_Z3+6_Z+9,index=13+2RootOf4_Z63_Z412_Z3+6_Z+9,index=121,x=RootOf4_Z63_Z412_Z3+6_Z+9,index=2,y=4RootOf4_Z63_Z412_Z3+6_Z+9,index=253+RootOf4_Z63_Z412_Z3+6_Z+9,index=23+2RootOf4_Z63_Z412_Z3+6_Z+9,index=221,x=RootOf4_Z63_Z412_Z3+6_Z+9,index=3,y=4RootOf4_Z63_Z412_Z3+6_Z+9,index=353+RootOf4_Z63_Z412_Z3+6_Z+9,index=33+2RootOf4_Z63_Z412_Z3+6_Z+9,index=321,x=RootOf4_Z63_Z412_Z3+6_Z+9,index=4,y=4RootOf4_Z63_Z412_Z3+6_Z+9,index=453+RootOf4_Z63_Z412_Z3+6_Z+9,index=43+2RootOf4_Z63_Z412_Z3+6_Z+9,index=421,x=RootOf4_Z63_Z412_Z3+6_Z+9,index=5,y=4RootOf4_Z63_Z412_Z3+6_Z+9,index=553+RootOf4_Z63_Z412_Z3+6_Z+9,index=53+2RootOf4_Z63_Z412_Z3+6_Z+9,index=521,x=RootOf4_Z63_Z412_Z3+6_Z+9,index=6,y=4RootOf4_Z63_Z412_Z3+6_Z+9,index=653+RootOf4_Z63_Z412_Z3+6_Z+9,index=63+2RootOf4_Z63_Z412_Z3+6_Z+9,index=621

(1)

solvefortx+y=1,xy+zt=3

t=2x2z,y=1x

(2)

solveforyx+y=1,xy+zt=3

x=zt2+2,y=zt21

(3)

solveforzx+y=1,xy+zt=3

y=1x,z=2x2t

(4)

See Also

eliminate

resultant

solve