试题题干
tan(45°)的结果是。
参考答案
试题解析
函数double tan(double x)中的x以弧度为单位。如果是角度,则用x*3.1415926/180转换为弧度。即tan(45°)=tan(45*3.1415926/180)的结果是1.000000。
tan(45°)的结果是。
函数double tan(double x)中的x以弧度为单位。如果是角度,则用x*3.1415926/180转换为弧度。即tan(45°)=tan(45*3.1415926/180)的结果是1.000000。