long a = in.nextLong();
long c = (long) Math.tan(b);
}
上面是我试图让Math.tan以度为单位输出正确的角度值。我知道math.tan方法只接受以弧度表示的角度作为参数。我无法获得90,270角度的正确值...使用double不会产生正确的答案。
我想画一条线45度相对于x轴在R基图形。如何计算直线的斜率,使其相对于x轴画45度?让我重新调整一下。请在下面的图上画一条45度的线。# for example, you may use pdf(width=17, height=11)# if you use a fixed slope,
# then the angle will not be constant when you c