The DME Calculator, a Free Alternative to the Windows Calculator or Rather a Programming Language?
Directly go to the download here...
The DME calculator is an advanced calculator for Windows. It is a part of the program package for controlling our instruments. However, in its basic version it can be of use for anyone who wishes to make calculations with a PC or wishes to solve somewhat more complex problems without having to use a large spreadsheet program package. The DME calculator fits nearly on a diskette (about 2 MB) and starts without any notable waiting time. Since version 3, the calculator has a built in Graphical User Inteface (GUI) editor. This allowes easy creation of dialog windows with buttons, scroll bars and edit files which then can be interactively controlled by the user program.
You can use the DME Calculator e.g. for simply adding numbers. Compared to the built-in Windows calculator it has the advantage of a large field for entering so you can see all numbers and afterwards easily find errors etc.
For more complex calculations, you can enter the whole expression as e.g. sin(pi()/4)^2 (Result is 0.5).
The calculator also handles variables and accepts several expressions after another, the expressions should be separated by a comma,
a=5, 3*aThis will return the result of the last expression, in this case 15.
Furthermore, the calculator understands functions known from programming languages such as for, while and if. To add all numbers from 1 to 100, just enter:
sum=0, for(i=1;i<=100;i+=1; sum += i ), sumIn this example, the variable i counts from 1 to 100 and every time is added to the variable sum. As in the example above, the last expression returns the result; in this case the number 5050. The next example afterwards shows all the subtotals:
sum=0, for(i=1;i<=100;i+=1; sum += i, println(sum) ), sumBy means of the function print or println a separate window is opened, containing the result. The last example shows the subtotals graphically:
sum=0, for(i=1;i<=100;i+=1; sum += i, results[i-1] = sum ), plotxy(0;0;0;results)The functions plot and plotxy will open in a separate window with the graphics. Titles can be entered, and the result can be exported as vector graphics to another program. In contradistinction to plotxy, plot directly evaluates a function over an specified range, i.e. plot(0;0;x;sin(x);0;2*pi();200) shows the function sin(x) and, wherein x goes from 0 to 2 Pi.
Now follows s practical example from the interest and principle calculation of loans (If this is not the right formulation, you are welcome to send me a mail). The following program displays a two dimensional plot of the credit amount via year. It also calculates, after what time the credit will be satisfied. To run the program, just copy it from the browser window into the DME Calculator window.
start=100000, /* amount of loan */ interest=6, /* interest rate */ princ=700, /* principal, monthly */ x=(interest/1200+1), for(n=0;n<12*30;n+=1; curval = start*x^n-princ*(x^n-1)/(x-1), data[n] = if(curval>0;curval;0), year[n] = n/12 ), sat = if(princ-start*x+start<0; 'Principal portion too low, minimum amount: '+str(start*x-start;5;4); str(log(princ/(princ-start*x+start))/log(x)/12;5;3)+' years' ), plotxy(0;0;year;data), plotaxis(0;'Years';'Amount'), 'Satisfied after: '+sat
The calculator can do much more and contains several built-in functions. Below you can find
a more complete list of all features.
You can find the DME Calculator here: dmecalcinst.zip, Version 3.1.0 (Size app. 1.5 MB). The program works under all present Windows operating systems (it may also run under older Windows 98 and earlier, but this has not been tested)
To install the program run the dmecalcinst.exe. The installation contains a .PDF file with a guide in English as well as the actual program files and some examples.
Have fun with it!