home *** CD-ROM | disk | FTP | other *** search
- (defun HDD76 ()
- (setvar "CMDECHO" 0)
- (command "vslide" "\\house1\\sld\\s76")
- (setq f 0)
- (setq f1 0)
- (while (and (/= f "E") (/= f "e"))
- (setq f1 (getstring "\n╩Σ╚δ╝╞╦π╧ε <1-3>: "))
- (cond ((= f1 "1") (PCR))
- ((= f1 "2") (Cosfi))
- ((= f1 "3") (Select))
- )
- (setq f (getstring "\n╝╠╨°╝╞╦π<C>╗≥╜ß╩°<E>: "))
- )
- (command "redraw")
- (print "end")
- )
- (defun PCR ()
- (setq f2 0)
- (setq f3 0)
- (while (and (/= f2 "S1") (/= f2 "s1"))
- (setq f3 (getint "╩Σ╚δ╝╞╦π╧ε <1-2>: "))
- (cond ((= f3 1) (ab))
- ((= f3 2) (ba))
- )
- (setq f2 (getstring "\n╝╠╨°╝╞╦π<C> ╗≥═╦│÷<S1>: "))
- )
- )
- (defun ab ()
- (setq Qc 0)
- (setq Pjs (getreal "\n╩Σ╚δ Pjs= "))
- (setq tanfi1 (getreal "\n╩Σ╚δ tanfi1= "))
- (setq tanfi2 (getreal "\n╩Σ╚δ tanfi2= "))
- (setq Qc (* 0.725 (* Pjs (- tanfi1 tanfi2))))
- (setq qc3 qc)
- (setq Q "Qc= ")
- (setq Qca (strcat Q (rtos Qc 2 4)))
- (print Qca)
- )
- (defun ba()
- (setq Wm (getreal "\n╩Σ╚δ Wm= "))
- (setq Kjm (getreal "\n╩Σ╚δ Kjm= "))
- (setq tanfi1 (getreal "\n╩Σ╚δ tanfi1= "))
- (setq tanfi2 (getreal "\n╩Σ╚δ tanfi2= "))
- (setq fm (getreal "\n╩Σ╚δ fm= "))
- (setq Qc2 (/ (* Wm (* Kjm (- tanfi1 tanfi2))) fm))
- (setq qc4 qc2) (setq qc3 qc2)
- (setq Q "Qc2= ")
- (setq Qcb (strcat Q (rtos Qc2 2 4)))
- (print Qcb)
- )
- (defun Cosfi ()
- (setq f4 0)
- (setq f5 0)
- (setq Tx '())
- (while (and (/= f4 "S2") (/= f4 "s2"))
- (setq f5 (getint "╩Σ╚δ╝╞╦π╧ε<1-3>: "))
- (cond ((= f5 1) (cos1))
- ((= f5 2) (cos2))
- ((= f5 3) (cos3))
- )
- (setq f4 (getstring "\n╝╠╨°╝╞╦π<C> ╗≥═╦│÷<S2>: "))
- )
- )
- (defun cos1 ()
- (setq Bn (getreal "\n╩Σ╚δ Bn= "))
- (setq Tx (cons Bn Tx))
- (setq Qjs (getreal "\n╩Σ╚δ Qjs= "))
- (setq Tx (cons Qjs Tx))
- (setq Pjs (getreal "\n╩Σ╚δ Pjs= "))
- (setq Tx (cons Pjs Tx))
- (setq an (getreal "\n╩Σ╚δ an= "))
- (setq Tx (cons an Tx))
- (setq L (open "yu.tst" "w"))
- (setq Tx (reverse Tx))
- (print Tx L)
- (close L)
- (setq f6 (/ (* Bn Qjs) (* an Pjs)))
- (setq f7 (/ 1 (+ (* f6 f6) 1)))
- (setq f8 (sqrt f7))
- (setq Q "Cosfi1= ")
- (setq Cosfi1 (strcat Q (rtos f8 2 4)))
- (print cosfi1)
- )
- (defun cos2 ()
- (cond ((= Qc3 nil) (ab)))
- (cond ((= Qc4 nil) (ba)))
- (setq L (open "yu.tst" "r"))
- (read-line L)
- (setq Tx1 (read (read-line L)))
- (setq Bn (nth 0 Tx1))
- (setq Qjs (nth 1 Tx1))
- (setq Pjs (nth 2 Tx1))
- (setq an (nth 3 Tx1))
- (close L)
- (setq f9 (/ (- (* Bn Qjs) Qc3) (* an Pjs)))
- (setq f10 (/ 1 (+ (* f9 f9) 1)))
- (setq f11 (sqrt f10))
- (setq Q "cosfi2= ")
- (setq cosfi2 (strcat Q (rtos f11 2 4)))
- (print cosfi2)
- )
- (defun cos3 ()
- (setq Wm (getreal "\n╩Σ╚δ Wm= "))
- (setq f12 Wm)
- (setq Wm (* Wm Wm))
- (setq Wrm (getreal "\n╩Σ╚δ Wrm= "))
- (setq Wrm (* Wrm Wrm))
- (setq Cosfi3 (/ f12 (sqrt (+ Wm Wrm))))
- (setq Q "Cosfi3= ")
- (setq Cosfi3 (strcat Q (rtos Cosfi3 2 4)))
- (print Cosfi3)
- )
- (defun Select ()
- (setq f13 0)
- (setq f14 0)
- (setq Tx3' ())
- (while (and (/= f13 "S3") (/= f13 "s3"))
- (setq f14 (getint "╩Σ╚δ╝╞╦π╧ε<1-2>: "))
- (cond ((= f14 1) (RL))
- ((= f14 2) (RL1))
- )
- (setq f13 (getstring "\n╝╠╨°╝╞╦π<C> ╗≥═╦│÷<S3>: "))
- )
- )
- (defun RL ()
- (setq Qjs (getreal "\n╩Σ╚δ QJs= "))
- (setq Tx3 (cons Qjs Tx3))
- (setq Ad (getreal "\n╩Σ╚δ Ad= "))
- (setq Tx3 (cons Ad Tx3))
- (setq Ag (getreal "\n╩Σ╚δ Ag= "))
- (setq Tx3 (cons Ad Tx3))
- (setq Ud (getreal "\n╩Σ╚δ Ud= "))
- (setq Ud (* Ud Ud))
- (setq Tx3 (cons Ud Tx3))
- (setq nb (getreal "\n╩Σ╚δ nb= "))
- (setq Tx3 (cons nb Tx3))
- (setq F (getreal "\n╩Σ╚δ F= "))
- (setq Tx3 (cons F Tx3))
- (setq Ta (getreal "\n╩Σ╚δ Ta= "))
- (setq Tx3 (cons Ta Tx3))
- (setq R (getreal "\n╩Σ╚δ R= "))
- (setq Tx3 (cons R Tx3))
- (setq Tx3 (reverse Tx3))
- (setq L1 (open "yu1.tst" "w"))
- (print Tx3 L1)
- (close L1)
- (setq f16 (/ (* Ud (* 1000 (- Ad Ag))) (* nb (* F (* Ta R)))))
- (setq Qkh (- (* 2 Qjs) f16))
- (setq Q "Qkh= ")
- (setq Qkh (strcat Q (rtos Qkh 2 4)))
- (print Qkh)
- )
- (defun RL1 ()
- (setq L1 (open "yu1.tst" "r"))
- (read-line L1)
- (setq Tx2 (read (read-line L1)))
- (setq Qjs (nth 0 Tx2))
- (setq Ad (nth 1 Tx2))
- (setq Ag (nth 2 Tx2))
- (setq Ud (nth 3 Tx2))
- (setq nb (nth 4 Tx2))
- (setq f (nth 5 Tx2))
- (setq Ta (nth 6 Tx2))
- (setq R (nth 7 Tx2))
- (setq f18 (/ (* Ud (* (- Ad Ag) 10000)) (* 2 (* nb (* f (* Ta R))))))
- (setq Qkh1 (- Qjs f18))
- (setq Qkh1 (strcat Q (rtos Qkh1 2 4)))
- (print Qkh1)
- )
- (hdd76)