-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFunction.java
More file actions
32 lines (26 loc) · 858 Bytes
/
Function.java
File metadata and controls
32 lines (26 loc) · 858 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
import java.lang.UnsupportedOperationException;
/**
* @author Rakith (Jay) Jayewardene
* Establishes an abstract class named Function
*/
public abstract class Function {
/**
* Creates an abstract method named value that takes a double as input
* @param inputValue
*/
public abstract double value(double inputValue);
/**
* Creates an abstract method named value that takes no input
*/
public abstract double value() throws UnsupportedOperationException;
/**
* Creates an abstract method named derivative that takes no input
* @return type Function
*/
public abstract Function derivative();
/**
* Creates an abstract method named equals that takes an Object named function as input
* @return type boolean
*/
public abstract boolean equals(Object function);
}