I try to compute real 1-Brjuno function for real numbers in x in [0, 1] range
G(x):= block(
[g],
if (x=0)
then g : 0
else g : float(1/x - floor(1/x)),
return( g)
)$
bet(j,x) := block(
[r],
if (j=-1)
then r:1
else r : product (G(x)^i, i, 0, j),
return( r)
)$
A(i,x) := bet(i-1,x)*log(1/G(x)^i)$
B(x):= sum(A(i,x), i, 0,10)$
There are numerical errors :
0
expt: undefined: 0.0
caused by A function for some x values : 1/2,1/5,1/10,1/3,1/9,1/4,0
How can I solve this problem ?