Question: Is it possible to calculate the Pythagorean Formula without the use of a square root function? source
In order to support Geokit in sqlite3, I need a way to calculate distances that does not require cosine or square root. In my problem space, the points are relatively close to each other.
C1=A+B
The error was very similar to the size of the lowest number. So subtracted a fraction of the lowest number.
C2=A+B-min(A,B)*0.6
Restated the formula with min and max, and tweaked the ratios.
C3=max(A,B)*0.945 + min(A,B)*0.415

calculation references
ABCc1errorc2errorc3error10001000141420005861400-1413605410007501250 17505001300501256-610005001118 15003821200821153-3410002501031 12502191100691049-18100001000   1000  01000 094555Please share if you can help me come up with a better approximation or if you see an error.
thanks Meridian.

Question: Is it possible to calculate the Pythagorean Formula without the use of a square root function? source

In order to support Geokit in sqlite3, I need a way to calculate distances that does not require cosine or square root. In my problem space, the points are relatively close to each other.

C1=A+B

The error was very similar to the size of the lowest number. So subtracted a fraction of the lowest number.

C2=A+B-min(A,B)*0.6

Restated the formula with min and max, and tweaked the ratios.

C3=max(A,B)*0.945 + min(A,B)*0.415
calculation references
ABCc1errorc2errorc3error
10001000141420005861400-14136054
10007501250 17505001300501256-6
10005001118 15003821200821153-34
10002501031 12502191100691049-18
100001000 1000 01000 094555

Please share if you can help me come up with a better approximation or if you see an error.

thanks Meridian.