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
2
votes
2 answers

What is the fastest infinite loop in TI-84+ Basic?

Since there are technically 4 types of loops (for, while, repeat, and goto/lbl), which one is the fastest to use "infinitely"? Here is what I mean: while 1 End repeat 0 End lbl 1 goTo 1 for(n, 1, [number large enough to function as practically…
Johnny Dollard
  • 708
  • 3
  • 11
  • 26
2
votes
1 answer

Connect Four Win Check Ti-Basic Without Using Matrices

Recently I have made a simple ti-basic human vs. human connect four game with my limited knowledge of the language. It runs pretty well, and stores the occupied spaces in a list, LFILD which has a dim(length) of 42 representing each box in the 7…
Moshe Goldberg
  • 461
  • 2
  • 15
2
votes
2 answers

Using hexcode in ti basic program on ti 84+

Recently I have been reading about different hex codes that do cool stuff like Archiving something inside a program among other things. The way I try to incorporate these into my (ti 84+)basic coding is by using a separate program and "calling it"( …
Moshe Goldberg
  • 461
  • 2
  • 15
2
votes
1 answer

Can someone explain the TI BASIC List command?

I understand that the command compares and can subtract values, but I don't see exactly how that works. I've used a TI BASIC programming tutorial site (http://tibasicdev.wikidot.com/movement-explanation) and I need clarification on List as a…
StealthDroid
  • 365
  • 1
  • 4
  • 14
2
votes
2 answers

How to make the π and 16 be on the same line?

So, I'm making a program on my TI-84 Plus that finds the area of a circle. I want it to display the approximate answer and the exact answer, but I can't get the latter to work. The code is this (I realize that it isn't very efficient): Prompt…
2
votes
1 answer

Creating an array and grabbing data on TI-84

Is it possible to to create a program on the TI-84 that contains a large array and get data from that array? I will have the program prompt for something and I'd like it to see if it can find the prompt entered in an array. For example, let's say…
Matt Kelly
  • 31
  • 4
2
votes
2 answers

Tibasic check if character is on screen position

I am trying to make a simple arcade shooter like Galaga in TIBasic. I have successfully created some code that lets you move your character (an "X") horizontally across the screen while shooting a bullet that clears everything along the vertical…
Blake Allen
  • 347
  • 1
  • 10
2
votes
1 answer

TIBASIC: How can one prompt a multivariable expression?

On the Ti-84 and Ti-89, I know that one can use "Define" to define a function with multiple variables. However, is there a way to use "Prompt" or something of the sort to define a function? Suppose we have a very simple program that evaluates an…
Diafotismos
  • 109
  • 1
  • 10
2
votes
3 answers

Convert from fraction to decimal and vice versa, TI 83 basic

I have a code to calculate the slope of a line if two points are known; however, it only returns the slope in decimal format. I'd like the ability to choose to convert the decimal to a fraction. Here's what I've done so far: :Disp " " :Input "PAIR…
Fred Barclay
  • 834
  • 1
  • 13
  • 24
2
votes
1 answer

How do I pass parameters and results to/from a subprogram in TI-basic

I have a program called FACTORS that prompts for an input value, and computes and displays a list of all the factors of that input number. Now I want to write another program that calls FACTORS a couple of times and then loops through the lists of…
PurpleVermont
  • 1,179
  • 4
  • 18
  • 46
2
votes
2 answers

Ti Basic (Ti-82 Plus) - Replace variable by numbers and X's

I whant to replace a variable by some numbers and X's or even a direct equation like 3X+2 = 5 Yeah I'm codding a resolution of equations :D (i'm borred) This is what i've written right now Prompt E Prompt F while T [not equal to] 1 X+0.01 -> X If…
nicobld
  • 131
  • 2
  • 12
2
votes
2 answers

i=i+1 in compiled languages?

I'm writing a program for my TI-nspire calculator in TI-BASIC, an optimised version of BASIC. From what I can tell, TI-BASIC is a compiled language. I have had more experience working with scripting languages, where you can define i as i+1, where…
user5331742
2
votes
2 answers

TI-NSpire dynamically create variables for vector cross product

Ok, I am trying to create a cross product function in the TI-NSpire that took n-1 vectors of dimension n and take the determinant of a matrix like this: [[u_x,u_y,u_z,u_w], [a_1,a_2,a_3,a_4], [b_1,b_2,b_3,b_4], [c_1,c_2,c_3,c_4]] The top row is…
Gerald
  • 166
  • 1
  • 13
2
votes
1 answer

Complex Numbers Seemingly Arising from Non-Complex Logarithms

I have a simple program written in TI-BASIC that converts from base 10 to base 2 0->B 1->E Input "DEC:",D Repeat D=0 int(round(log(D)/log(2),1))->E round(E)->E B+10^E->B D-2^E->D End Disp B This will sometimes return an the error 'ERR: DATA…
ZTqvhI5vpo
  • 155
  • 2
  • 10
2
votes
1 answer

How to recognize that character is at end of maze?

I have two separate levels for my maze game for the ti-84 calculator, which both have identical code. Although, one of the levels does not complete when the character reaches the end, and treats the final spot as a wall.…
Ryan Allen
  • 883
  • 1
  • 7
  • 9