kelvinKei0

Evaluates the Kelvin function of the second kind, kei, of order zero.

Synopsis

kelvinKei0 (x)

Required Arguments

float x (Input)
Argument for which the function value is desired.

Return Value

The Kelvin function of the second kind, kei, of order zero evaluated at x.

Description

The modified Kelvin function kei0(x) is defined to be K0(xeπ/4). The Bessel function K0(x) is defined

K0(x)=0cos(xsint)dt

The function kelvinKei0 is based on the work of Burgoyne (1963). If x<0, NaN (Not a Number) is returned. If x119, zero is returned.

Example

In this example, kei0(0.4) is evaluated.

from __future__ import print_function
from numpy import *
from pyimsl.math.kelvinKei0 import kelvinKei0

x = 0.4
ans = kelvinKei0(x)
print("kei0(0.4) = %f" % (ans))

Output

kei0(0.4) = -0.703800