Devil's Staircase

The new `#ProfilePicture` for @itsN1X twitter.

View on GitHub

7957_Devils_StairCase

v/s v/s a temporal correlation to at the #et7956 timeseries datapoints.

References:

Cold Rex

/* Minkowski's question-mark function */

double minkowski(double x) {
        long p=x; if ((double)p>x) --p; /* p=floor(x) */
        long q=1, r=p+1, s=1, m, n;
        double d=1, y=p;
        if (x<(double)p||(p<0)^(r<=0)) return x; /* out of range ?(x) =~ x */
        for (;;) /* invariants: q*r-p*s==1 && (double)p/q <= x && x < (double)r/s */
        {
                d/=2; if (y+d==y) break; /* reached max possible precision */
                m=p+r; if ((m<0)^(p<0)) break; /* sum overflowed */
                n=q+s; if (n<0) break; /* sum overflowed */
 
                if (x<(double)m/n) r=m, s=n;
                else y+=d, p=m, q=n;
        }
        return y+d; /* final round-off */
}

See files like:

More meta to glob upon!

Definition

!: Cantor function - To formally define the Cantor function ‘c’ : [0,1] → [0,1], let x be in [0,1] and obtain c(x) by the following steps:


More c00L hedges to be unravelled at N1X.site