几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(AutoLISP) (http://www.dimcax.com/hust/forumdisplay.php?f=178)
-   -   lisp怎么求 反余弦 (http://www.dimcax.com/hust/showthread.php?t=10639)

yang686526 2009-04-25 08:26 PM

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))
)


所有的时间均为北京时间。 现在的时间是 01:17 AM.