Omnimaga
Calculator Community => TI Calculators => TI-BASIC => Topic started by: Munchor on May 25, 2011, 09:43:50 am
-
So I was learning statistics and when I do 1-Var Stats in the 83+ Series I can't seem to get the most repeated value in a sequence.
We call it "moda" in my language, which means "fashion", so not sure if you have a special name.
So I thought of making a TI-Basic program for it, but I have no idea of how to get the number of elements in a list nor how to do the thing actually.
I really have *no idea* of how to code it, do you guys have any idea?
How it'd look:
WHAT LIST?
1
THE MOST REPEATED VALUE IS 10
An example of L1 here would be:
10
10
9
8
7
9
10
Thanks a lot!
-
In English, it's called "mode". I also have no idea how to code it, either. However, there are a few functions that might help:
dim(L1) (found in [2nd] (list), in the second submenu) returns the number of elements in the list. You can also store to this function to set the number of elements in a list.
L1(n) gets the nth element of the list, with 1 being the first element.
-
Thanks Compynerd, I got it already thanks to merth :) http://weregoose.unitedti.org/#ModeCalculator (http://weregoose.unitedti.org/#ModeCalculator)
-
It might list it as Mod, but I don't know if your 83+ also shows that when using 1Var. My casio shows it right beneath MaxX, above Mod:n and Mod:F
-
It might list it as Mod, but I don't know if your 83+ also shows that when using 1Var. My casio shows it right beneath MaxX, above Mod:n and Mod:F
Yeah, TI seems to hate Mode, they don't have it neither on Nspire nor on 83+.