Sqrt approximator

I made a very accurate approximator for sqrt(x)!
https://snap.berkeley.edu/snap/snap.html#present:Username=angzarr_812new&ProjectName=sqrt
enter a number and out go both a rough guess and an accurate approximation!

secret sause

Linear interpolation and 6 rounds of herons

Interesting. I must say, I’d rather get a floating point decimal fraction, though; the fraction with enormous numerator and denominator doesn’t give me any sense of how big the answer is! (For example, it’d be nice to know the nearest integer.)

So you can check out the code for my attempt; it does fractions for both the fractions part and the “decimal” part

Both versions are shown as fractions. I want, for example, 1.6 for the 8/5 and I dunno what but probably somewhere near 1.414… for the complicated fraction (taking √2).

Like when I try to disable bignum it still has bignums enabled

Ah, I see the problem. When you’re ready to turn bignums off, do this:

Thanks. I implemented it as [change utilities by .0].