Java实现数学三角函数sin、cos、tan的计算 |
您所在的位置:网站首页 › arccosx怎么求度数 › Java实现数学三角函数sin、cos、tan的计算 |
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)); } } |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |