Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 21342 invoked from network); 9 Sep 2004 18:56:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Sep 2004 18:56:02 -0000 Received: (qmail 27775 invoked by uid 500); 9 Sep 2004 18:55:55 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 27721 invoked by uid 500); 9 Sep 2004 18:55:54 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 27707 invoked by uid 99); 9 Sep 2004 18:55:54 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [206.190.39.109] (HELO web52401.mail.yahoo.com) (206.190.39.109) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 09 Sep 2004 11:55:53 -0700 Message-ID: <20040909185550.64936.qmail@web52401.mail.yahoo.com> Received: from [80.176.139.154] by web52401.mail.yahoo.com via HTTP; Thu, 09 Sep 2004 19:55:50 BST Date: Thu, 9 Sep 2004 19:55:50 +0100 (BST) From: =?iso-8859-1?q?Shing=20Hing=20Man?= Subject: Re: Computing values for f(x,y) [math] To: Jakarta Commons Users List , "Fernando_Matias_Valad�o" In-Reply-To: <01a001c4969e$1def55c0$6300a8c0@unitechbh.net.br> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I do not know whether common Maths allow you to evaluate a user defined function. But you certainly can do it using Java Experssion Parser http://www.singularsys.com/jep/ Shing --- Fernando_Matias_Valad�o wrote: > Hello, people! > > I'm developing a Java project that I need to do > something like this: > 1 - Define a function like this, for example: f(x,y) > = 2*x + y/3 + 5 > 2 - Compute a value for this function when I have > values for "x" and "y" > > I found out in thd docs that I can only find the > roots for a function. > Does anybody know if I can do this evalutation with > Commons Math? > If I can't, do you know any other API/framework that > supports something like this? > Thanks in advance > > Fernando ===== Home page : http://uk.geocities.com/matmsh/index.html ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org