Jump to content



Photo
- - - - -

problem with variables...


  • Please log in to reply
4 replies to this topic

#1 rat123

rat123

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 10 November 2002 - 08:36 PM

Sorry, I come from spain and my english isn't good enough. I hope people will understand...

I'm a newbie casio programmer (i'm doing my first program...). I have used A-Z letters as variables and I need more. Also "r" and "theta" symbol. I have tried to use "a", "b" and so on as a variables but I get an error. What can I do?

I've got a 9750 model.

Thanks for all
rat.

#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 10 November 2002 - 08:50 PM

You can use lists or matrices to store larger amounts of data.

You asign vaules much the same way as you do with letters A-Z, only you index the variables as well (like an array)

i.e:

1->List1(1)

or more general:

A->ListN(i), where A is any number, N is an int 1- 6, i is an int 1 - 255

as matrices:

A->MatX[r,c], where A is any number, X is any letter A-Z, r is the row, and c is the collumn

To use Lists or Matrices you will have to set their dimsions first:

i.e:
2->Dim List1

or

{3,4}->Dim Mat A

experiment a bit, and you'll get the hang of it...

however, you should find all this in your users manual..

#3 rstweb

rstweb

    Casio Hack

  • Members
  • PipPipPipPip
  • 274 posts
  • Gender:Not Telling

Posted 11 November 2002 - 04:25 PM

isn't the right command

1->List N[i] ???

bye

rstweb

#4 MathManiac

MathManiac

    Casio Addict

  • Members
  • PipPipPip
  • 85 posts
  • Gender:Male
  • Location:Portugal
  • Interests:Maths & Physics
    Girls
    Science fiction
    Cinema

  • Calculators:
    fx CG20
    fx 9860 GII SD
    Afx 2.0 plus
    CFX 9850 G
    Fx 115 D
    TI 83 Plus SE
    Ti 92 Plus
    Hp 49 G

Posted 11 November 2002 - 04:32 PM

isn't the right command
1->List N[i] ???

Yes, it is . He probably just pressed the SHIFT key instead of the ALT GR.

#5 rstweb

rstweb

    Casio Hack

  • Members
  • PipPipPipPip
  • 274 posts
  • Gender:Not Telling

Posted 11 November 2002 - 09:12 PM

The correct post from BiThwise:

i.e:

1->List 1[1]

or more general:

A->List N[i], where A is any number, N is an int 1- 6, i is an int 1 - 255

as matrices:

A->Mat X[r,c], where A is any number, X is any letter A-Z, r is the row, and c is the collumn

To use Lists or Matrices you will have to set their dimsions first:

i.e:
2->Dim List 1

or

{3,4}->Dim Mat A

bye

rstweb




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users