Action:
|
Finds the bounds for a law function.
|
|
Filename:
|
kern/kern_scm/law_scm.cxx
|
|
Syntax:
|
(law:bounds law1 [low high])
|
|
Arg Types:
|
law1
|
law
|
|
low
|
real
|
|
high
|
real
|
|
Returns:
|
(real ...)
|
|
Errors:
|
Checking the bounds on a law with an infinite domain returns an error.
|
|
Description:
|
This returns a list of bounds of the law from the different interval pairs entered.
|
|
|
law1 specifies a law.
|
|
|
low and
high are optional intervals over which the bounds are computed. If not specified, the extension attempts to compute the domain from the law itself.
|
|
Example:
|
; law:bounds
|
|
; Define a law and find the bounds on interval.
|
|
; Create a law.
|
|
(define law1 (law "x+x^2-cos(x)"))
|
|
;; law1
|
|
(law:bounds law1 -2 20)
|
|
; -5.350134 to 423.799265
|
|
; Tolerance: 0.001000
|
|
;; (-5.35013412467261 423.799264988314 0.001)
|