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
→
04/23 22:22, , 1F
04/23 22:22, 1F
→
04/23 22:24, , 2F
04/23 22:24, 2F
推
04/24 01:10, , 3F
04/24 01:10, 3F
→
04/24 01:11, , 4F
04/24 01:11, 4F
→
04/24 01:11, , 5F
04/24 01:11, 5F
→
04/24 01:13, , 6F
04/24 01:13, 6F
→
04/24 01:13, , 7F
04/24 01:13, 7F
→
04/24 01:14, , 8F
04/24 01:14, 8F
→
04/24 01:15, , 9F
04/24 01:15, 9F
推
04/25 13:24, , 10F
04/25 13:24, 10F
→
04/25 13:24, , 11F
04/25 13:24, 11F
推
04/26 11:18, , 12F
04/26 11:18, 12F
→
04/26 11:19, , 13F
04/26 11:19, 13F
推
04/27 00:47, , 14F
04/27 00:47, 14F
→
04/27 00:48, , 15F
04/27 00:48, 15F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
Cad_Cae 近期熱門文章
PTT數位生活區 即時熱門文章