Try (printout t "sin test:" (?*mathFuns* sin 1.0))
alan
> -----Original Message-----
> From: Yingjie Wang [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 12, 2000 3:10 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: JESS: question
>
>
> 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
>
> ---------------------------------------------------------------------
> 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]
> ---------------------------------------------------------------------
>
---------------------------------------------------------------------
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]
---------------------------------------------------------------------