| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Need sqrt() algorithm |
Hello Rob! Tuesday November 08 1994 17:13, Rob Basler wrote to All: RB> I need to do a distance calculation between two points (x0,z0) and RB> (x1,z1). The way I know to do this is to use the distance formula, but it RB> requires a square root calculation. I don't want to use the standard C RB> sqrt() function because I am not using floating point for anything else. RB> I need an algorithm for calculating square roots to 3 or 4 decimal places. ?? If you don't use floating point, but you want 3 to 4 decimal places ?? Are you doing it in ASM or C ?? I have an algo in ASM somwhere, which I used for som 3D calculations, I think it's possible to find it, if you want it, but as I said it's in ASM.. Jesper Sandberg --- GEcho 1.00* Origin: °±² UNIQUE Point 114 ²±° (2:235/98.114) SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413 SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1 @PATH: 235/98 47 23/996 240/5500 396/1 3615/50 229/2 12/2442 @PATH: 711/409 54/54 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.