Hi,
I'm having trouble with a program i use for work.I had a CASIO fx-7700GH but have recently brought the CASIOfx 9850G, I've manged to alter all my other programs so that they work because the programs were not compatable in their orginal state. i've got it running but the answers are incorrect, here is the program: -
"STATION EAST"?>Q:"STATION NORTH"?>R:Lbl 1:"POINT 1 EAST"?>A:"POINT 1
NORTH"?>B: "POINT 2 EAST"?>C:"POINT 2 NORTH"?>D:B-D>E:A-C>F:Pol(E,F):List
Ans >G:List Ans >H:"DISTANCE CHECK":G_
List Ans >H:M-180>I:H:"OS PEG DISTANCES"?>K:Rec(K,I):List Ans +B>L:List
Ans +A>M::"EAST PEG 1":M_
"NORTH PEG 1":L_
G+K>N:Rec(N,H):List Ans +B>O:List Ans +A>P:"EAST PEG 2":P_
"NORTH PEG 2"O_
R-L>S:Q-M>T:"DISTANCE TO PEG 1"Pol(S,T):List Ans +180_
"BEARING TO PEG 1":List Ans +180_
R-O>U:Q:-P>V:"DISTANCE TO PEG 2":Pol(U,V)_
"BEARING TO PEG 2":List Ans 180_
GoTo 1
If i input the following figures in this order
101
102
103
104
105
106
ANSWER =2.8284 (this answer is correct)
Then input 2 as the os peg distance
Then should get these answers
101.585 (my answer 101.036)
102.585 (my answer 104.382)
106.414 (my answer 99.585)
107.414 (my answer100.585)
0.8284 (my answer 182.382)
45 (my answer 0.888)
7.6568 (my answer 2)
45 (my answer 225)
Some of the answers are not to far off.
Thanks

Proegram Help
Started by
swisstony
, May 11 2003 03:55 PM
5 replies to this topic
#1
Posted 11 May 2003 - 03:55 PM
#2
Posted 11 May 2003 - 04:06 PM
Check that your running in degree, and not radians mode 
You can set the mode in your program as well
Should be under optn or menu -> angle -> degree (or radians if you want)

You can set the mode in your program as well
Should be under optn or menu -> angle -> degree (or radians if you want)
#3
Posted 11 May 2003 - 04:10 PM
I've checked this and it's in degree's which is correct
#4
Posted 11 May 2003 - 04:27 PM
Variable M is not initialized before use... it produces a different answer each time you repeat the program..
:

List Ans
>H:M-180>I:H:
#5
Posted 11 May 2003 - 05:41 PM
I'm not that clued up on programming so don't fully understand waht you mean, how can i alter the prog so that it's working properly
#6
Posted 12 May 2003 - 05:52 AM
he just means any value that m has when starting the program is never set to a value before it is first used in an equation
i dunno if you want it to equal zero the first run though but if you do then ...
0->M
makes sure any old value of m is cleared
if you dont want m to equal zero the first run though just change 0 to whatever you want
i dunno if you want it to equal zero the first run though but if you do then ...
0->M
makes sure any old value of m is cleared
if you dont want m to equal zero the first run though just change 0 to whatever you want
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users