Functions#

class Functions(L=1.0, eta=0.5)#

Bases: object

Various functions like f_η(x) used for testing in the documentation.

This function is periodic with period L, \(C^∞\), analytic for eta<1 and non-analytic for eta=1.

L#

Period.

Type:

float

eta#

Smoothness parameter. eta=0 is a constant function, 0<eta<1 is analytic. eta=1 is \(C^∞\) but non-analytic at the middle of the interval.

Type:

float

__init__(L=1.0, eta=0.5)#

Methods

__init__([L, eta])

f(x[, d])

Return the d'th derivative.

f(x, d=0)#

Return the d’th derivative.