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

Online Help

All Products    Maple    MapleSim


SolveTools

  

DisplaySolutions

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

DisplaySolutions(solutions)

DisplaySolutions(solutions, exclusions)

Parameters

solutions

-

list, set, or expression returned by solve (note, solve will often return an expression sequence of solutions, and those need to be wrapped in a list or set to be passed to this command)

exclusions

-

(optional) list, set, or expression; typically the original equations corresponding to the the solutions in the first parameter. If provided these will be used to avoid processing any _NN and _Z symbols that appear in this parameter.

Description

• 

The DisplaySolutions command is intended for displaying solutions from the solve command together with the assumptions on any parameters added to the solutions via use of the allsolutions option to solve. Added parameters to solve will have names starting with _NN, _Z, or _B, and have conditions encoded as assumptions. DisplaySolutions displays those parameters as subscripted lowercase variables (named n by default, but another letter will be chosen if n already appears in the solutions). The output is displayed in the form of a piecewise, in two columns: the first column is the solutions, one solution to a row, the second column is the conditions on the parameters, one parameter to a row.

• 

If a second argument is provided, this command will ignore any parameters that occur in that argument.

Examples

If there are no special parameters, the solutions are displayed in single column.

SolveTools:-DisplaySolutionssolvex2x,x

x=0x=1

(1)

This command is most useful for solutions of trig functions with the allsolutions option.

eq1xsinx2=x

eq1xsinx2=x

(2)

sol1solveeq1,x,allsolutions

sol10,12π+2π_Z1~,12π+2π_Z2~

(3)

SolveTools:-DisplaySolutionssol1

012π+2πn__1n__112π+2πn__2n__2

(4)

One can pass in the equations as a second argument if there were _Z variables in the original equations and they will be excluded from being treated as parameters.

eq2x+sol12=π2

eq2x+12π+2π_Z1~=π2

(5)

sol2solveeq2,x

sol2x=2π_Z1~

(6)

SolveTools:-DisplaySolutionssol2,eq2

x=2π_Z1~

(7)

If n or n[i] or n__i appear in the solution, then another name will be used for the parameter in the displayed output.

sol3solvesinn1+cosn1,n1,allsolutions

sol3n1=14π+π_Z3~

(8)

SolveTools:-DisplaySolutionssol3

n1=14π+πmm

(9)

Compatibility

• 

The SolveTools:-DisplaySolutions command was introduced in Maple 2024.

• 

For more information on Maple 2024 changes, see Updates in Maple 2024.

See Also

solve,details