Student[VectorCalculus][int] - computes the integral of a function
|
Calling Sequence
|
|
int(f, domain, output = output_type)
|
|
Parameters
|
|
f
|
-
|
Vector(algebraic) or algebraic; specify the object to be integrated
|
domain
|
-
|
list(name)=domain_function or extra arguments to be passed to the top-level int command
|
output = output_type
|
-
|
(optional) equation; output_type can be one of integral or value.
|
|
|
|
|
Description
|
|
•
|
The int(f, domain) command computes the integral of the function f over the region specified by domain.
|
•
|
If output=integral is specified, the command returns an unevaluated integral. If output=value is specified, the command returns the computed value of the integral. The default is output=value.
|
•
|
If f is an expression, domain must have the form list(name)=domain_function where domain_function is an unevaluated function call describing the region. If f is a Vector, the top-level int command is mapped over the components of f with domain passed to int as well as the extra arguments.
|
•
|
list(name) is a list specifying the variables of integration.
|
•
|
Specify the region of integration using unevaluated function calls. The possible regions of integration are Circle, Ellipse, Parallelepiped, Rectangle, Region, Sector, Sphere, Tetrahedron, and Triangle.
|
|
The first parameter, center, is the center of the circle and must have type Vector(2, algebraic). The second parameter, radius, is the radius of the circle and must have type algebraic. If a coordinate system attribute is specified on center, the center is interpreted in that coordinate system.
|
|
Ellipse(center, major, minor, angle)
|
|
The first parameter, center, is the center of the ellipse and must have type Vector(2, algebraic). The second and third parameters, major and minor, are the lengths of the semimajor and semiminor axes of the ellipse, respectively. The last parameter angle specifies the angle through which the ellipse is rotated from its standard position, in which its major axis is coincident with the x-axis. Note: The ellipse specified by this structure is obtained by first performing the rotation on an ellipse in standard position; this rotated ellipse is then translated to the point center.
|
|
The parameter expr must be an expression of type algebraic. The Ellipse is specified by the equation expr = 0. The two variable names that appear in expr must be the same as those specified in the left-hand side of domain.
|
|
Parallelepiped(r1, ..., rk)
|
|
This specifies a k-dimensional region of integration. Each ri must have type algebraic..algebraic and the expressions in these ranges cannot depend on the variables of integration. The range ri specifies the integration interval for the ith variable of integration.
|
|
This is a specialization of Parallelepiped to R^2. In the xy-plane, the integration has the order dx dy, and range r1 can be of the form x1(y)..x2(y), in contrast to the restrictions on ranges in Parallelepiped.
|
|
This specifies a k-dimensional region of integration. Each ri must have type algebraic..algebraic and the ith range can only depend on the first i-1 variables. The region is transformed into an iterated integral. The range ri specifies the integration interval for the ith variable of integration.
|
|
Sector(object, start, finish)
|
|
The first parameter of Sector, object, must be a Circle or Ellipse structure. The parameters start and finish must be of type algebraic. This represents the sector of the specified Circle or Ellipse, starting at angle start radians and ending at angle finish radians.
|
|
The first parameter, center, is the center of the sphere and must have type 'Vector'(3, algebraic). The second parameter, radius, is the radius of the sphere and must have type algebraic. If a coordinate system attribute is specified on center, the center is interpreted in that coordinate system.
|
|
Tetrahedron(v1, v2, v3, v4)
|
|
Each vi must have type 'Vector'(3, algebraic). These represent the vertices of the tetrahedron. If coordinate system attributes are specified on these Vectors, each vertex is interpreted in its own coordinate system.
|
|
Each vi must have type 'Vector'(2, algebraic). These represent the vertices of the triangle. If coordinate system attributes are specified on these Vectors, each vertex is interpreted in its own coordinate system.
|
•
|
If integration is done in non-cartesian coordinates for the selected region, the integration variables are automatically substituted for a suitable set of coordinate names. A custom variable substitution can be achieved by adding an additional argument of type list(name), containing the desired variable names, to the region of integration.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
>
|
|
| (10) |
>
|
|
| (11) |
>
|
|
| (12) |
>
|
|
| (13) |
|
|