TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Aaron West
from: Andrew MacIntyre
date: 1993-10-24 08:53:16
subject: BC++ v3.1. Broken Floating Point?

On Oct 22 1993 (20:17), Aaron West of 3:620/264 wrote:

 AW> I've ressurected my code for a talk and presentation that I 
 AW> have been assigned to do at school, and I tidied up my code 
 AW> and did a quick recompile under BC++ v3.1. Same problem. 
 AW> Performance is abysmal.

 AW> Turbo Profiler reports that most of the programs time is 
 AW> spent executing the following instruction:

 AW> rreal = pow(temp, 2) - pow(image, 2) + ymin;

There are a number of people in this echo who can probably give a better
answer than I.  Nonetheless if "pow(?,2)" is just squaring the
1st term (I don't have my manuals handy..), have you tried rewriting as

rreal = temp*temp - image*image + ymin;

?

Regards, Andrew.

--- Msgedsq 2.2e

* Origin: What a Coherent Point! Canberra, Oz (3:620/243.18)
SEEN-BY: 50/99 54/54 99 620/243 250 252 622/405 623/630 711/401 409 430 807
SEEN-BY: 711/808 809 932 934 712/623 627 713/888 714/906 800/1
@PATH: 620/243 54/54 99 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™.