How can I use complex number with ROOT ?

From: Keisuke Seya (seya@ti.com)
Date: Mon May 25 1998 - 16:36:40 MEST


Is there any way to use complex number with ROOT ?
I would like to do the calculation like below;
    
#include <iostream>
#include <complex>
using namespace std;

void main()
{
  complex<double> a(1,2);
  cout << a << endl;
  cout << sin(a) << endl; //<-- I want the complex result !!
}

How can I get the result back in complex ?

Thank you in advance,
Keisuke Seya



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:33 MET