home *** CD-ROM | disk | FTP | other *** search
- (defun hdd72()
- (setvar "CMDECHO" 0)
- (command "vslide" "\\house1\\sld\\s72")
- (setq a "b")
- (setq a1 0)
- (while (and (/= a "E") (/= a "e"))
- (setq a1 (getint "╩Σ╚δ╤í╘±╧ε<1-2>: "))
- (cond ((= a1 1) (fj1))
- ((= a1 2) (fj2))
- )
- (setq a (getstring "╝╠╨°╝╞╦π <C> ╗≥╜ß╩° <E>: "))
- )
- (command "redraw")
- (print "end")
- )
- (defun fj1()
- (setq b "a")
- (setq b1 0)
- (while (and (/= b "s1") (/= b "S1"))
- (setq b1 (getint "╩Σ╚δ╤í╘±╧ε<1-3>: "))
- (cond ((= b1 1) (fj11))
- ((= b1 2) (fj12))
- ((= b1 3) (fj13))
- )
- (setq b (getstring "╝╠╨°╝╞╦π <C> ╗≥═╦│÷ <S1>: "))
- )
- )
- (defun fj11()
- (setq c "b")
- (setq c1 0)
- (while (and (/= c "s11") (/= c "S11"))
- (setq c1 (getint "╩Σ╚δ╤í╘±╧╧ε <1-2>: "))
- (cond ((= c1 1) (fj111))
- ((= c1 2) (fj112))
- )
- (setq c (getstring "╝╠╨°╝╞╦π <C> ╗≥═╦│÷<S11>: "))
- )
- )
- (defun fj111()
- (setq h (getreal "h= "))
- (setq r (* h 1.5))
- (setq q "r=")
- (setq r (strcat q (rtos r 2 4)))
- (print r)
- )
- (defun fj112()
- (setq h (getreal "h= "))
- (setq hx (getreal "hx= "))
- (setq p (getreal "p= "))
- (cond ((>= hx (/ h 2)) (setq rx (* (- h hx) p))))
- (cond ((< hx (/ h 2)) (setq rx (* (- (* h 1.5) (* hx 2)) p))))
- (setq q "rx=")
- (setq rx (strcat q (rtos rx 2 4)))
- (print rx)
- )
- (defun fj12()
- (setq d "c")
- (setq d1 0)
- (while (and (/= d "s12") (/= d "S12"))
- (setq d1 (getint "╩Σ╚δ╤í╘±╧ε <1-2>: "))
- (cond ((= d1 1) (fj121))
- ((= d1 2) (fj122))
- )
- (setq d (getstring "╝╠╨°╝╞╦π <C>╗≥═╦│÷<S12>: "))
- )
- )
- (defun fj121()
- (setq h (getreal "h= "))
- (setq p (getreal "p= "))
- (setq d (getreal "d= "))
- (setq ho (- h (/ d (* 7 p))))
- (setq ht ho)
- (setq q "ho=")
- (setq ho (strcat q (rtos ho 2 4)))
- (print ho)
- )
- (defun fj122()
- (setq hx (getreal "hx= "))
- (setq bx (* 1.5 (- ht hx)))
- (setq q "bx=")
- (setq bx (strcat q (rtos bx 2 4)))
- (print bx)
- )
- (defun fj13()
- (setq h2 (getreal "h2= "))
- (setq d (getreal "d= "))
- (setq p (getreal "p= "))
- (setq ho1 (- h2 (/ d (* 7 p))))
- (setq q "ho1=")
- (setq ho1 (strcat q (rtos ho1 2 4)))
- (print ho1)
- )
- (defun fj2()
- (setq f "d")
- (setq f1 0)
- (while (and (/= f "s2") (/= f "S2"))
- (setq f1 (getint "╩Σ╚δ╤í╘±╧╧ε <1-2>: "))
- (cond ((= f1 1) (fj21))
- ((= f1 2) (fj22))
- )
- (setq f (getstring "╝╠╨°╝╞╦π <C> ╗≥═╦│÷<S2>: "))
- )
- )
- (defun fj21()
- (setq h "f")
- (setq h1 0)
- (while (and (/= h "s21") (/= h "S21"))
- (setq h1 (getint "╩Σ╚δ╤í╘±╧ε <211> ╗≥ <212>: "))
- (cond ((= h1 211) (fj211))
- ((= h1 212) (fj212))
- )
- (setq h (getstring "╝╠╨°╝╞╦π <C> ╗≥═╦│÷<S21>: "))
- )
- )
- (defun fj211()
- (setq h (getreal "h= "))
- (setq hx (getreal "hx= "))
- (setq p (getreal "p= "))
- (cond ((>= hx (/ h 2)) (setq rx (* (- h hx) (* p 0.47)))))
- (cond ((< hx (/ h 2)) (setq rx (* p (- h (* hx 1.53))))))
- (setq q "rx=")
- (setq rx (strcat q (rtos rx 2 4)))
- (print rx)
- )
- (defun fj212()
- (setq h (getreal "h= "))
- (setq hx (getreal "hx= "))
- (setq p (getreal "p= "))
- (setq a11 (* 1.2 h))
- (setq a12 (* 1.7 hx))
- (cond ((>= hx (/ h 2)) (setq bx (* (- h hx) (* 0.7 p)))))
- (cond ((< hx (/ h 2)) (setq bx (* p (- a11 a12)))))
- (setq q "bx=")
- (setq bx (strcat q (rtos bx 2 4)))
- (print bx)
- )
- (defun fj22()
- (setq h (getreal "h= "))
- (setq p (getreal "p= "))
- (setq d (getreal "d= "))
- (setq ho2 (- h (/ d (* 4 p))))
- (setq q "ho2=")
- (setq ho2 (strcat q (rtos ho2 2 4)))
- (print ho2)
- )
- (hdd72)