1 DOUBLE PRECISION FUNCTION ddanrm (NEQ, V, WT, RPAR, IPAR)
26 DOUBLE PRECISION V(neq), WT(neq), RPAR(*)
29 DOUBLE PRECISION SUM, VMAX
35 IF(
abs(v(i)/wt(i)) .GT. vmax) vmax =
abs(v(i)/wt(i))
37 IF(vmax .LE. 0.0d0) go
to 30
40 20 sum = sum + ((v(i)/wt(i))/vmax)**2
41 ddanrm = vmax*
sqrt(sum/neq)
may be zero for pure relative error test tem the relative tolerance must be greater than or equal to
OCTAVE_EXPORT octave_value_list return the value of the option it must match the dimension of the state and the relative tolerance must also be a vector of the same length tem it must match the dimension of the state and the absolute tolerance must also be a vector of the same length The local error test applied at each integration step is xample roup abs(local error in x(i))<
octave_value sqrt(void) const