class Fresnel: Any

Fresnel integral implementation according to CEPHES library. See the wikipedia article of Fresnel integral.

Normalized Fresnel integrals of the form with the two asymptotic points (0.5, 0.5) and (-0.5, -0.5): x(l) = int_0^l cos( (pit^2) / 2 ) dty(l) = int_0^l sin( pit^2) / 2 ) dt

Constructors

Name Description
constructor()

Fresnel integral implementation according to CEPHES library. See the wikipedia article of Fresnel integral.

Normalized Fresnel integrals of the form with the two asymptotic points (0.5, 0.5) and (-0.5, -0.5): x(l) = int_0^l cos( (pit^2) / 2 ) dty(l) = int_0^l sin( pit^2) / 2 ) dt

CompanionObject

Fresnel

class Fresnel: Any

Fresnel integral implementation according to CEPHES library. See the wikipedia article of Fresnel integral.

Normalized Fresnel integrals of the form with the two asymptotic points (0.5, 0.5) and (-0.5, -0.5): x(l) = int_0^l cos( (pit^2) / 2 ) dty(l) = int_0^l sin( pit^2) / 2 ) dt

Methods

calculatePoint

fun calculatePoint(l: Double): Pair<Double, Double>

Evaluates both x(l) and y(l) of the normalized Fresnel integral.

Parameters

Name Description
l: Double

function parameter

ReturnValue

Name Description
Pair<Double, Double>

cartesian point as pair with (x(l), y(l))