law:eval-par-pos
List of: Scheme Extensions
Subjects: Analyzing Models, Laws
Contents: Kernel

Action: Evaluates a parameter position.

Filename: kern/kern_scm/law_scm.cxx

Syntax: (law:eval-par-pos in-law input)

Arg Types: in-law law | string | real | position |


par-pos | gvector

input (entity | (entity ...)) | real | gvector |


position | par-pos

Returns: position | par-pos

Errors: The in-law must return 2 or 3 values.


law can be a law Scheme type or a string enclosed by double quotation marks. law can be any combination of law functions.


input specifies the value(s) for evaluating the law.

Example: ; law:eval-par-pos

; Evaluate a parameter's position

(define law1 (law "vec(x,x^2)"))

;; law1

(law:eval-par-pos law1 2)

;; #[par-pos 2 4]

(define law2 (law "vec(x^2, y+3*z)"))

;; law2

(law:eval-par-pos law2 (list 2 3 4))

;; #[par-pos 4 15]
PDF/KERN/14SCI.PDF
HTM/DATA/KERN/KERN/14SCI/0010.HTM