home *** CD-ROM | disk | FTP | other *** search
- (defun HDD87 ()
- (setvar "CMDECHO" 0)
- (command "vslide" "\\house1\\sld\\s702")
- (command "layer" "n" "b0" "s" "b0")
- (setq nl 0)
- (while (and (/= y1 "e") (/= y1 "E"))
- (setq lo (strcat "b" (itoa nl)))
- (setq ln (strcat "b" (itoa (1+ nl))))
- (command "layer" "n" ln "ln" "s" "ln" "")
- (setq y2 "y")
- (while (and (/= y2 "s") (/= y2 "S"))
- (command "vslide" "\\house1\\sld\\s47g")
- (setq nc (getstring "\n╩Σ╚δ╤í╘±╧ε<1-5>: "))
- (command "redraw")
- (setq formula (strcat "trans" nc))
- (cond ((= formula "trans1") (trans1))
- ((= formula "trans2") (trans2))
- ((= formula "trans3") (trans3))
- ((= formula "trans4") (trans4))
- ((= formula "trans5") (trans5))
- )
- (command "layer" "s" lo "")
- (command "layer" "on" lo "")
- (command "layer" "off" ln "")
- (setq y2 (getstring "\n╝╠╨°<C>╗≥═ú╓╣<S>: "))
- )
- (command "layer" "s" ln "")
- (command "layer" "off" lo "")
- (command "layer" "on" ln "")
- (setq nl (1+ nl))
- (setq y1 (getstring "\n╝╠╨°╝≥╗»<C>╗≥╜ß╩°<E>: "))
- )
- (setq z (getreal "\nresistance: "))
- (setq v (getreal "\nvoltage: "))
- (setq i (/ v z))
- (check 'hdd70 "hdd70")
- )
- (defun trans1()
- (setq j 1)
- (setq x 0)
- (while (/= j 0)
- (setq w (getreal "\n╩Σ╚δ╫Φ┐╣╓╡╗≥<0>╜ß╩°: "))
- (setq x (+ x w))
- (setq j w)
- )
- (command "layer" "s" ln "")
- (command "layer" "off" lo "")
- (command "layer" "s" ln "")
- (setq p (getpoint "\n╩Σ╚δ▓σ╚δ╡π: "))
- (command "insert" "t1" p 1 1 0 x)
- )
- (defun trans2()
- (setq j 1)
- (setq y 0)
- (while (/= j 0)
- (setq w (getreal "\n╩Σ╚δ╫Φ┐╣╓╡╗≥<0>╜ß╩°: "))
- (setq y (+ y (/ 1 w)))
- (setq j w)
- )
- (setq x (/ 1 y))
- (command "layer" "s" ln "")
- (command "layer" "off" lo "")
- (command "layer" "on" ln "")
- (setq p (getpoint "╩Σ╚δ▓σ╚δ╡π: "))
- (command "insert" "t2" p 1 1 0 x)
- )
- (defun trans3()
- (setq x12 (getreal "\n╩Σ╚δ x12= : "))
- (setq x23 (getreal "\n╩Σ╚δ x23= : "))
- (setq x31 (getreal "\n╩Σ╚δ x31= : "))
- (setq x1 (/ (* x12 x31) (+ x12 (+ x23 x31))))
- (setq x2 (/ (* x12 x23) (+ x12 (+ x23 x31))))
- (setq x3 (/ (* x23 x31) (+ x12 (+ x23 x31))))
- (command "layer" "s" ln "")
- (command "layer" "off" lo "")
- (command "layer" "on" ln "")
- (setq p (getpoint "╩Σ╚δ▓σ╚δ╡π: "))
- (command "insert" "t3" p 1 1 0 x1 x2 x3)
- )
- (defun trans4()
- (setq x1 (getreal "\n╩Σ╚δ x1= : "))
- (setq x2 (getreal "\n╩Σ╚δ x2=: "))
- (setq x3 (getreal "\n╩Σ╚δ x3=: "))
- (setq x12 (+ x1 (+ x2 (/ (* x1 x2) x3))))
- (setq x23 (+ x2 (+ x3 (/ (* x2 x3) x1))))
- (setq x31 (+ x3 (+ x1 (/ (* x3 x1) x2))))
- (command "layer" "s" ln "")
- (command "layer" "off" lo "")
- (command "layer" "on" ln "")
- (setq p (getpoint "╩Σ╚δ▓σ╚δ╡π: "))
- (command "insert" "t4" p 1 1 0 x12 x23 x31)
- )
- (defun trans5()
- (setq x1 (getreal "\n╩Σ╚δ x1=: "))
- (setq x2 (getreal "\n╩Σ╚δ x2=: "))
- (setq x3 (getreal "\n╩Σ╚δ x3=: "))
- (setq x4 (getreal "\n╩Σ╚δ x4=: "))
- (setq y (+ (/ 1 x1) (+ (/ 1 x2) (+ (/ 1 x3) (+ (/ 1 x4))))))
- (setq x12 (* x1 (* x2 y)))
- (setq x23 (* x2 (* x3 y)))
- (setq x34 (* x3 (* x4 y)))
- (setq x41 (* x4 (* x1 y)))
- (setq x13 (* x1 (* x3 y)))
- (setq x24 (* x2 (* x2 y)))
- (command "layer" "s" ln "")
- (command "layer" "off" lo "")
- (command "layer" "on" ln "")
- (setq p (getpoint "\n▓σ╚δ╗∙╡π: "))
- (command "insert" "t5" p 1 1 0 x12 x23 x34 x41 x13 x24)
- )
- (hdd87)