delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/05/22/08:02:58

Message-ID: <F6E7432DD437D511AD92009027C3AAC466B52F@headoffice.umgeni.co.za>
From: Scott Sinclair <scott DOT sinclair AT umgeni DOT co DOT za>
To: djgpp AT delorie DOT com
Subject: exp() doesn't work !
Date: Tue, 22 May 2001 14:10:32 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Reply-To: djgpp AT delorie DOT com

Hi

I hope I'm just being stupid :) but the following code:

//////////////////////////////
double x, y;

y = some_sensibly_small_number;

x = exp(y);
/////////////////////////////

does NOT set x equal to e^y ???? I am using the libraries suplied with DJGPP
version 2.03.
Unfortunately I can't follow the assembler code in the exp.s source file (is
this assembler ?), so I can't fix the error and rebuild my libraries.
Help ????:)

cheers

Scott

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019