[ROOT] missing functions on ROOT

From: Stilianos Kesisoglou (kesisogl@fnal.gov)
Date: Fri Jul 30 2004 - 19:57:59 MEST


Hi,

I've noticed that ROOT doesn't understands the functions atanh(x), asinh(x)
(and maybe more) from the command line or inside scripts.

When I try interactively for example I get:

<cueball-clued0> root
  *******************************************
  *                                         *
  *        W E L C O M E  to  R O O T       *
  *                                         *
  *   Version   4.00/04      17 June 2004   *
  *                                         *
  *  You are welcome to visit our Web site  *
  *          http://root.cern.ch            *
  *                                         *
  *******************************************

FreeType Engine v2.1.3 used to render TrueType fonts.
Compiled for linux with thread support.

CINT/ROOT C/C++ Interpreter version 5.15.133, Apr 18 2004
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] sin(0.0)  
(double)0.00000000000000000e+00
root [1] asin(0.0) 
(double)0.00000000000000000e+00
root [2] sinh(0.0) 
(double)0.00000000000000000e+00
root [3] asinh(0.0)
Error: Function asinh(0.0) is not defined in current scope  FILE:(tmpfile)
LINE:1
Possible candidates are...
filename       line:size busy function type and name  
*** Interpreter error recovered ***
root [4] atanh(0.0)
Error: Function atanh(0.0) is not defined in current scope  FILE:(tmpfile)
LINE:1
Possible candidates are...
filename       line:size busy function type and name  
*** Interpreter error recovered ***
root [5] 

Same I get from inside a script macro (the function is unknown) although I
have 
loaded the <cmath> library. It's kind of strange that the "sinh(x)" function
is know
but not the inverse of it.

Have those functions somehow been removed from ROOT?

The corresponding TMath::ASinH(x) and TMath::ATanH(x) functions work ok.

Stelios.



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET