Singular Manual: ncratEvaluateAt

| #### 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

User manual for Singular version 4.4.1, 2025, generated by texi2html.