Description Usage Arguments Details Value Author(s) Examples
Evaluate an integral along a straight on the complex plane. This can be used as an alternative to evaluating an integral in the presence of a branch cut or point.
1 | line.integrate(f, a, b, complex = TRUE)
|
f |
The function whose integral to be evaluated. |
a |
The starting point of the straight line. |
b |
The end point of the straight line. |
complex |
If FALSE and the imaginary part of a and b are zero, R built-in function integrate is used. |
The function only evaluates an integral along a straight line.
The evaluated value is returned.
Char Leung
1 2 3 4 | ## evaluating an integral in the presence of a branch cut
disc.integrate(function(z){sqrt(z)},0,R=1) #still works
#evaluate the integral along the branch cut
-line.integrate(function(z){sqrt(z)},0,1)+line.integrate(function(z){sqrt(z)},1,0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.