Welcome to SmallBASIC

SmallBASIC is a fast and easy to learn BASIC language interpreter ideal for everyday calculations, scripts and prototypes. SmallBASIC includes trigonometric, matrices and algebra functions, a built in IDE, a powerful string library, system, sound, and graphic commands along with structured programming syntax.

SmallBASIC version 0.11.17 (ubuntu) has been released


SmallBASIC version 0.11.17 for Ubuntu is now available.


This is the first release of a new port using SDL2

The package includes both 16 and 32 bit binaries.

This version is very similar in operation to the Android version and shares much of the same code.

First Factors MGA.bas

Title: First Factors

Category: Mathematics
Copyright: MGA
Created: 10/19/14
GIST: https://gist.github.com/anonymous/3d14881f261cb5be0d3b

'First Factors MGA.BAS 10/19/14
'modified 10/24/14 with screen displays improvement a neat general code tip!
' for email to SmallBASIC crew


'Written for Smallbasic
'Aug 2013 - S Virjee
centerx = xmax / 2
centery = ymax / 2
iter = 20
zoom = 2.8
rect xmin,ymin, xmax, ymax color 1 FILLED
pqsq = (p*p + q*q)
L = (sqr(p*p + q*q) - 1/iter)*(sqr(p*p + q*q) - 1/iter)
H = (sqr(p*p + q*q) + 1/iter)*(sqr(p*p + q*q) + 1/iter)

for x = -centerx to centerx


Subscribe to SmallBASIC RSS