REMcalc 1.1: Arrays, Functions and Curves in BASIC
The new version gives BASIC tasks what they missed most: arrays, functions you can call in an expression, lines and curves on the screen, and a graph the task sets up by itself. Programs become shorter and easier to read – and they can take you all the way to the Riemann zeta function. On top of that: a new Waves and Optics library, antennas in the Electrical Engineering library and fixes to the sound modules.
Download REMcalc 1.1 If you have REMcalc 1.0, the Help → Check for New Version menu will offer you the new version too.
Why we enjoy mathematics, and what a rainwater filter has in common with prime numbers, is the subject of the essay R for Reality, Riemann and Reload.
Four examples
local.
line, and why the tree does not work without local.
curve command.
plot equal, series names
in the legend and a dashed line using plot n, break.BASIC
- Arrays.
dim x(32), z(8, 8)– elements numbered from 1, complex numbers allowed; reading and writingx(k),z(r, c);len(x)returns the number of elements;dim r = (10; 22; 47)creates an array with initial values. An index out of range reports an error with the line number. In the Free edition a single array can hold up to 2,500 elements, in Pro up to a million. - Functions in expressions. You call a
def … enddeffunction just like a built-in one:t = usek(x, y, u, v), even inifandprint. Parameters are passed by value; helper variables are markedlocaland restored on return. A function may call itself. Thecallstatement from EMcalc still works unchanged. - Lines and curves on the screen.
line number, x1, y1, x2, y2, colour, thicknessand the parametric curvecurve number, x(t), y(t), t = a..bin the object layer;moveshifts a whole line. - Graph from the task.
plot equalandplot normal(equal scaling of the axes),plot n, break(a break in the line),plot name n, "text"(series name in the legend); series can be created in any order. - Systems of equations with coefficients from variables.
equ i1, i2lists the unknowns; the other variables in the equations are coefficients – impedances, for example:z11*i1 + z12*i2 = u. - Small things. Function arguments can also be separated by a comma (
max(a, b);1,5without a space is still a decimal number); output formats with a sign and leading zeros (%+.2f,%08.2f);inputwith a complex default value;resetat the start of a task keeps the values passed to the task from outside.
Libraries
- Waves and Optics (new) – photon reflections on elliptical and parabolic mirrors and in a Cassegrain antenna, refraction of light, Snell's law and Fermat's principle.
- Electrical Engineering – antennas and Yagi antennas (analysis and design), matching and the Smith chart. Thanks to arrays and functions the tasks are much shorter: Yagi went from 836 to 220 lines.
- Mathematics Demos – a new category Riemannova zeta funkce (Riemann zeta function): the complex plane, zeros on the critical line, the Euler product, and prime numbers with the logarithmic integral.
Sound
- The Microphone and Chladni Plate windows play through the device selected in the Sound window (Output:).
- The Chladni Plate frequency slider goes up to 20 kHz (up to 2 kHz in the Free edition).
- Save WAV… can also save just the checked tracks.
- A mix opened in the Free edition loads tracks up to the edition's limit and tells you how many it left out.
- In English, the note H is called B.
The installer and the program are digitally signed by EMDAT s.r.o. The Free edition costs nothing, and all the examples on these pages run in it. The history of all releases is in What's new; send your ideas and questions to the Community.