如果我输入
$ grep timeout /etc/mysql/mysql.conf.d/mysqld.cnf
# https://support.rackspace.com/how-to/how-to-change-the-mysql-timeout-on-a-server/
# wait = timeout for application session (tdm)
# inteactive = timeout for keyboard session (terminal)
# 7 days = 604800s / 4 hours = 14400s
wait_timeout = 604800
interactive_timeout = 14400
我得到了
cos(90)
但是我的计算器给出了
-0.4480736
我不明白。
0
明显?
答案 0 :(得分:3)
来自help(Trig)
:
对于标准版本(即,直角π/ 2 ),角度为弧度而非度数,
cospi
等的“半旋转”角度< / p>
> cos(pi)
[1] -1
> cos(2*pi)
[1] 1
请注意:
> pi
[1] 3.141593