查看单个帖子
旧 2009-04-28, 09:42 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】lisp怎么求 反余弦

lisp怎么求 反余弦
www.dimcax.com
lisp怎么求 反余弦
大大帮我。。

check here:

谢谢大大。。。。

打不开。。。。

sorry!
another one
(defun acos (num)
(cond
((equal num 1 1e-12) 0.0)
((equal num -1 1e-12) pi)
((< -1 num 1)
(atan (sqrt (- 1 (expt num 2))) num)
)
)
)
ref link:

通过反正切来求

我编了一个小程序,是以度的形式显示结果.
(defun arcos (b)
(setq a (sqrt (- 1 (* b b))))
(setq jd (angtos (atan (/ a b)) 0 4))
)
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)