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.

Featured sample program

Featured sample program: star_field.bas

'x     0           'array subscripts
'y     1
'z     2        
'zvel  3         'velocity

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


Posted by an anonymous user


Subscribe to SmallBASIC RSS

User login

Recent comments