The function minimax is called by entering :
where expr is an univariate expression (e.g. f(x) ) to approximate, var is a variable (e.g. x ), [a,b]⊂ℝ and n∈ℕ . Expression expr must be continuous on [a,b] . The function returns minimax polynomial (e.g. p(x) ) of degree n or lower that approximates expr on [a,b] . The approximation is found by applying Remez algorithm.
If the fourth argument is specified, m is used to limit the number of iterations of the algorithm. It is unlimited by default.
The maximum error of the approximation p(x) , i.e. maxa≤ x≤ b|f(x)−p(x)| , is printed in the message area.
The maximum error of this approximation is 5.85234008632× 10−6 .