Jump to content



Photo
- - - - -

Classpad 330 Programming


  • Please log in to reply
5 replies to this topic

#1 3Dmaniac

3Dmaniac

    Newbie

  • Members
  • Pip
  • 5 posts

  • Calculators:
    330

Posted 11 December 2008 - 07:51 PM

i been tryin my luck with programmin this is a program on lagrange interpolatiion im tryin to develope i have a problem tho , i wana change the name of muh variable from x1...xn and ask the user to enter a number for each one according to the problem in hand (n bein an input) meanin : i need to ask the user to enter numbers for x1 to xn but n is also an input tht the user enters so i can use these numbers later but it wont lemme choose my variable as xi (i bein the control variable for the loop) ,any one has any suggestions????


TY !

#2 Gualberto Soto Sivila

Gualberto Soto Sivila

    Newbie

  • Members
  • Pip
  • 23 posts
  • Gender:Male
  • Location:Oruro - Bolivia (591) 72489039 <u title="Email protected, replace &quot; AT &quot; by &quot;@&quot;">gsoto.s<i> AT </i>gmail.com</u>

  • Calculators:
    CFX 9850GC Plus, Algebra FX 2.0 Plus, Classpad 330

Posted 12 December 2008 - 01:30 AM

i been tryin my luck with programmin this is a program on lagrange interpolatiion im tryin to develope i have a problem tho , i wana change the name of muh variable from x1...xn and ask the user to enter a number for each one according to the problem in hand (n bein an input) meanin : i need to ask the user to enter numbers for x1 to xn but n is also an input tht the user enters so i can use these numbers later but it wont lemme choose my variable as xi (i bein the control variable for the loop) ,any one has any suggestions????


TY !

What language are using for your program Basic, LUA or SDK

Edited by Gualberto Soto Sivila, 12 December 2008 - 01:31 AM.


#3 3Dmaniac

3Dmaniac

    Newbie

  • Members
  • Pip
  • 5 posts

  • Calculators:
    330

Posted 12 December 2008 - 12:45 PM

tnx for the answer been waitin for someone to help me out for a while ,
heres the thing im a mechanical engineerin student so programmin is not realy my thing , i honestly dont no wat sdk and lua mean(althouh i checked it out in wikipedia) :)
im usin the the programmin feature in classpad 330
i think the basic features are same as C++

TY

#4 Behnoud

Behnoud

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 338 posts
  • Gender:Male
  • Location:Iran

  • Calculators:
    CP 300+ OS2.2/
    FX 3600 pv/
    FX 115 s/
    FX 602P

Posted 15 December 2008 - 08:07 PM

I'm a mechanical engineering student too.
You can use eActivity to do some calculation and iterative operation it's like doing in Main.

#5 Kilburn

Kilburn

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 491 posts
  • Gender:Male
  • Location:France
  • Interests:Blah

  • Calculators:
    FX-7500 G
    ClassPad 300

Posted 15 December 2008 - 09:29 PM

How about actually answer his question?

If you want to enter numbers from n numbers and store them, I'd suggesting using this way:

{}=>x
Input n
For 1=>i To n
Input x[i]
Next

Instead of having values from x1 to xn, it creates a list of values. Basically, that's what you want to do, and it's the best way to do it.

If you want some nicer text in the input boxes, you can also do this:

{}=>x
Input n,"Number of values:"
For 1=>i To n
ExpToStr i,s
StrJoin "x",s,s
StrJoin s,"=",s
Input x[i],s
Next


Also, I seriously hope you're not English, check your grammar, it's just horrible to read.

Edited by Kilburn, 15 December 2008 - 09:30 PM.


#6 3Dmaniac

3Dmaniac

    Newbie

  • Members
  • Pip
  • 5 posts

  • Calculators:
    330

Posted 16 December 2008 - 06:06 AM

^^damn that hurt !!! but tnx for the help :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users