SampleSolutions - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


RootFinding[Parametric]

  

SampleSolutions

  

solve a system for given parameter values

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

SampleSolutions(m, s, options)

SampleSolutions(m, p, options)

SampleSolutions(m, k, options)

Parameters

m

-

solution record, as returned by CellDecomposition

s

-

list of equations of the form parameter=rational number representing a point in parameter space

p

-

list of rational numbers representing a point in parameter space

k

-

positive integer; the index of a cell

options

-

(optional) solver options, see RootFinding[Isolate]

Description

• 

The SampleSolutions command computes all real solutions of the system

f=0,g>0fm:Equations,gm:Inequalities

  

when the parameters are evaluated at the given point.

• 

Solutions are returned as a list of lists of equations of the form variable=number, or variable=[number,number] when the output=interval option is specified.

• 

The point can be specified in three different formats:

– 

as a list s of equations of the form parameter=rational number,

– 

as a list p of rational numbers, in which case the ith parameter in m:-Parameters gets replaced by pi for all i, or

– 

as a cell index k, in which case the point is taken to be the kth sample point in m:-SamplePoints.

• 

Any optional arguments are passed directly to RootFinding[Isolate].

• 

This command is part of the RootFinding[Parametric] package, so it can be used in the form SampleSolutions(..) only after executing the command with(RootFinding[Parametric]). However, it can always be accessed through the long form of the command by using RootFinding[Parametric][SampleSolutions](..).

Examples

withRootFindingParametric:

mCellDecompositionx2+y2=a&comma;xy=b&comma;0<a&comma;x&comma;y&colon;

m:-SamplePoints

a=3022314549036572936765311208925819614629174706176&comma;b=−1&comma;a=1&comma;b=−1&comma;a=3022314549036572936765311208925819614629174706176&comma;b=1&comma;a=1&comma;b=1

(1)

The following three calling sequences are equivalent:

SampleSolutionsm&comma;a=1&comma;b=1

x=−1.&comma;y=0.&comma;x=0.&comma;y=1.

(2)

SampleSolutionsm&comma;1&comma;1

x=−1.&comma;y=0.&comma;x=0.&comma;y=1.

(3)

SampleSolutionsm&comma;2

x=−1.&comma;y=0.&comma;x=0.&comma;y=1.

(4)

You can request the output in the form of isolating intervals instead of floating-point approximations using the option output=interval recognized by RootFinding[Isolate].

SampleSolutionsm&comma;a=1&comma;b=1&comma;output=interval

x=−1&comma;−1&comma;y=0&comma;0&comma;x=0&comma;0&comma;y=1&comma;1

(5)

Solve the non-parametric system by substituting parameter values not corresponding to a sample point, and by requesting 15 digits of precision instead of the default of 10.

SampleSolutionsm&comma;1&comma;12&comma;digits=15

x=−0.411437827766148&comma;y=−0.911437827766148&comma;x=0.911437827766148&comma;y=0.411437827766148

(6)

See Also

CellDecomposition

Parametric

RootFinding

RootFinding[Isolate]