1 is an integer. Math.sin() wants a double, so you have to say
(call Math sin 1.0) .

I think Yingjie Wang wrote:
> Hi,
> 
> I got a problem with the 'sin' function as follows:
> 
> (defglobal ?*mathFuns* = java.lang.Math)
> (printout t "sin test: " (call ?*mathFuns* sin 1))
> 
> When I run the  program including the part above, it gave me a error like
> "No method 'sin' or invalid argument".  If I use an initialized variable
> in the place of 1, it works just fine.  I am wondering if somebody knows
> why it works like that. Thank you very much.
> 
> Yingjie Wang
> 



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to