[ROOT] complex number operations.

From: Christopher B. Lirakis (clirakis@bbn.com)
Date: Fri Jul 13 2001 - 16:39:28 MEST


hi Rooters,
         I have noticed something strange when using the complex class. It 
appears that you can't use complex numbers until you load the complex.h 
header. Once this is done the function call to exp blows up.

What I have is another header that defines some functions that I am using. 
Within this header I have an include <complex.h>
Once loaded, exp no longer works.

exp(0.0) before loading gives 1.0
exp(0.0) after loading gives an exception.

I am running windows 2000, root 3.01/05.

Also are there intentions to include more of the complex functionalitiy?

Include file.
#ifndef __TOOLS_h_
#define __TOOLS_h_
#include <math.h>
#include <limits.h>
#include <float.h>
#include <complex.h>

#endif




-Christopher B. Lirakis, Phd
-High Performance Computing
-BBN Technologies
-127 John Clarke Rd
-Middletown, RI 02842
-
-(401) 849-2543 (voice) - Front Desk
-(401) 848-3537 (voice) - Direct Line.
-(401) 849-8611 (fax)
-(401) 788-4607 (cell)
-
-http://www.gte.com/AboutGTE/gto/bbnt/



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:51 MET