為什麼這篇曲線方程式軟體鄉民發文收入到精華區:因為在曲線方程式軟體這個討論話題中,有許多相關的文章在討論,這篇最有參考價值!作者sjgau (sjgau)看板Cad_Cae標題Re: [問題] AUTOCAD怎麼繪出方程式曲...
http://mypaper.pchome.com.tw/news/sjgau/3/1283282005/20060404165056/#centerFlag
; this is a comment
;|
this is the block comment
can over server lines
|;
(textscr)
; we will plot a sine- curve, from 0 - 360, t1 - t2
; step dt
; dt= (t2 - t1)/no
; no= ?
(setq no (getint "Please input a number(100 - 300) for test: "))
(setq t1 0.0 t2 360.0)
(setq dt (/ (- t2 t1) no))
(command "blipmode" "off")
(setvar "cmdecho" 0)
(graphscr)
(command "PLine")
; for tt= t1 to t2 step dt do ...
(setq t2 (+ t2 (/ dt 10.0)))
(setq tt t1)
(while (<= tt t2)
(setq x (* (/ tt 180.0) pi))
(setq y (sin x))
(setq p1 (list x y))
(command p1)
(setq tt (+ tt dt))
); end of while()
(command "")
(princ); end of the file
※ 引述《cino13 (阿升)》之銘言:
: 請問板上各位
: 如果我有一曲線方程式 例如 y=ax+b 0<= y,x<=1 之類
: 怎樣繪出此曲線方程式圖形??
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.193.222.89