- Casio FX-CG20SDK programming help
- 17 Mar 2013 12:15:47 am
- Last edited by jjz030837 on 20 Mar 2013 04:18:17 am; edited 11 times in total
Hello, everyone.I am a surveying engineer from China, is honored to this website and we exchange,In the hope that we can help a busy, I have written a TEXT program in the FX-CG20 calculator, hope can be converted into a SDK program, but because I don't know C++, so in this to you for help, hope to have time to friends can help, thank you! I wish you every day happy!
The program consists of 49 components, including " 0-ZXC " control run all the procedures, the program uses matrix and list and G3P.
Sorry, because attachment upload option is not found, please have the intention of friends please contact my mailbox, I will send to you, thank you!
Because the list file and the G3P file could not be uploaded, please have the intention of friends by email or contact with my email address, I will send to you, thank you!
Email:lingyang1122@vip.qq.com
Code:
The program consists of 49 components, including " 0-ZXC " control run all the procedures, the program uses matrix and list and G3P.
Sorry, because attachment upload option is not found, please have the intention of friends please contact my mailbox, I will send to you, thank you!
Because the list file and the G3P file could not be uploaded, please have the intention of friends by email or contact with my email address, I will send to you, thank you!
Email:lingyang1122@vip.qq.com
Code:
File Name "0-ZCX"
ClrGraph:ClrText
RclPict "Pict\zuoze.g3p"
RclPict "Pict\zuoze.g3p"
Do:Getkey:LpWhile Ans=0
Deg:File1
0→List 26[1]
Dim List 26→A
If A<50:Then For 1→S To 50:
0→List 26[S]:
Next:IfEnd
List 26[41]<2 Or List 26[41]>7=>2→List 26[41]
List 26[42]≠9 And List 26[42]≠20=>9→List 26[42]
List 26[40]≠1 And List 26[40]≠2 And List 26[40]≠3 And List 26[40]≠4 And List 26[40]≠5=>1→List 26[40]
Do
Prog "STR0"
List 26[40]=1=>Prog "ZCX"
List 26[40]=2=>Prog "L~SANWEI"
List 26[40]=3=>Prog "L-SD"
List 26[40]=4=>Prog "L-BRIDGE"
List 26[40]=5=>Prog "L-PUTONG"
LpWhile 1
File Name "2.L-JD"
File5
ClrText
For 1→Z To 5
0→List 22[Z]
0→List 23[Z]
Next
ClrText:Lbl V
" X1="→Str 1
"List 22[1]"→Str 2
" Y1="→Str 3
"List 23[1]"→Str 4
" X2="→Str 5
"List 22[2]"→Str 6
" Y2="→Str 7
"List 23[2]"→Str 8
Prog "HX"
Exp(Str 2)→List 22[1
Exp(Str 4)→List 23[1
Exp(Str 6)→List 22[2
Exp(Str 8)→List 23[2
If StrCmp(Str 1,"0")=0:Then ClrText:Return:IfEnd
Prog "STR0":ClrText
" X3="→Str 1
"List 22[4]"→Str 2
" Y3="→Str 3
"List 23[4]"→Str 4
" X4="→Str 5
"List 22[5]"→Str 6
" Y4="→Str 7
"List 23[5]"→Str 8
Prog "HX"
Exp(Str 2)→List 22[4
Exp(Str 4)→List 23[4
Exp(Str 6)→List 22[5
Exp(Str 8)→List 23[5
If StrCmp(Str 1,"0")=0:Then ClrText:Return:IfEnd
List 22[1→A
List 23[1→B
List 22[2→C
List 23[2→D
List 22[4→E
List 23[4→F
List 22[5→G
List 23[5→H
C-A→N
D-B→O
G-E→P
H-F→Q
QN-OP→K
NB-OA→I
PF-QE→V
(PI-NV)÷K→List 22[3]
(QI-OV)÷K→List 23[3]
ClrText
ViewWindow Min(List 23)-1-(Max(List 23)-Min(List 23))×0.1,Max(List 23)+1+0.9×(Max(List 23)-Min(List 23)),5,Min(List 22)-1-0.2×(Max(List 22)-Min(List 22)),Max(List 22)+1+0.01×(Max(List 22)-Min(List 22)),5
S-WindMan
S-Gph1 DrawOn,xyLine,List 23,List 22,1,Dot:DrawStat:Fix 3
RclPict "Pict\2.g3p"
Text (7×3,82×3,List 22[3]
Text 32×3,82×3,List 23[3]
Plot ▲ClrText:ClrGraph
RclPict "Pict\xuanze.g3p"
RclPict "Pict\xuanze.g3p"
Do:Getkey:LpWhile Ans=0
Getkey=79=>Goto V
Getkey=69=>Return
Getkey=59=>ClrList 22:ClrList 23:Return
File Name "3D~YX"
File1
ClrText
Lbl 0
" LC="→Str 1
"L"→Str 2
" BJ="→Str 3
"List 26[44]"→Str 4
" X?D?="→Str 5
"List 22[1]"→Str 6
" Y?D?="→Str 7
"List 23[1]"→Str 8
Prog "HX"
Exp(Str 2)→L:Exp(Str 4)→List 26[44
Exp(Str 6)→List 22[1]
Exp(Str 8)→List 23[1]
If StrCmp(Str 1,"0")=0:Then ClrText:Return:IfEnd
Prog "STR0":ClrText
" X?D?="→Str 1
"List 22[2]"→Str 2
" Y?D?="→Str 3
"List 23[2]"→Str 4
" X?D?="→Str 5
"List 22[3]"→Str 6
" Y?D?="→Str 7
"List 23[3]"→Str 8
Prog "HX"
Exp(Str 2)→List 22[2
Exp(Str 4)→List 23[2
Exp(Str 6)→List 22[3
Exp(Str 8)→List 23[3
If StrCmp(Str 1,"0")=0:Then ClrText:Return:IfEnd
L→List 26[43]
List 22[1]→A
List 23[1]→B
List 22[2]→C
List 23[2]→D
List 22[3]→E
List 23[3]→F
((D2+C2-A2-B2)(F-D)-(E2+F2-C2-D2)(D-B))÷2÷((D-B)(C-E)-(F-D)(A-C))→List 24[1
((A2+B2-C2-D2)(C-E)-(C2+D2-E2-F2)(A-C))÷2÷((F-D)(A-C)-(D-B)(C-E))→List 25[1
√((A-List 24[1])2+(B-List 25[1])2)→List 26[51
List 24[1]→T:List 25[1]→S:Prog "GL-FS"
List 26[43]-L→A
List 26[44]-J→B
ClrText
ViewWindow List 25[1]-1.15×List 26[51],List 25[1]+3.4×List 26[51],100000,List 24[1]-1.15×List 26[51],List 24[1]+1.15×List 26[51],100000
If A>0 And B>0:Then RclPict "Pict\13.g3p":IfEnd
If A>0 And B<0:Then RclPict "Pict\14.g3p":IfEnd
If A<0 And B>0:Then RclPict "Pict\1.g3p":IfEnd
If A<0 And B<0:Then RclPict "Pict\12.g3p":IfEnd
If A<0:Then -A→A:IfEnd:If B<0:Then -B→B:IfEnd
Black Circle List 25[1],List 24[1],List 26[51
S-WindMan
S-Gph1 DrawOn,Scatter,List 23,List 22,1,Cross:DrawStat
Text 10×3,86×3,List 24[1
Text 17×3,86×3,List 25[1
Text 24×3,86×3,List 26[51
Text 31×3,86×3,A
Text 38×3,86×3,B▲ClrText:ClrGraph
RclPict "Pict\xuanze.g3p"
RclPict "Pict\xuanze.g3p"
Do:Getkey:LpWhile Ans=0
Getkey=79=>Goto 0
Getkey=69=>Return
Getkey=59=>Return
File Name "BIANPO"
Lbl 0:ClrText:Cls
File3:0→C
" Qi-L"→Str 1
"List 3[1]"→Str 2
" Zhi-L"→Str 3
"List 4[1]"→Str 4
" "→Str 5
"C"→Str 6
Prog "HX"
If StrCmp(Str 1,"0")=0:Then File1:Return:IfEnd
Exp(Str 2)→List 3[1
List 3[1]→L
Exp(Str 4)→List 4[1
Exp(Str 6)→C
Prog "STR0"
For 1→C To 999
ClrText
0→A:0→B
" Kuan"→Str 1
"A"→Str 2
" Gao"→Str 3
"B"→Str 4
" Dian#"→Str 5
"C"→Str 6
Prog "HX"
If StrCmp(Str 1,"0")=0:Then File1:Return:IfEnd
Exp(Str 2)=0 And Exp(Str 4)=0=>Break
Exp(Str 6)→C
If C=1:Then Exp(Str 2)→List 5[1]:Exp(Str 4)→List 6[1]
Else Exp(Str 2)+List 5[C-1]→List 5[C
Exp(Str 4)+List 6[C-1]→List 6[C:IfEnd
Next
Prog "STR0"
Lbl 1:File1
ClrText
" X"→Str 1
"List 26[48]"→Str 2
" Y"→Str 3
"List 26[49]"→Str 4
" H"→Str 5
"List 26[50]"→Str 6
Prog "HX"
If StrCmp(Str 1,"0")=0:Then File1:Return:IfEnd
Exp(Str 2)→List 26[48
Exp(Str 4)→List 26[49
Exp(Str 6)→List 26[50
List 26[48→T
List 26[49→S
List 26[50→r
Prog "GL-FS"
J→Z:Z→List 26[51
Prog "JK"
W+List 4[1]→Z
Prog "PM-XL-XZ"
List 26[51]→N
N<0=>-Z→Z
Prog "GC":Prog "B-H"
List 26[50]-O→M
Z<0=>-Z→Z:E→V
0+Z×E×0.01→Q
If N<0:Then -Z→Z:IfEnd
File3
0→List 9[1
0→List 10[1
0→List 9[2
0→List 10[2
For 1→B To Dim List 5
Z+List 5[B→List 9[B+2
Q+List 6[B→List 10[B+2
Next
N→List 7[1
M→List 8[1
If L<List 3[1] Or L>List 4[1]:Then ClrText:Locate 5,4,"LiCheng~CuoWu"▲Goto 1:IfEnd
List 10[Dim List 10-1]-Q+O→A
((List 9[Dim List 9]-List 9[Dim List 9-1])÷(List 10[Dim List 10]-List 10[Dim List 10-1]))→B
List 9[Dim List 9-1]→C
File1
(List 26[50]-A)×B+C→D
File3:List 7[1]-D→E
If List 5[1]<0:Then -(List 7[1]-D)→E:IfEnd
If E<0.05 And E>-0.05:Then List 7[1]→List 9[Dim List 9]
List 8[1]→List 10[Dim List 10]
IfEnd
Z→List 9[2
Q→List 10[2
If List 7[1]<0:Then ViewWindow List 9[Dim List 9]×1.05,-List 9[Dim List 9],1,-2,List 10[Dim List 10]×1.1,1
S-WindMan
S-Gph1 DrawOn,xyLine,List 7,List 8,1,Dot
DrawStat
For 1→F To Dim List 9-1
Blue F-Line List 9[F],List 10[F],List 9[F+1],List 10[F+1]
Next
If E>0:Then RclPict "Pict\bianpo1.g3p"
Else RclPict "Pict\bianpo12.g3p":IfEnd
Text 10×3,82×3,L
Text 17×3,88×3,-List 7[1]
If E<0:Then Text 24×3,88×3,-E
Else Text 24×3,88×3,E:IfEnd
Text 31×3,97×3,-List 9[2]
If W<0:Then Text 37×3,84×3,-W
Else Text 37×3,84×3,W:IfEnd
Fix 1:Text 43×3,78×3,V
Plot ▲Else ViewWindow -List 9[Dim List 9],List 9[Dim List 9]×1.05,1,-2,List 10[Dim List 10]×1.1,1
S-WindMan
S-Gph1 DrawOn,xyLine,List 7,List 8,1,Dot
DrawStat
For 1→F To Dim List 9-1
Blue F-Line List 9[F],List 10[F],List 9[F+1],List 10[F+1]
Next
If E>0:Then RclPict "Pict\bianpo2.g3p"
Else RclPict "Pict\bianpo22.g3p":IfEnd
Text 10×3,14×3,L
Text 17×3,22×3,List 7[1]
If E<0:Then Text 24×3,22×3,-E
Else Text 24×3,22×3,E:IfEnd
Text 31×3,33×3,List 9[2]
Text 37×3,18×3,W
Fix 1:Text 37×3,59×3,V▲IfEnd:ClrText
Fix 3:Menu "Xuan-Ze","Ji-Xu",3,"ChongXin-KaiShi",4,"Celen-Exit",5
Lbl 3:Goto 1
Lbl 4:Goto 0
Lbl 5:For 5→O To 10
ClrList O
Next:Stop
File Name "BIANPO2"
Lbl 0:ClrText:Cls
File3:0→C
" Qi-L"→Str 1
"List 3[1]"→Str 2
" Zhi-L"→Str 3
"List 4[1]"→Str 4
" "→Str 5
"C"→Str 6
Prog "HX"
If StrCmp(Str 1,"0")=0:Then File1:Return:IfEnd
Exp(Str 2)→List 3[1
List 3[1]→L
Exp(Str 4)→List 4[1
Exp(Str 6)→C
Prog "STR0"
For 1→C To 999
ClrText
0→A:0→B
" Kuan"→Str 1
"A"→Str 2
" Gao"→Str 3
"B"→Str 4
" Dian#"→Str 5
"C"→Str 6
Prog "HX"
If StrCmp(Str 1,"0")=0:Then File1:Return:IfEnd
Exp(Str 2)=0 And Exp(Str 4)=0=>Break
Exp(Str 6)→C
If C=1:Then Exp(Str 2)→List 5[1]:Exp(Str 4)→List 6[1]
Else Exp(Str 2)+List 5[C-1]→List 5[C
Exp(Str 4)+List 6[C-1]→List 6[C:IfEnd
Next
Prog "STR0"
Lbl 1:File1
ClrText
" X"→Str 1
"List 26[48]"→Str 2
" Y"→Str 3
"List 26[49]"→Str 4
" H"→Str 5
"List 26[50]"→Str 6
Prog "HX"
If StrCmp(Str 1,"0")=0:Then File1:Return:IfEnd
Exp(Str 2)→List 26[48
Exp(Str 4)→List 26[49
Exp(Str 6)→List 26[50
List 26[48→T
List 26[49→S
List 26[50→r
Prog "GL-FS"
J→Z:Z→List 26[51
Prog "JK"
W+List 4[1]→Z
Prog "PM-XL-XZ"
List 26[51]→N
N<0=>-Z→Z
Prog "GC":Prog "B-H"
List 26[50]-O→M
Z<0=>-Z→Z
0+Z×E×0.01→Q:E→V
If N<0:Then -Z→Z:IfEnd
File3
0→List 9[1
0→List 10[1
0→List 9[2
0→List 10[2
For 1→B To Dim List 5
Z+List 5[B→List 9[B+2
Q+List 6[B→List 10[B+2
Next
N→List 7[1
M→List 8[1
If L<List 3[1] Or L>List 4[1]:Then ClrText:Locate 5,4,"LiCheng~CuoWu"▲Goto 1:IfEnd
List 10[Dim List 10-1]-Q+O→A
((List 9[Dim List 9]-List 9[Dim List 9-1])÷(List 10[Dim List 10]-List 10[Dim List 10-1]))→B
List 9[Dim List 9-1]→C
File1
(List 26[50]-A)×B+C→D
File3:List 7[1]-D→E
If List 5[1]<0:Then -(List 7[1]-D)→E:IfEnd
If E<0.05 And E>-0.05:Then List 7[1]→List 9[Dim List 9]
List 8[1]→List 10[Dim List 10]
IfEnd
Z→List 9[2
Q→List 10[2
If List 7[1]<0:Then ViewWindow List 9[Dim List 9]×1.05,-List 9[Dim List 9],1,List 10[Dim List 10]×1.1,2,1
S-WindMan
S-Gph1 DrawOn,xyLine,List 7,List 8,1,Dot
DrawStat
For 1→F To Dim List 9-1
Blue F-Line List 9[F],List 10[F],List 9[F+1],List 10[F+1]
Next
If E>0:Then RclPict "Pict\bianpo1.g3p"
Else RclPict "Pict\bianpo12.g3p":IfEnd
Text 10×3,82×3,L
Text 17×3,88×3-List 7[1]
If E<0:Then Text 24×3,88×3,-E
Else Text 24×3,88×3,E:IfEnd
Text 31×3,97×3,-List 9[2]
If W<0:Then Text 37×3,84×3,-W
Else Text 37×3,84×3,W:IfEnd
Fix 1:Text 43×3,78×3,V
Plot ▲Else ViewWindow -List 9[Dim List 9],List 9[Dim List 9]×1.05,1,List 10[Dim List 10]×1.1,2,1
S-WindMan
S-Gph1 DrawOn,xyLine,List 7,List 8,1,Dot
DrawStat
For 1→F To Dim List 9-1
Blue F-Line List 9[F],List 10[F],List 9[F+1],List 10[F+1]
Next
If E>0:Then RclPict "Pict\bianpo2.g3p"
Else RclPict "Pict\bianpo22.g3p":IfEnd
Text 10×3,14×3,L
Text 17×3,22×3,List 7[1]
If E<0:Then Text 24×3,22×3,-E
Else Text 24×3,22×3,E:IfEnd
Text 31×3,33×3,List 9[2]
Text 37×3,18×3,W
Fix 1:Text 37×3,59×3,V▲IfEnd:ClrText
Fix 3:Menu "Xuan-Ze","Ji-Xu",3,"ChongXin-KaiShi",4,"Celen-Exit",5
Lbl 3:Goto 1
Lbl 4:Goto 0
Lbl 5:For 5→O To 10
ClrList O
Next:Stop
File Name "B-H"
File1
For 1→C To 999
If List 16[C]=U:Then C→A:Break:IfEnd
C+List 17[C→C
Next
List 17[C→B
List 18[C→S
For 1→H To B
If L≥List 16[A+H] And L≤List 16[A+H+1]:Then List 16[A+H→C
List 16[A+H+1→D:List 17[A+H]÷100→F:List 17[A+H+1]÷100→T:List 18[A+H]÷100→O
List 18[A+H+1]÷100→A:Break:IfEnd:Next
Z→H
Abs H<List 26[20]=>0→H
H≥List 26[20]=>H-List 26[20]→H
H≤-List 26[20]=>H+List 26[20]→H
If H<0:Then (L-C)÷(D-C)→V:(3V^(2^(S))-2V(3^(S→V
F+V(T-F)→E
Abs (H)×E+I→O
E×100→E
Return:IfEnd
If H>0:Then (L-C)÷(D-C)→V:(3V^(2^(S))-2V(3^(S→V
O+V(A-O)→E
Abs (H)×E+I→O:E×100→E:Return:IfEnd
If H=0:Then I→O
0→E:IfEnd
E×100→E
File Name "CE-ZHAN"
ClrText
File1
Menu "XuanZe","CeZhanShuRu",1,"LieBiaoChuShi",2,"Exit",3
Lbl 1:ClrText
Prog "CE-ZHAN1"
Prog "STR0"
If N=2:Then ClrText:Return:IfEnd
Pol(List 26[33]-List 26[5],List 26[34]-List 26[6
If List Ans[2]<0:Then List Ans[2]+360→List 26[35:Else List Ans[2→List 26[35:IfEnd
ClrText
Fix 3
Prog "XINXI1"
List 26[37]+List 26[36→List 26[38
Do
Getkey≠0=>Break
LpWhile 1
ClrText
" JingH?"→Str 1
"List 26[50]"→Str 2
" CeI?"→Str 3
"A"→Str 4
" CeH+-?"→Str 5
"B"→Str 6
Prog "HX"
If StrCmp(Str 1,"0")=0:Then ClrText:Return:IfEnd
Exp(Str 2)→List 26[50
Exp(Str 4)→A
Exp(Str 6)→B
A-List Ans[1→A
ClrText
Fix 4
Locate 8,2,"WuCha"
If A≥0:Then Locate 1,3,"ShiCeChang="
Else Locate 1,3,"ShiCeDuan=":IfEnd
Locate 12,3,Abs (A)
List 26[39]+List 26[50]-(List 26[36]+List 26[37→C
If C≥B:Then Locate 1,4,"ShiCeGao ="
Else Locate 1,4,"HouShiDi ="
IfEnd
Locate 12,4,Abs (B-C)▲ClrText
Return
Lbl 2:Prog "CHUSHI":Return
Lbl 3:Return
File Name "CE-ZHAN1"
Menu "XuanZe","ShouGong",1,"ChaZhao",2,"Exit",3
Lbl 1
1→N
" CZ-X"→Str 1
"List 26[5]"→Str 2
" CZ-Y"→Str 3
"List 26[6]"→Str 4
" CZ-Z"→Str 5
"List 26[36]"→Str 6
" HS-X"→Str 7
"List 26[33]"→Str 8
" HS-Y"→Str 9
"List 26[34]"→Str 10
" HS-Z"→Str 11
"List 26[39]"→Str 12
" YiGao"→Str 13
"List 26[37]"→Str 14
Prog "HX"
StrCmp(Str 1,"0")=0=>2→N:
Exp(Str 2)→List 26[5
Exp(Str 4)→List 26[6
Exp(Str 6)→List 26[36
Exp(Str 8)→List 26[33
Exp(Str 10)→List 26[34
Exp(Str 12)→List 26[39
Exp(Str 14)→List 26[37
Return
Lbl 2
1→N
For 1→E To 2
File6
Do
If E=1:Then "CeZhanDianHao"?→Str 1
Else "HouShiDianHao"?→Str 1:IfEnd
LpWhile StrLen(Str 1)<4
(StrLen(Str 1)-3)→A
StrMid(Str 1,1,A)→Str 2
Exp(StrMid(Str 1,A+1))→A
1→B
Do
If B>26:Then ClrText
"WeiZhaoDao"▲2→N:ClrText:File1:Return:IfEnd
List B[0]→Str 3
StrCmp(Str 2,Str 3)=0=>Break
B+4→B
LpWhile 1
Dim List Str 2+1→M
For 1→C To M
If C=M:Then ClrText
"WeiZhaoDao"▲2→N:ClrText:File1:Return:IfEnd
B+1→D:B+2→F:B+3→G
If E=1:Then If List B[C]=A:Then List D[C]→X
List F[C]→Y:List G[C]→Z:File1:X→List 26[5:Y→List 26[6:Z→List 26[36:File6:Break:IfEnd
Else If List B[C]=A:Then List D[C]→X
List F[C]→Y:List G[C]→Z:File1:X→List 26[33:Y→List 26[34:Z→List 26[39:File6:Break:IfEnd
IfEnd
Next
Next
File1
" YiGao"→Str 1
List 26[37]→Str 2
Prog "HX"
StrCmp(Str 1,"0")=0=>2→N
Exp(Str 2)→List 26[37]
Return
Lbl 3
2→N
File Name "CHECG-TAI"
File4
For 1→A To 4
ClrList A
Next
ClrGraph:ClrText
RclPict "Pict\ct.g3p"
RclPict "Pict\ct.g3p"
Do:Getkey:LpWhile Ans=0:File1
Getkey=79=>1→List 26[51
Getkey=69=>2→List 26[51
Lbl 0:File1
ClrText:90→List 26[3
" ZX-L?"→Str 1
"L"→Str 2
" 1#Z?"→Str 3
"Z"→Str 4
" Chang?"→Str 5
"List 26[48]"→Str 6
" Kuan?"→Str 7
"List 26[49]"→Str 8
" KuaDu"→Str 9
"List 26[50]"→Str 10
Prog "HX"
StrCmp(Str 1,"0")=0=>Return
Exp(Str 2)→L:Exp(Str 4)→Z:Exp(Str 6)→List 26[48:Exp(Str 8)→List 26[49:Exp(Str 10)→List 26[50
List 26[48→B
List 26[49→C
For 1→I To 999
If List 1[I]=U:Then Break:IfEnd
I+List 6[I]→I
Next
For 1→C To List 6[I]
I+1→I
L≤List 12[I]=>Break
Next
If List 8[I]=0:Then List 4[I→P:List 5[I→R:IfEnd
If List 26[51]=1:Then If P=R And P>10^40:Then 0→List 26[47:IfEnd
If P=R And P<10^40:Then List 26[50]²÷(16×P)→List 26[47:IfEnd
If P≠R And P>10^40:Then List 26[50]²×(L-List 1[I])÷(16×R×List 6[I])→List 26[47:IfEnd
If P≠R And P<10^40:Then List 26[50]²×(List 1[I]-L)÷(16×P×List 6[I])→List 26[47:IfEnd
Else If P=R And P>10^40:Then 0→List 26[47:IfEnd
If P=R And P<10^40:Then List 26[50]²÷(8×P)→List 26[47:IfEnd
If P≠R And P>10^40:Then List 26[50]²×(L-List 1[I])÷(8×R×List 6[I])→List 26[47:IfEnd
If P≠R And P<10^40:Then List 26[50]²×(List 1[I]-L)÷(8×P×List 6[I])→List 26[47:IfEnd:IfEnd
Z-List 26[47→Z:File4
L→List 1[1:L→List 1[2:L+C→List 1[3:List 1[3→List 1[4
Z→List 2[1:Z+B→List 2[2:List 2[1→List 2[3:List 2[2→List 2[4
For 1→V To 4
List 1[V→L
List 2[V→Z
Prog "PM-XL-XZ"
X+Zcos (Q+List 26[3→G
Y+Zsin (Q+List 26[3→M
File4
G→List 3[V
M→List 4[V
Next
ClrText:ClrGraph
RclPict "Pict\ct2.g3p"
Text 49×3,15×3,List 3[1
Text 54×3,15×3,List 4[1
Text 49×3,83×3,List 3[2
Text 54×3,83×3,List 4[2
Text 2×3,16×3,List 3[3
Text 7×3,16×3,List 4[3
Text 2×3,84×3,List 3[4
Text 7×3,84×3,List 4[4▲ClrText:ClrGraph
RclPict "Pict\xuanze.g3p"
RclPict "Pict\xuanze.g3p"
Do:Getkey:LpWhile Ans=0
Getkey=79=>Goto 0
Getkey=69=>Return
Getkey=59=>For 1→B To 4
ClrList B
Next:Return
File Name "CHUSHI"
ClrText
Deg
Fix 9
File1
"JD-x"→List 1[0
"JD-y"→List 2[0
"JD-LC"→List 3[0
"pianjiao"→List 4[0
"banjin"→List 5[0
"Ls1"→List 6[0
"Ls2"→List 7[0
"fwj"→List 8[0
"T1"→List 9[0
"T2"→List 10[0
"yuan-L"→List 11[0
"zhong-L"→List 12[0
"JDLC"→List 13[0
"JD-GC"→List 14[0
"JD-BJ"→List 15[0
"BH-LC"→List 16[0
"ZuoCe"→List 17[0
"YouCe"→List 18[0
"JiaKuan"→List 19[0
"Zuo"→List 20[0
"You"→List 21[0
"XXX"→List 26[0
For 1→O To 32
0→List 26[O
Next
Dim List 1→S
List 1[S]-1→T
For 1→B To S:
0→List 9[B
0→List 10[B
0→List 11[B
0→List 12[B
Next
For 1→U To T
Fix 0
Locate 6,1,"XianLu-ChuShi"
Locate 6,3,"Xian-Lu="
Locate 14,3,U
Fix 9
For 1→S To 999:
Locate 6,4,"PingMian"
List 1[S→B:
B=U=>S→O
If B=U+1:Then S-1→B:B-O→List 6[O]:B→List 7[O]:Break:IfEnd
Next
For 0→S To B:
If S=0:Then O+1→S:IfEnd:
If List 8[S]≠0:Then If List 6[S]=0:Then 0.0000001→E:E→List 6[S:Else List 6[S→E:IfEnd:
If List 7[S]=0:Then 0.0000001→F:F→List 7[S:Else List 7[S→F:IfEnd:
List 5[S]→R:
Int List 4[S]+(Int (List 4[S]×100)-(Int List 4[S])×100)÷60+(List 4[S]×10000-Int (List 4[S]×100)×100)÷3600→G
E²÷24÷R-E^4÷2688÷R^3+E^6÷506880÷R^5→V:
F²÷24÷R-F^4÷2688÷R^3+F^6÷506880÷R^5→W:
E÷2-E^3÷240÷R²+E^5÷34560÷R^4→X:
F÷2-F^3÷240÷R²+F^5÷34560÷R^4→Y
X+(R+W-(R+V)cos Abs G)÷Abs sin G→List 9[S:
Y+(R+V-(R+W)cos Abs G)÷Abs sin G→List 10[S
List 5[S]×Abs (G)×π÷180+(List 6[S]+List 7[S])÷2-List 6[S]-List 7[S→List 11[S:
List 3[S]-List 9[S]+List 6[S]+List 7[S]+List 11[S→List 12[S
Else List 1[S]+List 6[S→List 12[S
IfEnd:
List 3[O]→List 12[B:Next
If Dim List 13>1:Then For 1→S To 999:
Locate 6,4,"GaoCheng"
List 13[S]=U=>S→O
If List 13[S]=U+1:Then S-O-1→List 14[O:Break:IfEnd
Next
IfEnd
If Dim List 16>1:Then For 1→S To 999
Locate 6,4,"Hengpo"
If List 16[S]=U:Then S→O:IfEnd
If List 16[S]=U+1:Then S-O-1→List 17[O:Break:IfEnd
Next
IfEnd
If Dim List 19>1:Then For 1→S To 999
Locate 6,4,"Jia-Kuan"
If List 19[S]=U:Then S→O:IfEnd
If List 19[S]=U+1:Then S-O-1→List 20[O:Break:IfEnd
Next:IfEnd
Next
ClrText
Locate 6,1,"SuiDao-ChuShi"
File2
"Li-Cheng"→List 1[0
"DM-HAO"→List 2[0
"Qi-X"→List 3[0
"Qi-Y"→List 4[0
"R"→List 5[0
"YX-X"→List 6[0
"YX-Y"→List 7[0
"Qi-Q"→List 8[0
"Zhi-Q"→List 9[0
"LC"→List 10[0
"ChuZhiHouDu"→List 11[0
"ErChengHouDu"→List 12[0
Dim List 1→S
List 1[S]-1→T
For 1→U To T
Fix 0
Locate 6,3,"XinaLu"
Locate 13,3,U
Fix 9
For 1→X To 999:
List 1[X→B:
B=U=>X→Y
If B=U+1:Then X-1→B:B-Y→List 2[Y]:Break:IfEnd
Next
Next
Locate 6,3,"DuanMian"
Dim List 3→S
List 3[S]-1→T
For 1→B To S
0→List 6[B
0→List 7[B
0→List 8[B
0→List 9[B
Next
For 1→U To T
Fix 0
Locate 15,3,U
Fix 9
For 1→X To 999:
List 3[X→B:
B=U=>X→Y
If B=U+1:Then X-1→B
B-Y→List 4[Y]
Y+List 4[Y]→Z
Break:IfEnd
Next
For 0→X To Z:
X=0=>Y+1→X
If X≠Z:Then Pol(List 3[X+1]-List 3[X],List 4[X+1]-List 4[X:Else Pol(List 3[Y+1]-List 3[X],List 4[Y+1]-List 4[X:IfEnd
If List Ans[2]<0:Then List Ans[2]+360→O:Else List Ans[2]→O:IfEnd
cos-1 (List Ans[1]÷2÷Abs (List 5[X→V
If List 5[X]≥0:Then O+V→Q:Else O-V→Q:IfEnd
List 3[X]+cos Q×Abs (List 5[X→List 6[X
List 4[X]+sin Q×Abs (List 5[X→List 7[X
Q-180→List 8[X]:List 8[X]>360=>List 8[X]-360→List 8[X
List 8[X]<0=>List 8[X]+360→List 8[X
If List 5[X]>0:Then List 8[X]+(180-90-V)×2→List 9[X:Else List 8[X]-(180-90-V)×2→List 9[X:IfEnd
List 9[X]>360=>List 9[X]-360→List 9[X
List 9[X]<0=>List 9[X]+360→List 9[X
Next
Next
Dim List 10→S
List 10[S]-1→T
For 1→U To T
Fix 0
Locate 6,3,"JieGouCeng"
Locate 13,3,U
Fix 9
For 1→X To 999:
List 10[X→B:
If B=U:Then X→Y:IfEnd
If B=U+1:Then X-1→B:B-Y→List 11[Y:Break:IfEnd
Next
Next
File1
ClrText
0→List 26[7
1→U
ClrGraph:ClrText
RclPict "Pict\shujuku.g3p":RclPict "Pict\shujuku.g3p"
Do:Getkey:LpWhile Ans=0
ClrText
File Name "DUNZHU"
ClrGraph:ClrText
RclPict "Pict\dunzhu1.g3p"
RclPict "Pict\dunzhu1.g3p"
Do:Getkey:LpWhile Ans=0
Lbl 0
ClrText:File1:Fix 3
90→List 26[3
" D₁-X"→Str 1
"List 22[1]"→Str 2
" D₁-Y"→Str 3
"List 23[1]"→Str 4
" D₂-X"→Str 5
"List 22[2]"→Str 6
" D₂-Y"→Str 7
"List 23[2]"→Str 8
Prog "HX"
Exp(Str 2)→List 22[1
Exp(Str 4)→List 23[1
Exp(Str 6)→List 22[2
Exp(Str 8)→List 23[2
If StrCmp(Str 1,"0")=0:Then ClrText:Return:IfEnd
Prog "STR0"
ClrText
" D₃-X"→Str 1
"List 22[3]"→Str 2
" D₃-Y"→Str 3
"List 23[3]"→Str 4
" D₄-X"→Str 5
"List 22[4]"→Str 6
" D₄-Y"→Str 7
"List 23[4]"→Str 8
Prog "HX"
Exp(Str 2)→List 22[3
Exp(Str 4)→List 23[3
Exp(Str 6)→List 22[4
Exp(Str 8)→List 23[4
List 2[1→L
List 22[1→T:List 23[1→S:Prog "GL-FS":L→List 22[5:J→List 23[5
List 22[2→T:List 23[2→S:Prog "GL-FS":L→List 22[6:J→List 23[6
List 22[3→T:List 23[3→S:Prog "GL-FS":L→List 22[7:J→List 23[7
List 22[4→T:List 23[4→S:Prog "GL-FS":L→List 22[8:J→List 23[8
List 22[5→List 22[9
List 23[5→List 23[9
If StrCmp(Str 1,"0")=0:Then ClrText:Return:IfEnd
Prog "STR0"
ClrText
" D₁-L"→Str 1
"List 24[1]"→Str 2
" D₁-Z"→Str 3
"List 25[1]"→Str 4
" D₂-L"→Str 5
"List 24[2]"→Str 6
" D₂-Z"→Str 7
"List 25[2]"→Str 8
Prog "HX"
Exp(Str 2)→List 24[1]:Exp(Str 4)→List 25[1]:Exp(Str 6)→List 24[2]:Exp(Str 8)→List 25[2]
If StrCmp(Str 1,"0")=0:Then ClrText:Return:IfEnd
Prog "STR0"
ClrText
" D₃-L"→Str 1
"List 24[3]"→Str 2
" D₃-Z"→Str 3
"List 25[3]"→Str 4
" D₄-L"→Str 5
"List 24[4]"→Str 6
" D₄-Z"→Str 7
"List 25[4]"→Str 8
Prog "HX"
Exp(Str 2)→List 24[3]:Exp(Str 4)→List 25[3]:Exp(Str 6)→List 24[4]:Exp(Str 8)→List 25[4]
If StrCmp(Str 1,"0")=0:Then ClrText:Return:IfEnd
Prog "STR0"
ClrText
Pol(List 24[4]-List 24[1],List 25[4]-List 25[1])
List Ans[1]÷2+List 24[1]→List 24[5
List 25[1]-List Ans[1]÷2→List 25[5
List 24[5→List 24[6
List 25[2]+List Ans[1]÷2→List 25[6
List 24[5]+List Ans[1]×0.8→List 24[7
List 24[5]-List Ans[1]×0.8→List 24[8
Pol(List 24[2]-List 24[1],List 25[2]-List 25[1])
List 25[1]+List Ans[1]÷2→List 25[7
List 25[7→List 25[8
List 24[1]-List 22[5→A
List 25[1]-List 23[5→B
List 24[2]-List 22[6→C
List 25[2]-List 23[6→D
List 24[3]-List 22[7→E
List 25[3]-List 23[7→F
List 24[4]-List 22[8→G
List 25[4]-List 23[8→H
ViewWindow List 25[5],List 25[6],1,List 24[8],List 24[7],1
RclPict "Pict\dunzhu.g3p"
For 5→N To 8
Red F-Line List 23[N],List 22[N],List 23[N+1],List 22[N+1]
Next
Blue F-Line List 25[5],List 24[5],List 25[6],List 24[6
Blue F-Line List 25[7],List 24[7],List 25[8],List 24[8
Text 52×3,14×3,A
Text 57×3,14×3,B
Text 52×3,101×3,C
Text 57×3,101×3,D
Text 1×3,101×3,E
Text 6×3,101×3,F
Text 1×3,14×3,G
Text 6×3,14×3,H
Plot ▲ClrText:ClrGraph
RclPict "Pict\xuanze.g3p"
RclPict "Pict\xuanze.g3p"
Do:Getkey:LpWhile Ans=0
Getkey=79=>Goto 0
Getkey=69=>Return
Getkey=59=>Return