home *** CD-ROM | disk | FTP | other *** search
- (defun hdd77 ()
- (setvar "CMDECHO" 0)
- (command "vslide" "\\house1\\sld\\s77")
- (setq n 0)
- (setq y "c")
- (setq Lpjs '()) (setq z '())
- (setq LQjs '())
- (setq LSjs '())
- (setq LIjs '())
- (while (and (/= y "e") (/= y "E"))
- (FPs)
- (setq c3 (getint "\n╤í╘± 1╗≥2: "))
- (cond ((= c3 1) (coeffi))
- ((= c3 2) (bina))
- )
- (setq n (1+ n))
- (setq y (getstring "\n╝╠╨°╝╞╦π<C>╗≥╜ß╩°<E>: "))
- )
- (command "redraw")
- (print "end")
- )
- (defun FPs ()
- (while (and (/= r "s1") (/= r "S1"))
- (setq c (getstring "\n╤í╘±╧ε <1-6,7A,7B>: "))
- (if (= c "1") (cps1))
- (if (= c "2") (cps2))
- (if (= c "3") (cps3))
- (if (= c "4") (cps4))
- (if (= c "5") (cps5))
- (if (= c "6") (cps6))
- (if (or (= c "7A") (= c "7a")) (cps7a))
- (if (or (= c "7B") (= c "7b")) (cps7b))
- (setq r (getstring "\n╝╠╨°╝╞╦π <c> ╗≥═╦│÷<S1>: "))
- (setq z1 (nth 0 z))
- (setq q "ps=")
- (setq z2 (strcat q (rtos z1 2 4)))
- (print z2)
- )
- (setq z (reverse z))
- (print z)
- )
- (defun coeffi()
- (setq c1 0)
- (setq c1 (getint "╤í╘±╧ε <1-2>: "))
- (if (= c1 1) (cpjs1))
- (if (= c1 2) (cpjs2))
- )
- (defun cps1()
- (setq Ps (getreal "\n╩Σ╚δ╢ε╢¿╣Ñ┬╩Pe(kw)= "))
- (setq z (cons ps z))
- )
- (defun cps2()
- (setq Pe (getreal "\n╩Σ╚δ╢ε╢¿╣Ñ┬╩Pe(Kw)="))
- (setq APe (getreal "\n╩Σ╚δ╢ε╢¿╕║╘╪│╓╨°┬╩APe= "))
- (setq Ps (* 2 (* Pe (sqrt ape))))
- (setq z (cons ps z))
- )
- (defun cps3()
- (setq Se (getreal "\n╩Σ╚δ╢ε╢¿╚▌┴┐Se="))
- (setq Ape (getreal "\n╩Σ╚δ╢ε╢¿╕║╘╪│╓╨°┬╩Ape="))
- (setq fi (getreal "\n╩Σ╚δfi╜╟="))
- (setq fi (* (/ fi 180) 3.14))
- (setq Ps (* Se (* (cos fi) (sqrt Ape))))
- (setq z (cons ps z))
- )
- (defun cps5()
- (setq Ps (getreal "\n╩Σ╚δ╢ε╢¿╣Ñ┬╩Pe="))
- (setq z (cons ps z))
- )
- (defun cps6()
- (setq y2 "c")
- (setq Ps 0)
- (while (and (/= y2 "s5") (/= y2 "S5"))
- (setq Psn (getreal "\n╩Σ╚δ╔Φ▒╕╣Ñ┬╩Psn="))
- (setq Ps (+ Ps Psn))
- (setq z (cons ps z))
- (setq y2 (getstring "\n╝╠╨°╝╞╦π<C>╗≥═╦│÷<S5>: "))
- )
- )
- (defun cps7a()
- (setq Ps (getreal "\n╒╒├≈╣ª┬╩(kw): "))
- (setq z (cons ps z))
- )
- (defun cps7b()
- (setq Pe (getreal "\n╩Σ╚δ╢ε╢¿╣Ñ┬╩Pe="))
- (setq x% (getreal "\n╩Σ╚δx%= "))
- (setq Ps (* Pe (1+ x%)))
- (setq z (cons ps z))
- )
- (defun cps4()
- (setq Se (getreal "\n╩Σ╚δ╢ε╢¿╚▌┴┐Se= "))
- (setq fi (getreal "\n╩Σ╚δfi= "))
- (setq fi (* (/ fi 180) 3.14))
- (setq Ps (* Se (cos fi)))
- (setq z (cons ps z))
- )
- (defun cpjs1()
- (setq Kx (getreal "\n╩Σ╚δ╨Φ╥¬╧╡╩²Kx= "))
- (setq fi (getreal "\n╩Σ╚δfi= "))
- (setq fi (* (/ fi 180) 3.14))
- (setq Pjs (* Kx Ps))
- (setq Qjs (* Ps (tan fi)))
- (setq Sjs (sqrt (+ (* Pjs Pjs) (* Qjs Qjs))))
- (setq z (cons ps z))
- )
- (defun tan(fi)
- (setq sfi (sin fi))
- (setq d (/ sfi (sqrt (- 1 (* sfi sfi)))))
- )
- (defun cpjs2()
- (setq pjs 0 qjs 0 sjs 0 y3 0)
- (while (and (/= y3 "s3") (/= y3 "S3"))
- (if (or (/= y3 "s3") (/= y3 "S3"))
- (progn (setq Kx (getreal "\n╩Σ╚δ╨Φ╥¬╧╡╩²Kx= "))
- (setq Pjs (+ Pjs (* Kx Ps)))
- (Fps)
- (setq y3 (getstring "\n╝╠╨°╝╞╦π<C>╗≥═╦│÷<S3>: "))
- (if (or (= y3 "s3") (= y3 "S3")) (progn (setq Kcp (getreal "\nKcp= "))
- (setq Pjs (* Kcp Pjs))
- ))
- )
- )
- (setq p 0)
- )
- (setq q "ps=")
- (setq z2 (strcat q (rtos z1 2 4)))
- (print z2)
- )
- (defun bina()
- (setq r1 0)
- (while (and (/= r1 "s") (/= r1 "S"))
- (setq c4 (getint "╩Σ╚δ╤í╘±╧ε<1-3>: "))
- (if (= c4 1) (bps1))
- (if (= c4 2) (bps2))
- (if (= c4 3) (bps3))
- (setq r1 (getstring "\n╝╠╨°╝╞╦π<C>╗≥═╦│÷(S>: "))
- )
- )
- (defun bps1()
- (setq c (getreal "\n╩Σ╚δ╢■╧ε╩╜╧╡╩²c= "))
- (setq b (getreal "\n╩Σ╚δ╢■╧ε╩╜╧╡╩²b= "))
- (setq Pn (getreal "\n╩Σ╚δ╔Φ▒╕╣Ñ┬╩Pn= "))
- (setq fal (getreal "\n╩Σ╚δFai╜╟= "))
- (setq fal (* (/ fal 180) 3.14))
- (setq Pjs (+ (* c Pn) (* b Ps)))
- (setq Qjs (* Pjs (tan fal)))
- (setq Sjs (sqrt (+ (* Pjs Pjs) (* Qjs Qjs))))
- (setq Ue (getreal "\n╩Σ╚δ╢ε╢¿╡τ╤╣Ue= "))
- (setq Ijs (/ Sjs (* Ue (sqrt 3))))
- (pr)
- )
- (defun bps3()
- (setq Kj (getreal "\n╩Σ╚δ╝╞╦π╧╡╩²Kj= "))
- (setq Pjs (* Kj Ps))
- (setq fal (getreal "\n╩Σ╚δFai ╜╟="))
- (setq Qjs (* Pjs (tan fal)))
- (setq Sjs (sqrt (+ (* Pjs Pjs) (* Qjs Qjs))))
- (setq Ue (getreal "\n╩Σ╚δ╢ε╢¿╡τ╤╣Ue= "))
- (setq Ijs (/ Sjs (* Ue (sqrt 3))))
- (pr)
- )
- (defun bps2()
- (setq pjs 0)
- (setq qjs 0)
- (setq sjs 0)
- (setq Ijs 0)
- (setq y4 "c")
- (while (and (/= y4 "s2") (/= y4 "S2"))
- (setq y6 y4)
- (setq b (getreal "\n╩Σ╚δ╧╡╩² b="))
- (setq farl (getreal "\n╩Σ╚δFai ╜╟1= "))
- (setq fal (getreal "\n╩Σ╚δ Fai ╜╟2= "))
- (setq Qjs (+ Qjs (* Ps (tan farl))))
- (setq Pjs (+ Pjs (* b Ps)))
- (setq y4 (getstring "\n╝╠╨°╝╞╦π<C>╗≥═╦│÷<s2>: "))
- (setq y5 y4)
- )
- (if (or (= y5 "s2") (= y5 "S2"))
- (progn (setq Pjs (* c (* pn pjs)))
- (setq farlm (getreal "\n╩Σ╚δFarlm= "))
- (setq fal (getreal "\n╩Σ╚δFai╜╟= "))
- (setq Qjs (+ Qjs (* c (* pn (tan Farlm)))))
- (setq Sjs (sqrt (+ (* Pjs Pjs) (* Qjs Qjs))))
- (setq Ue (getreal "\n╩Σ╚δ╢ε╢¿╡τ╤╣Ue= "))
- (setq Ijs (/ Sjs (* Ue (sqrt 3))))
- )
- )
- (pr)
- )
- (defun pr ()
- (setq q "pjs=")
- (setq q1 "qjs=")
- (setq q2 "sjs=")
- (setq q3 "Ijs=")
- (setq j (strcat q (rtos pjs 2 2)))
- (setq j1 (strcat q1 (rtos qjs 2 2)))
- (setq j2 (strcat q2 (rtos sjs 2 2)))
- (setq j3 (strcat q3 (rtos ijs 2 2)))
- (print j) (print j1) (print j2) (print j3)
- )
- (hdd77)