weierstrass: Weierstrass Function

Description Usage Arguments Value Examples

View source: R/weierstrass.R

Description

Evaluates the Weierstrass Function

Usage

1
weierstrass(x, a = 0.5, b = 15, eps = 0.01, max = 100)

Arguments

x

value in which in function should be evaluated. Can be an integer, double or vector.

a

parameter of the function. Must be positive and smaller than 1. Defaults to .5.

b

parameter of the function. Must be positive and odd. Defaults to 5. For convergence it is necessary that ab be larger than (1 + (3/2)pi).

eps

parameter for convergence of the calculation. Series is evaluated up until the marginal value is smaller than eps. Defaults to .001.

max

parameter for convergence of the calculation. Maximum number of iterations. Defaults to 100.

Value

Output of the Weierstrass Function

Examples

1
2
a <- seq(1, 100)
weierstrass(a)

pedrocava/mathr documentation built on May 29, 2020, 8:32 p.m.