diff --git a/Calculator.java b/collaboration/Calculator.java similarity index 98% rename from Calculator.java rename to collaboration/Calculator.java index c0f7fde..6ef9d9d 100644 --- a/Calculator.java +++ b/collaboration/Calculator.java @@ -1,5 +1,5 @@ -package 三角函数运算; +package collaboration; import java.util.Scanner; import java.math.*; diff --git a/collaboration/ExFunction.java b/collaboration/ExFunction.java new file mode 100644 index 0000000..77766e9 --- /dev/null +++ b/collaboration/ExFunction.java @@ -0,0 +1,24 @@ +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 static void main(String[] args) { + ExFunction exFunction = new ExFunction(0); + System.out.println(exFunction.index()); + } + + public double index() { + return Math.exp(x); + } + +} diff --git a/TrigonometricFunction.java b/collaboration/TrigonometricFunction.java similarity index 96% rename from TrigonometricFunction.java rename to collaboration/TrigonometricFunction.java index 7565a7c..624c663 100644 --- a/TrigonometricFunction.java +++ b/collaboration/TrigonometricFunction.java @@ -1,4 +1,4 @@ -package 三角函数运算; +package collaboration; import java.math.*; public class TrigonometricFunction {