home *** CD-ROM | disk | FTP | other *** search
- (defun hdd86()
- (SETVAR "CMDECHO" 0)
- (setq l (open "hu8.tst" "r"))
- (read-line l)
- (setq a1 (read (read-line l)))
- (close l)
- (cond ((= a1 "2") (yj22))
- ((= a1 "4") (yj24))
- )
- )
- (defun yj22()
- (setq f "g")
- (setq f1 0)
- (while (and (/= f "s22") (/= f "S22"))
- (setq f1 (getint "\nenter select of calculat <1-5>: "))
- (cond ((= f1 1) (yj221))
- ((= f1 2) (yj222))
- ((= f1 3) (yj223))
- ((= f1 4) (yj224))
- ((= f1 5) (yj225))
- )
- (setq f (getstring "\ncontinue <c> or stop <s22>: "))
- )
- (check 'hdd85 "hdd85")
- )
- (defun yj221()
- (setq r0 (getreal "\nr0= "))
- (setq n1 (getreal "\ncosfi= "))
- (setq x01 (getreal "\nx01= "))
- (setq n2 (getreal "\nsinfi= "))
- (setq ue (getreal "\nue= "))
- (setq il (getreal "\nil= "))
- (setq n3 (+ (* r0 n1) (* x01 n2)))
- (setq drtu% (/ (* 2 (* n3 il)) (* ue 10)))
- (setq n50 drtu%)
- (setq q "drtu%= ")
- (setq drt (strcat q (rtos drtu% 2 4)))
- (print drt)
- )
- (defun yj222()
- (setq g (getstring "\nyj221 valution?<y/n>: "))
- (cond ((or (= g "y") (= g "Y")) (yj221))
- )
- (setq n (getint "enter the number of calculat: "))
- (setq n51 0)
- (setq n51 (* drtu% n))
- (setq q "drtu%= ")
- (setq drtu% (strcat q (rtos n51 2 4)))
- (print drtu%)
- )
- (defun yj223()
- (setq r0 (getreal "\nr0= "))
- (setq x01 (getreal "\nx01= "))
- (setq fgfi (getreal "\nfgfi= "))
- (setq pl (getreal "\npl= "))
- (setq ue (getreal "\nue= "))
- (setq drtu% (/ (* (* 2 (+ r0 (* x01 fgfi))) pl) (* (* ue ue) 10)))
- (setq n50 drtu%)
- (setq q "drtu%= ")
- (setq drtu% (strcat q (rtos drtu% 2 4)))
- (print drtu%)
- )
- (defun yj224()
- (setq g1 (getstring "\nyj223 valution?<y/n>: "))
- (cond ((or (= g1 "y") (= g1 "Y")) (yj223))
- )
- (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 yj225()
- (setq r0 (getreal "\nr0= "))
- (setq pl (getreal "\npl= "))
- (setq ue (getreal "\nue= "))
- (setq n1 (/ (* 2 r0) (* 10 (* ue ue))))
- (setq n51 0)
- (setq n (getint "enter number of valution: "))
- (setq n51 (* n50 pl n))
- (setq drtu% (* n1 n51 n))
- (setq q "drtu%= ")
- (setq drtu% (strcat q (rtos drtu% 2 4)))
- (print drtu%)
- )
- (defun yj24()
- (setq k "h")
- (setq k1 0)
- (while (and (/= k "s24") (/= k "S24"))
- (setq k1 (getint "enter select of calculat <1-3>: "))
- (cond ((= k1 1) (yj241))
- ((= k1 2) (yj242))
- ((= k1 3) (yj243))
- )
- (setq k (getstring "\ncontinue <c> or stop <s24>: "))
- )
- (check 'hdd85 "hdd85")
- )
- (defun yj241()
- (yj222)
- (setq drtu% (* 2 n50))
- (setq q "drtu%= ")
- (setq drtu% (strcat q (rtos drtu% 2 4)))
- (print drtu%)
- )
- (defun yj242()
- (yj223)
- (setq drtu% (* 6 n50))
- (setq q "drtu%= ")
- (setq drtu% (strcat q (rtos drtu% 2 4)))
- (print drtu%)
- )
- (defun yj243()
- (setq p (getreal "\np= "))
- (setq l (getreal "\nl= "))
- (setq c (getreal "\nc= "))
- (setq s (getreal "\ns= "))
- (setq drtu% (/ (* p l) (* c s)))
- (setq q "drtu%= ")
- (setq drtu% (strcat q (rtos drtu% 2 4)))
- (print drtu%)
- )
- (hdd86)