BASICcalc

By Malcolm McLean Homepage
BASICcalc is a programmable calculator.
The executable is here

Simply enter an expression in the top box, and press "Go" to evaluate it.

However you can also define your own functions, using the MiniBasic interpreter.

The input stream is set up with

<Number of arguments>
{each argument }

On output, print the result of the calculation , or a non-number to signal that there is a an error.

For example, if we want to calculate the mean of a series of numbers,

9 REM input number of arguments
10 INPUT N
19 REM illegal to try to calculate the mean of an empty arguemnt list 
20 IF N = 0 THEN 100
30 LET total = 0
40 FOR i = 1 TO N
49 REM get the arguments from the input stream
50 INPUT x
60 LET total = total + x
70 NEXT i
79 REM now do the result
80 PRINT total / N
90 GOTO 110
99 REM flag error here
100 PRINT "Error, no arguements"
110 REM end
Try out some scripts
clamp.bas
stdev.bas
lerp.bas
vlen.bas

Send your own functions to regniztar@btinternet.com . Only if I get comments on BASICcalc can I make it better.

BASICcalc is open source.

Code files

BASICcalc.c
calcbasic.h
calcbasic.c
evaluate.h
evaluate.c
programs.h
programs.c
FileDlg.h
FileDlg.c

Resources

resource.h
resource.rc
icon1.ico

Zip file here
BASICcalc.zip