Hi Thomas, What are you trying to accomplish (your not really trying to call 'cos' via the interpreter, are you)? Anyway, you are not doing any 'wrong' except that cos, sin, and some of the other function of the C library are treated in a special manner that disable their use via a CINT's G__CallFunc (implementation used by TMethodCall). However I am not thinking of a case where this would really be an issue (i.e. where you would really want to use TMethodCall to call cos). Cheers, Philippe. -----Original Message----- From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Thomas Bretz Sent: Monday, November 17, 2003 4:45 PM To: roottalk@pcroot.cern.ch Subject: [ROOT] TMethodCall question Dear all, what is wrong with: TMethodCall call("cos", "0.55"); Double_t result; call.Execute(&result); I cannot get the correct result for cos(0.55) or similar... Thanks in advnce, Thomas.
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET