Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 592 Bytes

File metadata and controls

24 lines (20 loc) · 592 Bytes

Math::Weierstrass

Math::Weierstrass(a, b, x): float

Calculate Weierstrass function for given x, a, and b. More can be found there: https://en.wikipedia.org/wiki/Weierstrass_function. Can be used for test data generation.

Table 1. Parameters

a

float

Coefficient, 0<a<1

b

int

Coefficient, odd integer

x

int

Point to calculate function in

Return

Value in point x for Weierstrass function with given coefficients

print(Math::Weierstrass(0.5, 7, 10)); // Will print "1.999218"