The DME Calculator 3.1.0
You can use the DME Calculator e.g. for simply adding numbers. Compared to the builtin 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*a This 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 ), sum In 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) ), sum By 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[i1] = 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^nprinc*(x^n1)/(x1), data[n] = if(curval>0; curval; 0), year[n] = n/12 ), sat = if(princstart*x+start<0; 'Principal portion too low, minimum amount: '+str(start*xstart; 5; 4); str(log(princ/(princstart*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 builtin functions. Below you can find a more complete list of all features.
SHARE THIS SOFTWARE
Related softwares

