-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFunction.java
More file actions
36 lines (30 loc) · 814 Bytes
/
Copy pathFunction.java
File metadata and controls
36 lines (30 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package tscore;
/*File : Function.java
* Project: Math Tools in Java
* by Wachara R.
* First Released: 01 Dec 2006
* Last Updated : 15 Dec 2006
*/
/** The mother class for function with finding value of function
* and its derivatives
* @author Wachara R. ( Dec 14, 2006.)
*/
public abstract class Function {
/** return the value of f(x)
* @param x the value of x
* @return function of x
*/
public abstract double Of(double x);
/** return the derivative of x
* @param x the value of x
* @return derivative at x
*/
public double derivativeOf(double x)
{ return 0.0;}
/** return the second derivative of x
* @param x the value of x
* @return derivative at x
*/
public double secondDerivativeOf(double x)
{ return 0.0;}
}