law:linear
List of: Scheme Extensions
Subjects: Laws, Mathematics
Contents: Kernel

Action: Creates a linear law given {a,b,f(a),f(b)}.

Filename: kern/kern_scm/law_scm.cxx

APIs: api_make_linear

Syntax: (law:linear a b f-a f-b)

Arg Types: a real

b real

f-a real

f-b real

Returns: boolean

Description: Produces a linear polynomial using the input boundary conditions.


a and b specifies the boundary values.


f-a and f-b specifies the desired output of the law at a and b.

Example: ; law:linear

; Create a law.

(define law1 (law:linear 0 1 2 3))

;; law1

(law:eval 0)

;; 0

(law:eval 1)

;; 1
PDF/KERN/14SCI.PDF
HTM/DATA/KERN/KERN/14SCI/0016.HTM