public
class
SanJiao {
public
static
void
main(String[] args) {
double
a = Math.toRadians(
90
);
//把数字90 转换成 90度
System.out.println(Math.sin(a));
//计算sin 90度
double
b = Math.toRadians(
30
);
System.out.println(Math.cos(b));
double
c = Math.toRadians(
20
);
System.out.println(Math.tan(c));
}
}