Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/*
package com.zipcodewilmington.scientificcalculator;

import com.sun.codemodel.internal.JSwitch;

public class Scientific {

public static void main(String[] args) {
Expand Down Expand Up @@ -53,10 +51,12 @@ public static void main(String[] args) {
case "!x":
long fact = 1;
for (int i = 2; i <= firstNum; i++) {
value = fact * i;}
value = fact * i;
}
break;
default:
System.out.println("ERR");}
System.out.println("ERR");
}

switch (operator) {
case ".log":
Expand All @@ -74,23 +74,24 @@ public static void main(String[] args) {
case "Ln":
value = Math.log(firstNum);
break;

default
System.out.println("ERR");}
public Double (value){
if (Math.toRadians(value))





System.out.println("ERR");
}
*/public static boolean isRadian ( double input){
double to180 = (input + ((180 / Math.PI) - input));
// 57 is 180 degrees rounded to whole number
if (Math.round(to180) == 57) {
return true;
} else {
/*}return false;


}

}

}
//<<<<<<< master
//=======
*/


//>>>>>>> master