Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Group: Mathematical Functions
Topic: Integration
See also:

Function: simpsonint
Description: simpsonint computes the integral of a given realvalued function about a d-dimensional cube [a_1,b_1] x ... x [a_d,b_d]. The method of simpson is used.

Usage: y = simpsonint (func, a, b, m)
Input:
func text, name of the procedure where the function is defined
a d vector, containing the begining points of the intervals.
b d vector, containing the end points of the intervals.
m d vector, 2 * m(i) is the number of subintervals in the i-th dimension.
Output:
y scalar, value of the integral

Example:
proc(y) = fun(x)
  y=sum(x^3)
endp
a = #(0,0)
b = #(1,2)
m = #(3,6)
simpsonint("fun",a,b,m)

Result:
Contents of simpson

[1,]      4.5



(C) MD*TECH Method and Data Technologies, 05.02.2006