Questions tagged [ti-basic]

TI-BASIC is the official name of a BASIC-like language built into Texas Instruments (TI)'s graphing calculators, including the TI-83 series, TI-84 Plus series, TI-89 series, TI-92 series, TI-73, and TI-Nspire. The capability to write programs in TI-BASIC is automatically built-in to Texas Instruments calculators.

Forms of TI-Basic

TI-Basic comes in three distinct forms, TI-83, 68K, and TI-NSpire. While these forms have much in common, they also have noticeable differences that make code written for one from almost completely incompatible with the others. For this reason it is important to explicitly state the form of TI-Basic you are using in any questions.

  • TI-83 Basic
    This is the most common form of TI-Basic. It refers the form of TI-Basic found on both TI-83 and TI-84 series of calculators. Even within this form of TI-Basic, there are variations in the availability of functions between calculators.
  • 68K
    This form of TI-Basic is far less common than TI-83 Basic. 68K TI-Basic is found on the TI-89, TI-92 and Voyage 200 calculators.
  • TI-Nspire
    Generally the least common form, this is only found on TI-Nspire series calculators. Due to the far superior processing power TI-Nspire calculators have, this form could have more potential than the others, but limitation in regards to input and output renders this form largely unused.

Resources

231 questions
1
vote
1 answer

Does anyone know how to set a variable with randInt() on Ti-84 Plus CE?

I was just messing around writing a slot machine program on my PlusCE and I tried to run this: :randInt(111,999,1)->A But it won't save to the variable Any ideas?
Jed Ester
  • 11
  • 1
1
vote
1 answer

Is there something I'm doing wrong to pick up this error?

I am new to Ti-basic, and I am trying to code it. I'm trying to make this 'special type of input' program. It is kind of like input, but it will show the word as it is being pressed (and there is no need to put in alpha) Here is the code so far that…
Treyara
  • 47
  • 1
  • 7
1
vote
0 answers

How do I set \r or CR as End of Line in Git?

I'm adding my TI-89 programs to a Git repository and they all use \r line endings like Mac OS (before X). Is it possible to set the line endings in .gitattributes to carriage return? Here's my file so far: *.89p diff eol=cr Is it possible to…
NobleUplift
  • 5,631
  • 8
  • 45
  • 87
1
vote
2 answers

Reassigning variables in a loop in a simple TI-Basic program

In my notes (from late 90s!), I found a simple TI-Basic program that takes an integer N and outputs the smallest prime number larger or equal to N. Prompt N If (N/2) = int (N/2) 1+N -> N For (I, 3, 2+iPart(√N, 2) If (N/I) = iPart(N/I) Then 2+N ->…
AndJM
  • 151
  • 1
  • 6
1
vote
1 answer

TI Basic Index Error when looping through List

I'm trying to implement insertion sort in TI-BASIC on the TI-84 and have nearly been successful. My solution sorts all but the first element of the list. In order to work properly, I believe this line: While C>1 and L1(C)>V needs to be While C>0 and…
Robin Andrews
  • 3,514
  • 11
  • 43
  • 111
1
vote
0 answers

Ti-Basic how to do Raycasting ti-84 plus ce

I am trying to create a game similar to doom on my ti-84 plus ce using pure ti-basic, and I have tried several raycasting codes, but most throw up multiple errors, and the ones that dont error are incredibly slow and dont actually do things or are…
Zenedus
  • 96
  • 9
1
vote
2 answers

toString() alternative for a ti-84+ for number values assigned to a variable

I am trying to make a program that takes 2 given points and calculates the straight line in between them using either point-slope or slope-intercept based on the users choice. I have a few variables (C, A, E) that are the final variables in my…
fraday15
  • 53
  • 1
  • 3
  • 14
1
vote
0 answers

The Period of Data Using TI-BASIC

I'm in basic trigonometry and currently learning how to find equations having been given the data only. I understand the concept pretty well, but I usually make a program in a TI-BASIC for solving my homework because it helps me understand it at a…
1
vote
1 answer

TI-BASIC while-loop runs only once on TI-84+ CE, even though its condition is met

I am trying to write a program on my TI-84+ CE that allows the user to perform calculations with base-12 numbers with ease. The basic idea is that when the program is running, the calculator may be used like a normal calculator, and that the user's…
1
vote
1 answer

Need to input variable number of variables in TI-nspire CX CAS

I want to write a TIBasic program for the nspire CS CAS which will perform simple finite element analysis. In order to do this, I need to be able to input a non-specific number of variables since the number of members in a problem will vary. Is…
Charlie
  • 11
  • 1
1
vote
1 answer

TI-84 program, the code is going into the wrong if statement

So I have a program on my TI-84 calculator that calculates the volume of 3-D shapes. Here is the code ClrHome Disp "Z=Cuboid Disp "Y=Tri Prism Disp "X=Square Pyramid Disp "W=Tri Pyramid Disp "V=Cylinder Disp "U=Cone Disp "T=Sphere Prompt S Pause If…
1
vote
1 answer

TI-BASIC: Indexing to Prompt or Input command

I have a TI-84 Plus, and I am creating a program to calculate the magnitude of an n-dimensional vector. I have included my code and its output below. Program Editor: PROGRAM:NTHDMAG Disp "HOW MANY DIMENSIONS?" Prompt…
1
vote
1 answer

Get number of rows in a matrix TI-84

I want to find the number of rows a matrix has in order to iterate over the rows using a FOR loop. But when I use the dim command it returns me a list with two elements, and I do not know how to store the first into a variable. How could I store the…
Jsevillamol
  • 2,425
  • 2
  • 23
  • 46
1
vote
3 answers

TI Basic Bouncing Ball Animation

I am trying to make a bouncing ball animation in TI Basic and The ball is leaving a trail, and I can't figure out how to clear the graph every second. Is there a solution to this problem, if so please post it. My…
Boo Boo
  • 80
  • 9
1
vote
1 answer

Issue with dim command on TIBASIC

I'm tying to put in a command that goes {11,21}STO>dim([A]) And I keep getting a syntax error at the first square bracket. The syntax seems correct to me, so I don't know what the issue is.
Null_Error
  • 11
  • 3