home *** CD-ROM | disk | FTP | other *** search
- (defun hdd88 ()
- (setvar "CMDECHO" 0)
- (command "vslide" "\\house1\\sld\\s703")
- (setq y1 "c")
- (while (and (/= y1 "E") (/= y1 "e"))
- (setq c1 (getint "\n╩Σ╚δ╝╞╦π╧ε<1,2>: "))
- (cond ((= c1 1) (dld1))
- ((= c1 2) (dld2)))
- (setq y1 (getstring "\n╝╠╨°╝╞╦π<C>╗≥═╦│÷╝╞╦π<E>: "))
- )
- (check 'hdd70 "hdd70")
- )
- (defun dld1()
- (setq y2 "c")
- (while (and (/= y2 "s1") (/= y2 "S1"))
- (setq c2 (getint "╩Σ╚δ╤í╘±╧ε<11,12>: "))
- (cond ((= c2 11) (tri))
- ((= c2 12) (bin)))
- (setq y2 (getstring "\n╝╠╨°<C>╗≥═╦│÷┤╦╧ε╝╞╦π<S1>: "))
- )
- )
- (defun tri()
- (setq Up (getreal "\nUp= "))
- (setq Rc (getreal "\nR= "))
- (setq Xc (getreal "\nX= "))
- (if (= Rc nil) (setq Zc (getreal "\nZ= ")))
- (if (/= Rc nil) (progn (setq Zc (sqrt
- (+ (* Rc Rc)
- (* Xc Xc)
- )))))
- (setq Id3 (/ Up (* Zc (sqrt 3))))
- (setq Q "Id3= ")
- (setq Id31 (strcat Q (rtos Id3 2 4)))
- (print Id31)
- )
- (defun bin()
- (cond ((= Id3 nil) (tri)))
- (setq Id2 (* 0.866 Id3))
- (setq Q1 "Id2= ")
- (setq Id2 (strcat Q1 (rtos Id2 2 4)))
- (print Id2)
- )
- (defun dld2()
- (setq y3 "c")
- (while (and (/= y3 "S2") (/= y3 "s2"))
- (setq c3 (getint "╩Σ╚δ╝╞╦π╧ε<21,22>: "))
- (if (= c3 21) (dz))
- (if (= c3 22) (pz))
- (setq y3 (getstring "\n╝╠╨°<C>╗≥═╦│÷┤╦╧ε╝╞╦π<S2>: "))
- )
- )
- (defun dz()
- (setq Up (getreal "\nUp= "))
- (setq R1c (getreal "\nR1= "))
- (setq R2c (getreal "\nR2= "))
- (setq R3c (getreal "\nR3= "))
- (setq R0c (getreal "\nR0= "))
- (setq X1c (getreal "\nX1= "))
- (setq X2c (getreal "\nX2= "))
- (setq X3c (getreal "\nX3c= "))
- (setq X0c (getreal "\nX0= "))
- (setq R3 (/ (+ R1c R2c R3c) 3))
- (setq X3 (/ (+ X1c X2c X3c) 3))
- (setq R4 (sqrt (+ (* R3c R3c) (* X3c X3c))))
- (setq R5 (/ Up (sqrt 3)))
- (setq Id1 (/ R5 R4))
- (setq Q "Id1= ")
- (setq Id1 (strcat Q (rtos Id1 2 4)))
- (print Id1)
- )
- (defun pz ()
- (setq up (getreal "\nup="))
- (setq rxl (getreal "\nrxl="))
- (setq xxl (getreal "\nxxl="))
- (setq rxl (* rxl rxl))
- (setq xxl (* xxl xxl))
- (setq jx1 (sqrt (+ rxl xxl)))
- (setq jx2 (/ up 1.732 ))
- (setq id (/ jx1 jx2))
- (setq Q "id= ")
- (setq id (strcat Q (rtos id 2 4)))
- (print id)
- )
- (hdd88)