Home Online Manual
Top
Back: ncratPower
Forward: ncrepGet
FastBack:
FastForward:
Up: ncrat_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

7.10.6.14 ncratEvaluateAt

Procedure from library ncrat.lib (see ncrat_lib).

Usage:
matrix M = ncratEvaluateAt(f, vars, point);

Return:
Evaluate the ncrat f by substituting in the
matrices contained in point for the respective
variables contained in var, that is, calculate
f(point).

Example:
 
LIB "ncrat.lib";
ncInit(list("x", "y"));
ncrat f = ncratFromString("x+y");
matrix A[2][2] = 1, 2, 3, 4;
matrix B[2][2] = 5, 6, 7, 8;
matrix M = ncratEvaluateAt(f, list(x, y), list(A, B));
print(M);
==> 6, 8,
==> 10,12