Vincent Sima 6 年前
父节点
当前提交
56bd1cd8e0
共有 2 个文件被更改,包括 15 次插入21 次删除
  1. 4
    10
      ScientificFunctions.java
  2. 11
    11
      package.bluej

+ 4
- 10
ScientificFunctions.java 查看文件

6
     public static double memory = 0;
6
     public static double memory = 0;
7
     public static boolean degMode = true;
7
     public static boolean degMode = true;
8
     public static boolean radMode = false;
8
     public static boolean radMode = false;
9
-<<<<<<< HEAD
10
-=======
11
     public static boolean decMode = true;
9
     public static boolean decMode = true;
12
     public static boolean hexMode = false;
10
     public static boolean hexMode = false;
13
     public static boolean binMode = false;
11
     public static boolean binMode = false;
15
     public static String hexOut;
13
     public static String hexOut;
16
     public static String binOut;
14
     public static String binOut;
17
     public static String octOut;
15
     public static String octOut;
18
->>>>>>> 063d73dc4208e605d3684ff88c12d0e9d50875f4
16
+
19
 
17
 
20
     public static double sqr(double display) {
18
     public static double sqr(double display) {
21
         System.out.println( display * display);
19
         System.out.println( display * display);
40
 
38
 
41
     public static double setMem(double display) {
39
     public static double setMem(double display) {
42
         System.out.println("Set to memory!");
40
         System.out.println("Set to memory!");
43
-<<<<<<< HEAD
41
+
44
         return memory = display;
42
         return memory = display;
45
-=======
46
->>>>>>> 063d73dc4208e605d3684ff88c12d0e9d50875f4
43
+
47
 
44
 
48
     }
45
     }
49
 
46
 
58
         return display = memory; 
55
         return display = memory; 
59
 
56
 
60
     }
57
     }
61
-<<<<<<< HEAD
62
-=======
63
-    //Fixed trig functions to convert to radians before printing the equation.
64
->>>>>>> 063d73dc4208e605d3684ff88c12d0e9d50875f4
58
+
65
 
59
 
66
     public static double cosine(double display) {
60
     public static double cosine(double display) {
67
         if (degMode == true){
61
         if (degMode == true){

+ 11
- 11
package.bluej 查看文件

9
 dependency3.to=ScientificFunctions
9
 dependency3.to=ScientificFunctions
10
 dependency3.type=UsesDependency
10
 dependency3.type=UsesDependency
11
 editor.fx.0.height=709
11
 editor.fx.0.height=709
12
-editor.fx.0.width=800
13
-editor.fx.0.x=375
14
-editor.fx.0.y=29
12
+editor.fx.0.width=1123
13
+editor.fx.0.x=139
14
+editor.fx.0.y=23
15
 objectbench.height=198
15
 objectbench.height=198
16
-objectbench.width=510
17
-package.divider.horizontal=0.5675082327113062
16
+objectbench.width=540
17
+package.divider.horizontal=0.6004390779363337
18
 package.divider.vertical=0.685099846390169
18
 package.divider.vertical=0.685099846390169
19
 package.editor.height=439
19
 package.editor.height=439
20
 package.editor.width=805
20
 package.editor.width=805
21
-package.editor.x=192
22
-package.editor.y=38
21
+package.editor.x=394
22
+package.editor.y=50
23
 package.frame.height=709
23
 package.frame.height=709
24
 package.frame.width=931
24
 package.frame.width=931
25
 package.numDependencies=3
25
 package.numDependencies=3
37
 target1.showInterface=false
37
 target1.showInterface=false
38
 target1.type=ClassTarget
38
 target1.type=ClassTarget
39
 target1.width=140
39
 target1.width=140
40
-target1.x=560
41
-target1.y=110
40
+target1.x=320
41
+target1.y=200
42
 target2.height=50
42
 target2.height=50
43
 target2.name=Console
43
 target2.name=Console
44
 target2.showInterface=false
44
 target2.showInterface=false
58
 target4.showInterface=false
58
 target4.showInterface=false
59
 target4.type=ClassTarget
59
 target4.type=ClassTarget
60
 target4.width=120
60
 target4.width=120
61
-target4.x=560
62
-target4.y=220
61
+target4.x=80
62
+target4.y=240