The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Line of sight
#11
britlion Wrote:A quick speed test of

answer=distance (i,j) against
answer=iSqrt(i*i+j*j) shows:
  • distance 8.98 seconds
    iSqrt 50.1 seconds
This is definitely faster, if you're willing to accept the greater inaccuracy. (you probably are).

By the by - standard floating point square root:

my fSQRt function: 44 minutes (2625.14 seconds)
SQR - 122 minutes. (7336.86 seconds)

Shows how awful that ROM SQR routine really is...

Impressive results. I have a couple of uses for your fSQRt function - thanks for sharing Smile
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)