ArticleslgStudy

computer science

TI-BASIC

TI-BASIC is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand TI-BASIC rather than just read about it. In short: TI-BASIC is the official name of several BASIC-like programming languages used by Texas Instruments' graphing calculators. It is a language family of three different and partially-incompatible versions, released on different products: TI-BASIC 83 for the Zilog Z80-based TI-83 and TI-84 Plus series TI-BASIC 89 for the Motorola 68000-based TI-89 and TI-92 series TI-BASIC Nspire for the ARM-based TI-Nspire series TI ra…

TI-BASIC — main illustration
TI-BASIC — illustration

Key takeaways

  • TI-BASIC belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect TI-BASIC to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of TI-BASIC from memory before moving on to harder problems.

Reference excerpt

TI-BASIC is the official name of several BASIC-like programming languages used by Texas Instruments' graphing calculators. It is a language family of three different and partially-incompatible versions, released on different products:

TI-BASIC 83 for the Zilog Z80-based TI-83 and TI-84 Plus series TI-BASIC 89 for the Motorola 68000-based TI-89 and TI-92 series TI-BASIC Nspire for the ARM-based TI-Nspire series TI rarely refers to the language by name, but the name TI-BASIC has been used in some developer documentation. Built into every TI graphing calculator, it is the primary method of programming available to the user. On most calculators, assembly language can also be used, and C cross-compilers exist for translation into assembly: TIGCC for 68000-based calculators, and SDCC for Z80-based calculators; these do not run on the calculator itself. As an interpreted language, TI-BASIC is considerably slower than assembly, making it better suited to writing programs to quickly solve math problems or perform repetitive tasks, rather than programming games or graphics-intensive applications. TI-BASIC programs (usually written in TI-BASIC 83) can also be found in math textbooks. Despite its limitations, a growing community of TI-BASIC programmers has developed, mainly on the Internet.

Syntax The syntax of all versions of TI-BASIC are somewhat different from typical BASIC implementations. The language itself has some basic structured programming capabilities, but makes limited to no use of or allowance for white space or indentation. It is also dependent on a somewhat non-standard character set, with specific characters for assignment (the right "STO" arrow, not readily available in most character sets), square and cube roots, and other mathematical symbols, as well as tokenized entry and storage for keywords. All statements begin with a colon, which also functions as a statement separator within lines. In TI-BASIC 83, closing parentheses, brackets, braces, and quotes can optionally be omitted at the end of a line or before the STO token in order to save space, although sometimes they are better left on; for example, the for loop function runs much slower without closing parentheses in certain circumstances. Expressions use infix notation, with standard operator precedence. Many statements demand arguments in parentheses, similar to the syntax used for mathematical functions. The syntax for assignment (copying of data into a variable) is unusual with respect to most conventional programming languages for computers; rather than using a BASIC-like let statement with an equal sign, or an Algol-like := operator, TI-BASIC uses a right-arrow sto→ operator with the syntax: source → destination. This is similar to several Japanese calculators, such as from Casio, Canon and Sharp, that have often employed a similar syntax, ever since the first mass market Japanese alphanumerical calculators appeared in the late 1970s and early 1980s.

Control flow Control flow statements include if-then-else blocks, for loops, while loops, and repeat loops, though no switch statements. The main control flow statements are:

Unusual for a high level language, TI-BASIC implementations include IS> (Increment and Skip if Greater Than) and DS< (Decrement and Skip if Less Than) statements, constructs generally associated with assembly languages. Sections of programs can be labeled; however, particularly on the Z80 models, the labels function as destinations for Goto statements or Menu( functions rather than as program or block labels. Availability of functions and subroutines depends on the implementation; the versions available on the TI-82-descended calculators do not even support a GOSUB-like function, though it is possible to call programs from within each other and share variables between programs. TI-89/92-based designs can have access to shared functions, essentially programs capable of returning a value.

Data types TI-BASIC is a strongly- and dynamically-typed language. Available data types differ considerably between the 68k and Z80 versions. It is not possible to create user-defined data types without using a library written in assembly. Lists are often used as a replacement for structs.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with TI-BASIC

Start with the simplest possible case. Write down what TI-BASIC claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to TI-BASIC before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about TI-BASIC ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of TI-BASIC

In research
TI-BASIC appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses TI-BASIC in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
TI-BASIC is common in secondary-school and first-year university syllabi. It links to neighbouring topics BASIC interpreters, BASIC programming language family, Graphing calculator software, so understanding it makes those chapters shorter.
In everyday life
Look for TI-BASIC outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “TI-BASIC” →

How to study TI-BASIC in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what TI-BASIC means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain TI-BASIC out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is TI-BASIC in simple terms?

TI-BASIC is the official name of several BASIC-like programming languages used by Texas Instruments' graphing calculators. It is a language family of three different and partially-incompatible versions, released on different products: TI-BASIC 83 for the Zilog Z80-based TI-83 and TI-84 Plus series…

Why does TI-BASIC matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study TI-BASIC?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on TI-BASIC.

Tags

  • BASIC interpreters
  • BASIC programming language family
  • Graphing calculator software
  • Texas Instruments calculators

Keep exploring