On Nov 18, 2007, at 8:08 PM, molistok wrote:


Thank you very much for the replys, now I can put the function acos and run.
I put one example:
(bind ?a (call java.lang.Math acos (/ (- (- (** ?d1 2) (** ?d2 2)) (** ?d3
2)) (* (* -2 ?d3) ?d2))))
thank you very much.
Why can't put acos without call java.lang.Math?Thanks.

Simply because there's no function by that name built into Jess. One of the appendices of the Jess manual lists all the available Jess functions.

You could define your own "acos" like this:

(deffunction acos (?arg)
    (call java.lang.Math acos ?arg))

And then you could call this like

(acos 0.45)





Ernest Friedman-Hill wrote:

It just means what it sounds like: some code in this example called a
function named "Acos", but there's no function by that name to call.
Jess doesn't have one built in, and the example apparently doesn't
define one, either.

On Nov 18, 2007, at 3:41 PM, molistok wrote:


Hi, I am trying to run one example of jess and I see this error:
while executing (Acos ?valor)
...
...
 unimplemented function Acos.
Can anybody help me please?
Thanks.
--
View this message in context: http://www.nabble.com/unimplemented-
function-Acos-tf4831740.html#a13823518
Sent from the Jess mailing list archive at Nabble.com.

--------------------------------------------------------------------
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 owner-jess-
[EMAIL PROTECTED]
--------------------------------------------------------------------

---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550                 http://www.jessrules.com

--------------------------------------------------------------------
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 owner-jess- [EMAIL PROTECTED]
--------------------------------------------------------------------




--
View this message in context: http://www.nabble.com/unimplemented- function-Acos-tf4831740.html#a13826200
Sent from the Jess mailing list archive at Nabble.com.

--------------------------------------------------------------------
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 owner-jess- [EMAIL PROTECTED]
--------------------------------------------------------------------

---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550                 http://www.jessrules.com

--------------------------------------------------------------------
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