@ -0,0 +1,15 @@
public class sanjiaohanshu {
public static void intox(double x,int n) {
//x表示度数
double pi=Math.PI;
double a=x*(pi/180);
switch(n){
case 1:
System.out.println(Math.sin(a));break;//sinx
case 2:
System.out.println(Math.cos(a));break;//cosx
case 3:
System.out.println(Math.tan(a));break;//tanx
}