function bounds - 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


Home : Support : Online Help : Programming : Logic : Boolean : verify : function bounds

verify/function_bounds

verify approximate equality between two function plots

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

verify(P, Q, function_bounds)

Parameters

P, Q

-

anything

Description

• 

The verify(P, Q, function_bounds) calling sequence verifies the approximate equality between two function plots.

• 

The parameters, P and Q, are assumed to be either PLOT data structures, sets or lists of CURVES data structures, or a CURVES data structure.

• 

The verify(P, Q, function_bounds) function returns true for CURVES data-structures P and Q by checking that neither curve has extreme points or constant regions which do not appear in the other curve or in the union of the two curves.

• 

If you are comparing two curves, false is returned by a list with false in the first operand and a plot data-structure showing the points where the curves differ.

Examples

aplotpiecewisex<1&comma;x&comma;2x&comma;x=0..2&comma;adaptive=true&colon;

bplotpiecewisex<1&comma;x&comma;2x&comma;x=0..2&comma;numpoints=10&comma;adaptive=false&colon;

cplot1.001piecewisex<1&comma;x&comma;2x&comma;x=0..2&comma;numpoints=100&comma;adaptive=true&colon;

verifya&comma;b&comma;function_bounds

true

(1)

verifya&comma;c&comma;function_bounds

false&comma;PLOT...

(2)

Note that the plot 'b' does not have the last maxima.

aplotsinx&comma;x=0..40&comma;adaptive=true&colon;

bplotsinx&comma;x=0..40&comma;numpoints=20&comma;adaptive=false&colon;

cplotsinx&comma;x=0..40&comma;numpoints=30&comma;adaptive=false&colon;

verifya&comma;b&comma;function_bounds

false&comma;PLOT...

(3)

verifya&comma;c&comma;function_bounds

true

(4)

See Also

piecewise

plot

verify

verify/function_shells

verify/plot