From 494a85dd7dc6234aa56cb66d97f490d4d54f02b3 Mon Sep 17 00:00:00 2001 From: suyi <1679634762@qq.com> Date: Thu, 6 Aug 2020 19:08:03 +0800 Subject: [PATCH] group --- .../Calculator.java | 2 +- collaboration/ExFunction.java | 24 +++++++++++++++++++ .../TrigonometricFunction.java | 2 +- 3 files changed, 26 insertions(+), 2 deletions(-) rename Calculator.java => collaboration/Calculator.java (98%) create mode 100644 collaboration/ExFunction.java rename TrigonometricFunction.java => collaboration/TrigonometricFunction.java (96%) 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 {