TI-BASIC 83

TI-BASIC 83
TI-BASIC Z80 code viewed on a TI-84 Plus CE
ParadigmProcedural
Typing disciplineStrong, Static (see Data types and variables)
PlatformTI-83 series, TI-84 Plus series programmable calculators

TI-BASIC 83,TI-BASIC Z80 or simply TI-BASIC, is the built-in programming language for the Texas Instruments programmable calculators in the TI-83 series.[1] Calculators that implement TI-BASIC have a built in editor for writing programs. While the considerably faster Z80 assembly language[2]: 120  is supported for the calculators, TI-BASIC's in-calculator editor and more user friendly syntax make it easier to use. TI-BASIC is interpreted.[2]: 155 

Syntax

The syntax for TI-BASIC 83 is significantly different compared to most dialects of BASIC. For example, the language does not permit indentation with whitespace characters. It also depends on the TI calculator character set because it is tokenized.[2]: 25  Aside from these differences, TI-BASIC retains most control flow statements: conditionals, various loops, GOTOs and Labels. Conditionals and loops use End to denote the end of their bodies.

Each command can be placed on a new line, or separated by a colon for brevity. As such, the following snippets are identical in function.

:Disp 42
:Disp "FOOBAR
and
:Disp 42:Disp "FOOBAR

In the above example the closing double quotes can be omitted because the colon causes all open markers to be closed.

Unlike many high-level programming languages, TI-BASIC has only one assignment operator: . The rightward arrow assigns the value on the left to the variable on the right.

Conditionals

TI-BASIC includes simple constructs using the If statement. When the If token does not have a Then token on the following line it will only execute the next single command.

:If condition
:command

Where condition is any boolean statement. One benefit of this format is brevity as it does not include Then and End. An If statement may have more than one command in its body if, instead of a command, a Then token is placed.

:If condition
:Then
:command
:command
:End

When using Then, the body must be closed by an End token. One more construct utilizes Else. This allows one of two bodies to be executed.

:If condition
:Then
:body one
:Else
:body two
:End

In this case the calculator evaluates condition, if it evaluates to true body one is executed, however, if condition evaluates to false, body two is executed. Unlike many other programming languages, TI-BASIC has no else if construct, or any switch statement.

It does, however, have a Menu( statement which allows a user to select one of a number of options. Similar to a switch menus do have fallthrough. The general syntax is Menu(, a quoted title string, and followed by quoted option name and label name. An example:

:Menu("TITLE","FIRST",1,"SECOND",2,"THIRD",3)
:Lbl 1
:body one
:Lbl 2
:body two
:Lbl 3
:body three
TI-84 Plus CE Menu example

The image is how the calculator renders the example above.

In terms of functionality, the Menu('s flow is similar to some switch statement and cases, with a key difference that the user supplies the switch's usual expression. Like many switches and cases, the Lbl allows fall-through. For example, in the code above, if a user selects "FIRST", all three bodies are executed. However, selecting "SECOND" means only the second and third bodies are executed.

Loops

TI-BASIC includes three types of loops: For(, While, and Repeat.

For(

For( is similar to many other languages. It will repeat commands either a set number of times, or a variable number.

:For(variable,start,end[,increment])
:body
:End

While and Repeat

While takes a single argument, a condition which must be fulfilled, without parentheses. Repeat functions the same way except that it loops when the given condition is false.[3]

:While condition
:body
:End

DS<( and IS>(

DS<( and IS>( are specialized conditionals that are similar in overall function to If statements. However, they have the unique property of changing the value of the given variable.

:DS<(variable,value)
:Command

Data types and variables

TI-BASIC is strongly and mostly statically typed. Most variables, besides lists and programs, have predefined names and allowed types. Each variable can usually only hold one data type, the exceptions are the numeric and all list variables which can hold either real or complex values.

Numeric

There are 27 numeric variables, A through Z, and θ.[2]: 28  These can hold two types of values, real and complex. All numbers are stored in the RAM as floating-point numbers with 14-digit mantissa, or significand, and an exponent range of -128 to 127. Complex numbers are stored as two consecutive reals.

List

Lists are also supported through the use of six built-in lists, and user created lists with up to five characters as the name. They are capable of holding up to 999 elements. A list may hold entirely real numbers or entirely imaginary numbers. Some functions in the calculator are able to operate over entire lists, via Array programming.

Matrix

Matrices are supported through the use of ten built-in matrices. Matrices do not support user created names or complex numbers.

Strings

There are ten built-in strings for storing variable text, named Str1 through Str0.

Other data types

The TI-83 family supports several more data types other than numeric, list, and matrix types: token based data, screen image data, and graph database data. These data types cannot be directly manipulated by TI-BASIC.

References

  1. ^ "TI-84 Plus". education.ti.com.
  2. ^ a b c d "TI-83 Plus Developer Guide" (PDF). Texas Instruments. Retrieved 15 April 2019.
  3. ^ "TI-83 Graphing Calculator Guidebook" (PDF). Texas Instruments. p. 16-11. Retrieved 12 October 2021.

Read other articles:

Artikel ini perlu dikembangkan dari artikel terkait di Wikipedia bahasa Inggris. (Desember 2023) klik [tampil] untuk melihat petunjuk sebelum menerjemahkan. Lihat versi terjemahan mesin dari artikel bahasa Inggris. Terjemahan mesin Google adalah titik awal yang berguna untuk terjemahan, tapi penerjemah harus merevisi kesalahan yang diperlukan dan meyakinkan bahwa hasil terjemahan tersebut akurat, bukan hanya salin-tempel teks hasil terjemahan mesin ke dalam Wikipedia bahasa Indonesia. Ja...

 

American politician Milton Andrew RomjueRomjue circa 1917Member of theU.S. House of Representativesfrom MissouriIn officeMarch 4, 1917 – March 3, 1921Preceded byJames Tilghman LloydSucceeded byFrank C. MillspaughConstituency1st districtIn officeMarch 4, 1923 – January 3, 1943Preceded byFrank C. MillspaughSucceeded bySamuel W. ArnoldConstituency1st district (1923–33)At-large (1933–35)1st district (1935–43) Personal detailsBorn(1874-12-05)December 5, 1874Macon County...

 

Italian footballer Thomas Manfredini Manfredinin with Atalanta in 2010Personal informationDate of birth (1980-05-27) 27 May 1980 (age 43)Place of birth Ferrara, ItalyHeight 1.80 m (5 ft 11 in)Position(s) Centre-backTeam informationCurrent team SP La Fiorita (manager)Senior career*Years Team Apps (Gls)1997–1999 SPAL 14 (0)1999–2005 Udinese 64 (2)2004 → Fiorentina (loan) 11 (0)2004–2005 → Catania (loan) 30 (3)2005–2013 Atalanta 134 (4)2005–2006 → Rimini (loan...

Cet article est une ébauche concernant une élection en France et les Vosges. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. 2008 2015 (départementales) Élections cantonales de 2011 dans les Vosges 15 des 31 cantons des Vosges 20 et 27 mars 2011 Type d’élection Élections cantonales UMP – Christian Poncelet Majorité départementale MPFDVDDVD Sièges obtenus 21  1 PS Opposition dépa...

 

For related races, see 1942 United States gubernatorial elections. 1942 Colorado gubernatorial election ← 1940 November 3, 1942 1944 →   Nominee John Charles Vivian Homer Bedford Party Republican Democratic Popular vote 193,501 149,402 Percentage 56.23% 43.41% County results Vivian:      50-60%      60-70%      70-80% Bedford:      50–60%    ...

 

1905 New York City elevated train derailment 1905 Ninth Avenue derailmentBeginning cleanup after the Ninth Avenue derailment; picture from the German Elektrotechnische Zeitschrift of November 2, 1905DetailsDateSeptember 11, 1905 7:05 AM [1]Locationabove West 53rd Street entering 50th Street stationCoordinates40°45′49″N 73°59′20″W / 40.7635°N 73.9890°W / 40.7635; -73.9890CountryUnited StatesLineIRT Ninth Avenue LineOperatorInterborough Rapid Transit ...

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (سبتمبر 2017) يفتقر محتوى هذه المقالة إلى الاستشهاد بمصادر. فضلاً، ساهم في تطوير هذه المقالة من خلال إضافة مصادر موثوق بها. أي معلومات غير موثقة يمكن التشكيك بها وإزالتها...

 

إيريك شميت (بالإنجليزية: Eric Emerson Schmidt)‏    معلومات شخصية اسم الولادة (بالإنجليزية: Eric Emerson Schmidt)‏  الميلاد 27 أبريل 1955 (69 سنة)[1]  واشنطن العاصمة[2][3][4]  الإقامة بلاكسبرغأثرتونواشنطن العاصمة  مواطنة الولايات المتحدة[5][6]  عضو في الأكاديم�...

 

This article does not cite any sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Izra lake – news · newspapers · books · scholar · JSTOR (February 2018) (Learn how and when to remove this template message) You can help expand this article with text translated from the corresponding article in Slovak. (February 2011) Click [show] for important trans...

† Человек прямоходящий Научная классификация Домен:ЭукариотыЦарство:ЖивотныеПодцарство:ЭуметазоиБез ранга:Двусторонне-симметричныеБез ранга:ВторичноротыеТип:ХордовыеПодтип:ПозвоночныеИнфратип:ЧелюстноротыеНадкласс:ЧетвероногиеКлада:АмниотыКлада:Синапсиды�...

 

A group of Shaivite temples in India Part of a series onShaivism DeitiesParamashiva(Supreme being) Shiva Sadasiva Bhairava Rudra Virabhadra Shakti Parvati Sati Durga Kali Ganesha Kartikeya Forms of Shiva Others Scriptures and texts Vedas Agama-Tantras Shivasutras Tirumurai Vachanas Svetasvatara Philosophy Three Components Pati Pashu Pasam Three bondages Anava Karma Maya other aspects 36 Tattvas Yoga Satkaryavada Abhasavada Svatantrya Aham Practices Vibhuti Rudraksha Panchakshara Bilva Maha Sh...

 

Italian cycling team MG.K vis Colors for PeaceTeam informationUCI codeMGKRegisteredItalyFounded2014 (2014)Discipline(s)RoadStatusUCI ContinentalKey personnelGeneral managerMaurizio FrizzoTeam manager(s)Angelo BaldiniDiego CecchiFloriano TorresiTeam name history201420152016201720182019–2020202120222023–Vega–Hotsand (VHS)[1]MG.Kvis Vega (VHS)[2]Norda–MG.K Vis Vega (NMG)[3]Sangemini–MG.K Vis (SAN)Sangemini–MG.K Vis–Vega (SMV)Sangemini–Trevigiani–MG....

2015 South Korean film by Woo Min-ho Inside MenTheatrical release posterHangul내부자들Hanja内部者들Revised RomanizationNaebujadeulMcCune–ReischauerNaebujadŭl Directed byWoo Min-hoWritten byWoo Min-hoBased onThe Insidersby Yoon Tae-hoProduced byLee Min-suStarringLee Byung-hun Cho Seung-woo Baek Yoon-sikCinematographyGo Nak-seonEdited byKim Sang-bum Kim Jae-bumDistributed byShowboxRelease date November 19, 2015 (2015-11-19) Running time130 minutes 180 minutes (director...

 

弗雷德里克·齊盧巴Frederick Chiluba第2任赞比亚总统任期1991年11月2日—2002年1月2日副职利维·姆瓦纳瓦萨前任肯尼思·卡翁达继任利维·姆瓦纳瓦萨 个人资料出生(1943-04-30)1943年4月30日北罗得西亚基特韦逝世2011年6月18日(2011歲—06—18)(68歲) 尚比亞卢萨卡(Lusaka)墓地 尚比亞卢萨卡使館公園總統陵園(英语:Embassy Park Presidential Burial)国籍赞比亚政党多黨民主運動(MMD)...

 

تاريخ بنغلاديشالتأثيراتأحد جوانب بنغلاديش فرع من تاريخ آسيا تعديل - تعديل مصدري - تعديل ويكي بيانات تاريخ آسيا الجنوبية و تاريخ الهند العصر الحجري 70,000–3300 ق. م · ثقافة مهرغاره · 7000–3300 ق. م حضارة وادي السند 3300–1700 ق. م ثقافة هارابان المتأخرة 1700–1300 ق. م العصر الفيدي 1500–500 ق. م · ...

2016年美國總統選舉 ← 2012 2016年11月8日 2020 → 538個選舉人團席位獲勝需270票民意調查投票率55.7%[1][2] ▲ 0.8 %   获提名人 唐納·川普 希拉莉·克林頓 政党 共和黨 民主党 家鄉州 紐約州 紐約州 竞选搭档 迈克·彭斯 蒂姆·凱恩 选举人票 304[3][4][註 1] 227[5] 胜出州/省 30 + 緬-2 20 + DC 民選得票 62,984,828[6] 65,853,514[6]...

 

Der Kaiser von AtlantisOpera by Viktor UllmannA scene from the first performance at Terezin, where the opera was composed in the concentration camp in 1943, performed on 23 May 1995Descriptionlegend in four scenesTranslationThe Emperor of AtlantisLibrettistPeter KienLanguageGermanPremiere16 December 1975 (1975-12-16)De Nederlandse Opera, Amsterdam Der Kaiser von Atlantis oder Die Tod-Verweigerung (The Emperor of Atlantis or The Disobedience of Death) is a one-act opera by Vikt...

 

Chronologies Données clés 1658 1659 1660  1661  1662 1663 1664Décennies :1630 1640 1650  1660  1670 1680 1690Siècles :XVe XVIe  XVIIe  XVIIIe XIXeMillénaires :-Ier Ier  IIe  IIIe Chronologies thématiques Art Architecture, Arts plastiques (Dessin, Gravure, Peinture et Sculpture), (), Littérature (), Musique (Classique) et Théâtre   Ingénierie (), Architecture et ()   Politique Droit et ()   Religion (,)   Sci...

USGS image Graben atau slenk adalah hasil dari patahan pada kulit bumi yang mengalami depresi dan terletak di antara dua bagian yang lebih tinggi. Bagian yang lebih tinggi disebut dengan horst. Beberapa nama graben yang terkenal: Danau Baikal, Siberia, Rusia Graben Lambert, Antartika Lembah Sungai Saguenay, Quebec, Kanada Referensi McKnight, Tom L; Hess, Darrel (2000). The Internal Processes: Graben. Physical Geography: A Landscape Appreciation. Upper Saddle River, NJ: Prentice Hall. hlm....

 

Saint-ÉtienneNama lengkapAssociation Sportive de Saint-Étienne LoireJulukanLes Verts (hijau), Sainté ASSEBerdiri1919; 105 tahun lalu (1919)StadionStadion Geoffroy-Guichard(Kapasitas: 42.000[1])KetuaBernard Caiazzo Roland RomeyerManajerÓscar García JunyentLigaLigue 12018–19Ligue 1, 4thSitus webSitus web resmi klub Kostum kandang Kostum tandang Kostum ketiga Musim ini Association Sportive de Saint-Étienne Loire (pengucapan bahasa Prancis: [asɔsjasjɔ̃ spɔrtɪv ...