core-math-sys 1.2.0

Generate bindings to CORE-MATH
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pretty = proc(u) {
  return ~(floor(u*1000)/1000);
};

prec = 512;

n = [|1,3,5,7,9,11,13,15|];
d = [0,2^-11.2];
f = 1;
w = 1/atan(x);
p = remez(f, n, d, w);
pf = fpminimax(f, n, [|1,192,192,128,128,64...|], d, relative, floating, 0, p);
err_p = -log2(dirtyinfnorm(pf*w-f, d));
display = hexadecimal;
print (pf);
display = decimal;
print ("relative error:", pretty(err_p));