phys_581.testing#

Tools for testing.

Classes#

Functions

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

Module Contents#

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

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

L = 1.0#
eta = 0.5#
k#
f(x, d=0)#

Return the d’th derivative.

__call__(x, d=0)#