home *** CD-ROM | disk | FTP | other *** search
- (defun hdd85()
- (setvar "CMDECHO" 0)
- (setq l (open "hu8.tst" "w"))
- (setq c1 (getstring "\n╩Σ╚δ╝╞╦π╧ε<1-4> ╗≥╜ß╩°<.>: "))
- (print c1 l)
- (close l)
- (cond ((= c1 "1") (yj21))
- ((= c1 "2") (check 'hdd86 "hdd86"))
- ((= c1 "3") (yj23))
- ((= c1 "4") (check 'hdd86 "hdd86"))
- ((= c1 ".") (check 'hdd78 "hdd78"))
- )
- )
- (defun yj21()
- (setq d "c")
- (setq d1 0)
- (while (and (/= d "s21") (/= d "S21"))
- (setq d1 (getint "╩Σ╚δ╝╞╦π╧ε<1-5>: "))
- (cond ((= d1 1) (yj211))
- ((= d1 2) (yj212))
- ((= d1 3) (yj213))
- ((= d1 4) (yj214))
- ((= d1 5) (yj215))
- )
- (setq d (getstring "\n╝╠╨°╝╞╦π<c> ╗≥═╦│÷<s21>: "))
- )
- (hdd85)
- )
- (defun yj211()
- (setq r0 (getreal "\n╩Σ╚δ╧▀┬╖╡Ñ╬╗│ñ╢╚╡─╡τ╫Φr0= "))
- (setq n1 (getreal "\n╩Σ╚δ╣Ñ┬╩╥≥╩²cosfi= "))
- (setq x0 (getreal "\n╩Σ╚δ╧▀┬╖╡Ñ╬╗│ñ╢╚╡─╕╨┐╣x0= "))
- (setq n2 (getreal "\n╩Σ╚δsinfi= "))
- (setq ue (getreal "\n╩Σ╚δ╢ε╢¿╡τ╤╣ue= "))
- (setq il (getreal "\n╩Σ╚δ╡τ┴≈╛╪il= "))
- (setq n3 (+ (* r0 n1) (* x0 n2)))
- (setq drtu% (/ (* 1.732 (* n3 il)) (* ue 10)))
- (setq n50 drtu%)
- (setq Q "drtu%= ")
- (setq drtu% (strcat Q (rtos drtu% 2 4)))
- (print drtu%)
- )
- (defun yj212()
- (setq g (getstring "\nyj211 valution?<y/n>: "))
- (cond ((or (= g "y") (= g "Y")) (yj211))
- )
- (setq n (getint "enter the number of calculat: "))
- (setq n51 0)
- (setq n51 (* n50 n))
- (setq Q "drtu%= ")
- (setq drtu% (strcat Q (rtos n51 2 4)))
- (print drtu%)
- )
- (defun yj213()
- (setq r0 (getreal "\n╩Σ╚δ╧▀┬╖╡Ñ╬╗│ñ╢╚╡─╡τ╫Φr0= "))
- (setq x0 (getreal "\n╩Σ╚δ╧▀┬╖╡Ñ╬╗│ñ╢╚╡─╕╨┐╣x0= "))
- (setq fgfi (getreal "\n╩Σ╚δtgfi= "))
- (setq pl (getreal "\n╩Σ╚δ╣Ñ┬╩╛╪pl= "))
- (setq ue (getreal "\n╩Σ╚δ╢ε╢¿╡τ╤╣ue= "))
- (setq drtu (/ (* (* (+ r0 (* x0 fgfi)) pl) 2) (* (* ue ue) 10)))
- (setq n21 dtru)
- (setq Q "drtu= ")
- (setq drt (strcat Q (rtos drtu 2 4)))
- (print drt)
- )
- (defun yj214()
- (setq g1 (getstring "yj213 valution?<y/n>: "))
- (cond ((or (= g1 "y") (= g1 "Y")) (yj213))
- )
- (setq n (getint "enter the number of calculat: "))
- (setq n51 0)
- (setq n51 (* n50 n))
- (setq Q "drtu%= ")
- (setq drtu% (strcat Q (rtos n51 2 4)))
- (print drtu%)
- )
- (defun yj215()
- (setq pl (getreal "\n╩Σ╚δ╣Ñ┬╩╛╪pl= "))
- (setq c (getreal "\n╩Σ╚δ╣Ñ┬╩╥≥╩²╬¬1╩▒╡─╝╞╦π╧╡╩²C= "))
- (setq s (getreal "\n╩Σ╚δ╧▀╨╛▒Ω│╞╜╪├µS= "))
- (setq n (getint "enter number of valution: "))
- (setq n50 (* drtu pl n))
- (setq drtu% (/ n50 (* c s)))
- (setq Q "drtu%= ")
- (setq drtu% (strcat Q (rtos drtu% 2 4)))
- (print drtu%)
- )
- (defun yj23()
- (setq h "f")
- (setq h1 0)
- (while (and (/= h "s23") (/= h "S23"))
- (setq h1 (getint "╩Σ╚δ╝╞╦π╧ε <1-3>: "))
- (cond ((= h1 1) (yj231))
- ((= h1 2) (yj232))
- ((= h1 3) (yj233))
- )
- (setq h (getstring "\n╝╠╨°╝╞╦π<c> ╗≥═╦│÷<s23>: "))
- )
- (hdd85)
- )
- (defun yj231()
- (yj211)
- (setq drtu% (* 1.5 n50))
- (setq Q "drtu%= ")
- (setq drtu% (strcat Q (rtos drtu% 2 4)))
- (print drtu%)
- )
- (defun yj232()
- (yj213)
- (setq drtu% (* 2.25 n50))
- (setq Q "drtu%= ")
- (setq drtu% (strcat Q (rtos drtu% 2 4)))
- (print drtu%)
- )
- (defun yj233()
- (setq p (getreal "\n╩Σ╚δ╙╨╣Ñ╣Ñ┬╩p= "))
- (setq l (getreal "\n╩Σ╚δ╧▀┬╖│ñ╢╚l= "))
- (setq c (getreal "\n╩Σ╚δ╣Ñ┬╩╥≥╩²╬¬1╩▒╡─╝╞╦π╧╡╩²c= "))
- (setq s (getreal "\n╩Σ╚δ╧▀╨╛▒Ω│╞╜╪├µs= "))
- (setq drtu% (/ (* p l) (* c s)))
- (setq q "drtu%= ")
- (setq drtu% (strcat q (rtos drtu% 2 4)))
- (print drtu%)
- )
- (hdd85)