Free Courses | Free Gallery | Free Library | Free FAQS | Free Links | Free Speech |
|
Free Java Package: function Brief:This package can be used to work with polynomial functions. Program Listing
How to use: Polynomial p = new Polynomial("3x^2 - 5x + 0"); int x = 3; System.out.println("p: " + p.toString()); System.out.println("p evaluated at " + x + " is " + p.f(x)); System.out.println("the derivative of p evaluated at " + x + " is " + p.fp(x)); System.out.println("p in nested form is " + p.fxToNestedForm()); System.out.println("the derivative of p in nested form is " + p.fpxToNestedForm()); Download this package including the example files in here. |