### Author Topic: Extra Variables - An advanced TI-BASIC trick  (Read 15160 times)

0 Members and 1 Guest are viewing this topic.

• Beta Tester
• Posts: 817
• Rating: +27/-7
##### Re: Extra Variables - An advanced TI-BASIC trick
« Reply #15 on: January 24, 2010, 11:29:44 am »
Nice find there, Quigibo!
Former Coder of Tomorrow

#### Quigibo

• The Executioner
• CoT Emeritus
• LV11 Super Veteran (Next: 3000)
• Posts: 2031
• Rating: +1075/-24
##### Re: Extra Variables - An advanced TI-BASIC trick
« Reply #16 on: January 24, 2010, 03:56:52 pm »
Wow!  That's great!  Those are two more "constants" that I'll start using.  They can take various values like -1.346, 8, 9001, .345 right?
Yes.  They just can't be complex.

Another way to save stat vars (probably better than my first example)

{A,B->L1
1-Var Stats

The smaller of A and B is saved in minX and the larger of the two is in maxX.

Also in case its useful, their sum is in Σx, the average is in Med, and the sum of their squares (maybe in case you're using this constant to compare distances) is in Σx2
« Last Edit: January 24, 2010, 04:02:50 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

#### Galandros

• LV9 Veteran (Next: 1337)
• Posts: 1140
• Rating: +42/-10
##### Re: Extra Variables - An advanced TI-BASIC trick
« Reply #17 on: January 24, 2010, 04:24:56 pm »
This tricks should be added to http://tibasicdev.wikidot.com/

Never think you know all TI-BASIC tricks.
Hobbing in calculator projects.

#### ztrumpet

• The Rarely Active One
• CoT Emeritus
• LV13 Extreme Addict (Next: 9001)
• Posts: 5712
• Rating: +364/-4
• If you see this, send me a PM. Just for fun.
##### Re: Extra Variables - An advanced TI-BASIC trick
« Reply #18 on: January 24, 2010, 06:36:18 pm »
Another way to save stat vars (probably better than my first example)

{A,B->L1
1-Var Stats

The smaller of A and B is saved in minX and the larger of the two is in maxX.

Also in case its useful, their sum is in Σx, the average is in Med, and the sum of their squares (maybe in case you're using this constant to compare distances) is in Σx2
Yes!  That's awesome!  I can't wait to find a spot to use these.
If I'm wrong, please correct me!
Unfinished Projects:
 Elmgon 14% Basic Movement Demo Homescreen Game Pack 80% Basic Latest Release Cube Droid Saves the Galaxy 65% Axe Demo Detonate 70% Axe
Completed Projects:
Exodus | Midnight |Drifter | Axe Snake | Jump! | Factory Theta | Spider | Plot Drop | Papi Jump | Numb3rs | Nibbler | Boost | Duel Tile Map Editor | Homescreen Map Editor | Key Group Check | Oasis