Jump to content



Photo
- - - - -

Proegram Help


  • Please log in to reply
5 replies to this topic

#1 swisstony

swisstony

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 11 May 2003 - 03:55 PM

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
Ans1>G:List Ans2>H:"DISTANCE CHECK":G_
List Ans2>H:M-180>I:H:"OS PEG DISTANCES"?>K:Rec(K,I):List Ans1+B>L:List
Ans2+A>M::"EAST PEG 1":M_
"NORTH PEG 1":L_
G+K>N:Rec(N,H):List Ans1+B>O:List Ans2+A>P:"EAST PEG 2":P_
"NORTH PEG 2"O_
R-L>S:Q-M>T:"DISTANCE TO PEG 1"Pol(S,T):List Ans1+180_
"BEARING TO PEG 1":List Ans1+180_
R-O>U:Q:-P>V:"DISTANCE TO PEG 2":Pol(U,V)_
"BEARING TO PEG 2":List Ans2180_
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

#2 BiTwhise

BiTwhise

    Casio Overgod

  • [Legends]
  • PipPipPipPipPipPipPip
  • 627 posts
  • Gender:Male
  • Location:Guildford, Surry, UK
  • Interests:Programming, games, consoles, martial arts

  • Calculators:
    FX9700WE, CFX9970G, AFX2.0, Classpad 300

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)

#3 swisstony

swisstony

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 11 May 2003 - 04:10 PM

I've checked this and it's in degree's which is correct

#4 BiTwhise

BiTwhise

    Casio Overgod

  • [Legends]
  • PipPipPipPipPipPipPip
  • 627 posts
  • Gender:Male
  • Location:Guildford, Surry, UK
  • Interests:Programming, games, consoles, martial arts

  • Calculators:
    FX9700WE, CFX9970G, AFX2.0, Classpad 300

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 Ans2>H:M-180>I:H:



#5 swisstony

swisstony

    Newbie

  • Members
  • Pip
  • 4 posts

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 ross8653

ross8653

    Casio Addict

  • Members
  • PipPipPip
  • 96 posts
  • Location:over the river and through the woods
  • Interests:paintball

  • Calculators:
    9850 fx2.0

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users