line.integrate: Evaluate an integral along a straight on the complex plane

Description Usage Arguments Details Value Author(s) Examples

Description

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.

Usage

1

Arguments

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.

Details

The function only evaluates an integral along a straight line.

Value

The evaluated value is returned.

Author(s)

Char Leung

Examples

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) 

ComplexAnalysis documentation built on Jan. 15, 2017, 10:24 a.m.