PlanetMath (more info)
 Math for the people, by the people.
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
BASIC (Definition)

BASIC (an acronym for Beginner's All-purpose Symbolic Instruction Code) is a computer programming language designed by John Kemeny and Thomas Kurtz in the 1960s to be easily learned by anyone. Over the years, various companies made their own proprietary versions and included them in their computers (and even Texas Instruments made their own version, TI-BASIC, which is included in some of their calculators). Microsoft's Visual Basic is the programming language of choice for in-house programming at small businesses. But in mathematics and physics, BASIC is little used outside of the classroom.

The following BASIC program takes two integers as inputs and outputs their greatest common divisor using Euclid's algorithm:

100 REM Program Greatest Common Divisor Using Euclidean algorithm
110 INPUT "Please enter a \htmladdnormallink{positive}{http://planetmath.org/encyclopedia/Negative.html} integer A"; A
115 INPUT "Please enter a positive integer B"; B
120 WHILE B > 0
121 TEMPA = B
122 A = B
123 B = TEMPA MOD B
124 WEND
130 PRINT "The GCD is "; A
140 END



Anyone with an account can edit this entry. Please help improve it!

"BASIC" is owned by PrimeFan. [ full author list (2) ]
(view preamble)

View style:

Other names:  Beginner's All-purpose Symbolic Instruction Code

Cross-references: positive, Euclid's algorithm, greatest common divisor, integers, calculators, Texas Instruments, even, language
There are 4 references to this entry.

This is version 3 of BASIC, born on 2007-03-04, modified 2007-03-09.
Object id is 9021, canonical name is BASICProgrammingLanguage.
Accessed 180 times total.

Classification:
AMS MSC68N15 (Computer science :: Software :: Programming languages)

Pending Errata and Addenda
None.
Discussion
Style: Expand: Order:
forum policy
BASIC linking policy by PrimeFan on 2007-03-04 16:54:04
I've put in a linking policy that forbids the autolinker from linking from any top-level MSC (00-xx through 97-xx) and permits only from 68N15. Let me know if there remain any unintentional links.
[ reply | up ]

Interact
rate | post | correct | update request | add derivation | add example | add (any)