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
'ox

First Factors MGA.bas


Title: First Factors
Description:

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

SVirjee_fractal_1.bas


'Written for Smallbasic
'Aug 2013 - S Virjee
centerx = xmax / 2
centery = ymax / 2
iter = 20
zoom = 2.8
p=-.745
q=.113
rect xmin,ymin, xmax, ymax color 1 FILLED
oldi=1
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

fibanacci3.bas

Posted by an anonymous user

Pages

Subscribe to SmallBASIC RSS

User login

Recent comments