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; } }