options cmplib=work.funcs;
data _null_;
array _A[3] _temporary_ (1, 0, 0);
y = sas_integral(_A, 0, 1);
put 'the integral of x^2 over [0, 1] = ' y:best6.;
array _B[3] _temporary_ (0, 2, 0);
y = sas_integral(_B, 0, 2);
put 'the integral of 2x over [0, 2] = ' y:best6.;
run;
[/code:50dadx8r]