You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
262 B
20 lines
262 B
5 years ago
|
package collaborative;
|
||
|
|
||
|
/**
|
||
|
* @author suyi
|
||
|
* @version 1.0
|
||
|
* @date 2020/8/6 18:00
|
||
|
*/
|
||
|
public class ExFunction {
|
||
|
public double x;
|
||
|
|
||
|
public ExFunction(double x) {
|
||
|
this.x = x;
|
||
|
}
|
||
|
|
||
|
public double index() {
|
||
|
return Math.exp(x);
|
||
|
}
|
||
|
|
||
|
}
|