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
3
votes
1 answer

Call into Lua from TI-BASIC

I have an nspire calculator and after writing a hash table implementation, found the BASIC environment to be a pretty offensive programming environment. Unfortunately, as far as I'm aware, it's impossible to use Lua to write libraries. I did see…
Yet Another User
  • 2,627
  • 3
  • 18
  • 27
3
votes
2 answers

Concatenation with empty string raises ERR:INVALID DIM

In TI-BASIC, the + operation is overloaded for string concatenation (in this, if nothing else, TI-BASIC joins the rest of the world). However, any attempt to concatenate involving an empty string raises a Dimension Mismatch error: "Fizz"+"Buzz" …
3
votes
2 answers

If Then statement displays all possibilites

I'm trying to display text based on a user's input. For example inputting the word APPLE should make it display BANANA. This snippet works fine: :Input X :If X=APPLE :Disp "BANANA" But I'm unsure how to build off this to make a series of…
3
votes
3 answers

Check every value in a list in TI-Basic

I'm writing a snake game in TI-Basic, and every time I move I need to see if the head of the snake has hit any point in the tail. The tail is stored as a circular list-based queue, and I can add the beginning and end in constant time. The only hard…
Brendan Long
  • 53,280
  • 21
  • 146
  • 188
3
votes
2 answers

How to turn a string into a variable? (TI-84)

I'm trying to turn a string into a variable on my TI-84. For example, "XYZ"→Str0 fnInt(X²,sub(Str0,1,1),0,1)→A But it's not letting me. I know this seems like a really inefficient way of doing it (why not just do fnInt(X²,X,0,1)?), but in my…
user3932000
  • 671
  • 8
  • 24
3
votes
2 answers

Repeat statement always iterates exactly once

I'm just starting TI-86 BASIC programming with the following guessing game: :randInt(1,10)→X :0→A :Repeat A=X :Disp "Guess the number" :Input "between 1 and 10.", A :End My understanding of the Repeat statement is that the block will execute until…
Steve
  • 8,066
  • 11
  • 70
  • 112
3
votes
3 answers

In TI-BASIC, how do I add a variable in the middle of a String?

I am wondering how to make something where if X=5 and Y=2, then have it output something like Hello 2 World 5. In Java I would do String a = "Hello " + Y + " World " + X; System.out.println(a); So how would I do that in TI-BASIC?
Cameron K
  • 398
  • 1
  • 9
3
votes
1 answer

Is it possible to port .8xk apps to work for the TI 84 Plus CE?

I'd like to be try this calculus app (or the "fixed version") on my new TI 84 Plus CE. However, the PrettyPt and Symbolic apps, which must be installed prior to use, are given in .8xk format, which means they are not usable in the TI 84 Plus CE (as…
squirg
  • 33
  • 4
3
votes
3 answers

How to stop the on button from breaking a program in TI-BASIC

So I made a TI-BASIC program that fakes the calculator's home screen but gives the wrong answer to math equations on purpose. This is the code: :ClrHome :Lbl 1 :Input "",A :Disp rand :Goto 1 It works great and all and it's fun to trick friends…
Private Caller
  • 121
  • 1
  • 5
3
votes
2 answers

Is there a command that clears the Y-variables?

I have a command that essentially functions like clearing the memory, but doesn't wipe programs and sets the settings I like. I found out that while it does its job well, it doesn't seem to clear the equations in the Y= menu. Is there a command or…
user1440897
3
votes
2 answers

Effective functional sort

I'm programming a function for a TI-Nspire, so I can't use the builtins from inside a function. What is the most generally efficient algorithm for sorting a list of numbers without modifying the list itself? (recursion and list-splitting are fair…
muhmuhten
  • 3,313
  • 1
  • 20
  • 26
3
votes
1 answer

Syntax error on simple If Else

I get an error at the 'Else' on a TI-84 Plus. I can't figure out why this doesn't work. I'm writing a GCD program just as an exercise in programming a TI calculator. It's recursive (or as recursive as TI-BASIC gets). If B=0 Disp…
KthProg
  • 2,050
  • 1
  • 24
  • 32
3
votes
3 answers

Is it prime? TI-BASIC

Hi Im trying to translate this code to TI-BASIC. Im having problems with how to change for loop into while loop and also with incrementing a number in TI-BASIC. #include int main() { int n, i, flag=0; printf("Enter a positive integer:…
gulftown
  • 31
  • 4
2
votes
2 answers

Printing Strings In TI-84 Calculator Language

So i made a simple program that calculates the cross-product of two 3D vectors on my TI-84 Plus Calculator. I would like for the output to look like this: XI+YJ+ZK, however i dont know how to concatenate number values as they are stored in variables…
user1032369
  • 549
  • 3
  • 8
  • 22
2
votes
1 answer

Evaluating values in a linear equation with 2 variables given by the user

I'm trying to make a TI-Basic script for my "TI-nspire CX II CAS" that evaluates linear equations with 2 variables. This is my code: Define LibPub test()= Prgm request "Insert function: ",fxy request "Point X: ",a request "Point Y: ",b Define…
Mamey
  • 81
  • 1
  • 10
1 2
3
15 16