|
@@ -6,8 +6,6 @@ public class ScientificFunctions
|
6
|
6
|
public static double memory = 0;
|
7
|
7
|
public static boolean degMode = true;
|
8
|
8
|
public static boolean radMode = false;
|
9
|
|
-<<<<<<< HEAD
|
10
|
|
-=======
|
11
|
9
|
public static boolean decMode = true;
|
12
|
10
|
public static boolean hexMode = false;
|
13
|
11
|
public static boolean binMode = false;
|
|
@@ -15,7 +13,7 @@ public class ScientificFunctions
|
15
|
13
|
public static String hexOut;
|
16
|
14
|
public static String binOut;
|
17
|
15
|
public static String octOut;
|
18
|
|
->>>>>>> 063d73dc4208e605d3684ff88c12d0e9d50875f4
|
|
16
|
+
|
19
|
17
|
|
20
|
18
|
public static double sqr(double display) {
|
21
|
19
|
System.out.println( display * display);
|
|
@@ -40,10 +38,9 @@ public class ScientificFunctions
|
40
|
38
|
|
41
|
39
|
public static double setMem(double display) {
|
42
|
40
|
System.out.println("Set to memory!");
|
43
|
|
-<<<<<<< HEAD
|
|
41
|
+
|
44
|
42
|
return memory = display;
|
45
|
|
-=======
|
46
|
|
->>>>>>> 063d73dc4208e605d3684ff88c12d0e9d50875f4
|
|
43
|
+
|
47
|
44
|
|
48
|
45
|
}
|
49
|
46
|
|
|
@@ -58,10 +55,7 @@ public class ScientificFunctions
|
58
|
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
|
60
|
public static double cosine(double display) {
|
67
|
61
|
if (degMode == true){
|