Hello,
i hope you can help me with my problem because my simply code doesn't work:
At the end of the calculation the results have to list up amoung themselves.


Code:
strom()
Prgm

PopUP("Aufgabe 1", "Aufgabe 2", "Aufgabe 3"), aufgabe

If aufgabe=1 then
Input "KdW", kdw
Input "FdW", fdw
Input "StR", str
Input "StG", stg

fug=√( (fdw^(2)+stg^(2)+2*stg*fdw*cos(kdw-str))

bs=sin⁻ยน(stg/fug*sin(str-kdw))

kug=kdw+bs

Disp "FuG"
Disp "BS"
Disp "KuG"

EndIf

EndPrgm


I would appreciate it if you can help me quickly !
How does it "not work"? What does it do instead?
I do not own a ti-89, im not quite sure if what im saying is right but I feel like those 3 disps at the end should not have quotes, since quotes denote strings in many languages.
He can't display the variables by those 3 disps. He only show me the word (i've already deleted the quotes)
Is it because you have the letters capitalized in the disp, but not when you define the variable?
Because you define "fug" and try to display "FuG"
Actually no... he still shows me the text but no calculated value
Okey i solved it by using Define
If you're trying to calculate values and store them to variables, you need to use the "STO" arrow (→) instead of the equal sign (=), which just tests for equality. For instance, instead of

Code:
fug=√( (fdw^(2)+stg^(2)+2*stg*fdw*cos(kdw-str))

use

Code:
√( (fdw^(2)+stg^(2)+2*stg*fdw*cos(kdw-str))→fug

and so forth. Note that the store arrow and variable name come after the expression rather than before. Then make sure the quotes are omitted from the Disp commands.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement