梅花 09:37:06
函数错误: 0.523599
梅花 09:41:50
(defun dtr(a)
(* a (/ pi 180))
)
(defun c:itriangle(/ p1 p2 p3 l1 a b)
(setvar "cmdecho" 0)
(graphscr)
(setq p1 (getpoint "
enter first point of bottom later:"))
(setq l1 (getdist "
enter length of bottom later:"))
(setq a (getangle"
enter angle of bottom later to x:"))
(setq b (getangle"
enter angle of bottom angle:"))
(setq p2 (polar p1 a l1))
(setq p3 (polar p1 (+ a b) (/ (/ l1 2) cos dtr(b)))
(command "line" p1 p2 p3 "c")
(setvar "cmdecho" 1)
(princ)
)
以上是绘制等腰三角形的程序,加载后出现
错误: 函数错误: 0.523599 我输入法的b j 30 请帮助解决
梅花 09:42:29
我输入的b 是30出现以上错误。谢谢 |