Decimal BASIC includes some elementary algorithms as sample programs.
Sample programs are contained in some subfolders of the BASIC system folder.
You can extract those from the archive for windows located
here,
if those are not found in your computer.
Prime Numbers | |
---|---|
Sieve of Eratosthenes | MATH\ERATOS.BAS |
Fermat's Test | SAMPLE\FERMAT2.BAS |
Gaussian Prime | SAMPLE\GAUSSPR2.BAS |
Euclidean Algorithm | |
Algorithm using repetition | MATH\GCDLOOP.BAS |
Algorithm using recursion | SAMPLE\GCD.BAS |
Finding x, y such as ax + by = GCD(a, b) | SAMPLE\EUCLID.BAS |
Issues on Number Theory | |
Egyptian Fractions | MATH\EGYPT.BAS |
recurring period | MATH\RECURING.BAS |
Collatz Conjecture | SAMPLE\COLLATZ.BAS |
Kaprekar Number | SAMPLE\6174.BAS |
Amicable Numbers | SAMPLE\AMICABLE.BAS |
Sweeping Method in Linear Algebra | |
Solving Simultaneous Equations | MATH\SWEEPING.BAS |
Finding Inverse Matrix | SAMPLE\INVMAT1.BAS |
Finding Determinants | SAMPLE\DETERM1.BAS |
Rank of a Matrix | SAMPLE\RANK.BAS |
Approximation of a solution of an equation | |
Bisection Method | MATH\BISECTIO.BAS |
Newton's Method | MATH\NEWTON.BAS |
Repetition Method | MATH\ITERATI.BAS |
Series Expansion | |
Sine, Cosine, Tangent | LIBRARY\TRIGONOM.LIB |
Exponential | LIBRARY\EXP.LIB |
Logarithmic | LIBRARY\LOG.LIB |
Description Statistics | |
Mean, Variance, Standard Deviation | SAMPLE\STAT1.BAS |
Covariance, Correlation | SAMPLE\STAT2.BAS |
Sorting | |
Insertion Sort | MATH\INS_SORT.BAS |
Selection Sort | MATH\SEL_SORT.BAS |
Merge Sort | SAMPLE\MER_SORT.BAS |
Quick Sort | LIBRARY\SORT1.LIB |
Combination Generating | |
Permutation Generation | SAMPLE\PERMUTAT.BAS |
Combination Generation | SAMPLE\COMBINAT.BAS |
Partition of a Natural Number | SAMPLE\PARTITIO.BAS |
Graph Theory | |
Traversable Path(Euler Path) | SAMPLE\EULER.BAS |
Sequence of Vertex Degrees | SAMPLE\GRAPH.BAS |
阿弥陀 lot | SAMPLE\AMIDA1.BAS |
Graphics | |
Turtle Graphics | SAMPLE\TURTLE2.BAS |
3D Graphics | SAMPLE\3DVIEW1.BAS |
Koch Curve | FRACTAL\KOCH.BAS |
and others | |
Syntax Analyzing | |
Evaluation of a numeric expression | SAMPLE\INTERPRE.BAS |