TI-BASIC

TI-Basic is the name for the programming language embedded in some Texas Instruments programmable graphing calculators . It is based on the classic BASIC language , hence its name.

Programming

TI-Basic programming is quite flexible, in addition to the basic instructions for loops and bifurcations in the code, the language has some tools that allow you to create forms and dialog boxes, resulting in more finished programs and easy handling when using them. .

TI-Basic programs can be written directly on the calculator with the Program Editor, but there are several editors for PCs that allow you to write and test the code on the computer and then transfer it to the calculator.

Syntax

The syntax of all versions of TI-BASIC is somewhat different from those commonly used by BASIC . The language itself has some basic structured programming, but uses limitations on the use of whitespace or mixing. It is also dependent on a slightly abnormal character set, with specific characters for mapping (the right arrow, not readily available in most character sets), square and cube roots, and other mathematical symbols, as well as tokenized input and storage for keywords. All declarations start with a colon, which also works as a separator for the declaration within lines.

The notation expressions used is the infix, with a standard operator precedence. Many statements include their discussions in parentheses, similar to the syntax used for mathematical functions. The syntax of the assignment is unusual; Rather than using the let statement or an equal, TI-BASIC uses a right-arrow operator with the syntax: source → destination.

Check flow statements include if-then-others blocks, for loops, while loops, and repeat loops, even if you don’t change the statements. Unusually for a high-level language, TI-BASIC implementations include SON> (Increment and jump if greater than) and DS <(Decrement and jump if less than) declarations, constructs generally associated with assembly languages. Program sections can be labeled; however, particularly on the Z80 models, the tags function primarily as destinations for GOTO statements rather than as program or block tags.

The availability of functions and subprograms depends on the implementation; The versions available on the TI-82-descended calculators do not even support the GOSUB- like function, although it is possible to call programs within each other and part variables between programs. TI-89/92-based designs can access shared functions, essentially program capable of returning a value.

 

by Abdullah Sam
I’m a teacher, researcher and writer. I write about study subjects to improve the learning of college and university students. I write top Quality study notes Mostly, Tech, Games, Education, And Solutions/Tips and Tricks. I am a person who helps students to acquire knowledge, competence or virtue.

Leave a Comment