Jump to content



Photo
- - - - -

Hydraulics program from a TI-89


  • Please log in to reply
8 replies to this topic

#1 cevb

cevb

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 06 April 2003 - 06:59 AM

Hi guys, this is my first post here.

I have this hydraulics program that was made for a TI-89 calculator, and since I'm new to the program calculators, I was wondering if you could help me out. I want to put it n my calculator and make it work.
thanks guys.
here's the program:

()
Prgm
Input "Slope",s
Input "Talud",m
Input "N Manning",n
Input "Width",b
Input "water",q
Input "inf lim",o
Input "sup lim",u
1-0.102*q^2*(b+2*m*y)*(b*y+m*y^2)^(-3)>>k
n^2*q^2*(b*y+m*y^2)^(10/3)>>f
[b+2*y*(1+m^2)^(1/2)]^(4/3)>>v
(integral)(k/(s-f*v),y,o,u)>>r
Disp r
EndPrgm


thanks

#2 huhn_m

huhn_m

    Casio Maniac

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1957 posts
  • Gender:Male
  • Location:Germany / Dresden
  • Interests:Assembler(!!!)
    Computers and Programming
    Operating Systems
    Programmable Calculators
    Maths and everything arround it

  • Calculators:
    FX-82SX / AFX 2.0+ (ROM 1.03) / FX 1.0+ (ROM 1.03)

Posted 06 April 2003 - 07:43 AM

this is actually a caiso forum :D
Do you want to write in in a casio calculator?
"Slope"?->S
"Talud"?->M
"N Manning"?->N
"Width"?->B
"water"?->Q
"inf lim"?->O
"sup lim"->U
1-0.102*Q^2*(B+2*M*Y)*(B*Y+M*Y^2)^(-3)->K
N^2*Q^2*(B*Y+M*Y^2)^(10/3)->F
[b+2*y*(1+m^2)^(1/2)]^(4/3)>>v
inte(K/(S-F*V),Y,O,U)>>R
R [TRIANHLE]

But what is Y? It is not defined!
And im not sure with the intgral thing ...

#3 cevb

cevb

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 06 April 2003 - 03:22 PM

yeah, I mant to ask how to write it in a CFX-9850
sorry about that, lol
anyways, how exactly do I write the " thing?
and whats [TRIANHLE] ??

I need a lot of help as you can see

#4 huhn_m

huhn_m

    Casio Maniac

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1957 posts
  • Gender:Male
  • Location:Germany / Dresden
  • Interests:Assembler(!!!)
    Computers and Programming
    Operating Systems
    Programmable Calculators
    Maths and everything arround it

  • Calculators:
    FX-82SX / AFX 2.0+ (ROM 1.03) / FX 1.0+ (ROM 1.03)

Posted 06 April 2003 - 05:47 PM

Ok you do the " by pressing <span class=Alpha' /> and then <span class=F2' />
The Triangle (not Trianhle, sorry!) displays the number before it. It
is located in <span class=Shift' /> then <span class=VARS' /> and <span class=F5' />

Make sure to type the program in PRGM Mode (B in Main Menu)
But it will not work the way you want because the Y is undefined.
Make sure if your code is right.

#5 cevb

cevb

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 06 April 2003 - 06:18 PM

Yeah, I'm kind of figuring out right now..
hmm.. How can I define a variable, to make the program work?

the problem is that Y has already a definied value?? Because if I replace Y with X I get another result, but again, not the one I want.. so, how can I clear a variable?

#6 enk

enk

    Newbie

  • Members
  • Pip
  • 4 posts
  • Location:Denmark
  • Interests:Hmm... programming, from time to time. On my fx-9750G PLUS. And since I'm not permitted to type more than 30 chars at my MSN adress, I'll have to write here that it IS coM . U guessed that.... bye now.

  • Calculators:
    fx-6300, fx-9750G PLUS

Posted 06 April 2003 - 06:40 PM

Could the INTEGRAL thingy be the same as Casios "Int" (e.i. throws away the decimals). Then again, it apparently needs four arguments!?)

About the Y, you have to know what it has to be to make the prog work. If it is 7.83 , then write this in the beginning of the code (or before it is needed):
7.83->Y

If you want a "reset", use
0->Y

But what precisely is the prog meant to do (and is the commas in the INTEGRAL meant to separate some inputs)

Hope I can help.... :rolleyes:

#7 cevb

cevb

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 06 April 2003 - 07:26 PM

hi!

hmm, yeah, well, its just like when you want to integrate 2x and then evaluate it from 1 to 2.. the you would have x^2 as a result, and the evaluation would be (2)^2-(1)^2. So in the TI calculators this goes as follows: INTEGRAL(2x,x,1,2)
so, thats what the commas are for, to indicate the variable in which i want to integrate, then the values to evaluate it.

the program was made for a TI-89, however, most of us have Casio calculators. I still don't know how to make Y as a non-value variable, I mean, I don't want it to be zero, I want it to remain a vriable so the integral can work..

am I making any sense here??

#8 cevb

cevb

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 07 April 2003 - 01:35 AM

hmm.. I got it to work...
I simply eliminated all the ecuations in the lower part of the program, and got it in as a one big integral ecuation.. and thats it
I got what I was s'poused to get

thanks all

#9 Brazzucko

Brazzucko

    UCF BASIC Programming Champion

  • Super Member
  • PipPipPipPipPipPip
  • 412 posts

  • Calculators:
    FX 1.0, CFX 9850 GB Plus and FX 9750G

Posted 07 April 2003 - 12:37 PM

:D If you have the manual, read then to learn some things about the "CASIO basic language".......




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users