You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
246 B

package open;
public class sanjiao {
public double sanjiao(String a,double b) {
double c=Math.toRadians(b);
if(a=="sin")
return Math.sin(c);
else if(a=="cos")
return Math.cos(c);
else if(a=="tan")
return Math.tan(c);
return 0;
}
}