The math engine offers a range of features, including calculation with real and
complex numbers,
units of measurement, custom variables, functions and macros,
numerical methods for
interpolation,
root finding,
function extrema,
numerical differentiation and
integration,
vector and
matrix calculations, plotting etc. It supports reading and writing external data from and to text and
CSV files and
Excel spreadsheets. Calcpad is widely used in practical engineering and education. The programming language is
interpreted with partial
compilation (to
IL) of repeatedly executed code, like functions and loop bodies. It includes simple
program flow control structures like
conditions and
loops. The program code can be organized across multiple files (modules). Calcpad can interact with
Python through a dedicated
programming interface. With the help of an extra plugin, developed by Damian Pacheco in 2025, the Calcpad language can be used inside
Grasshopper/
Rhino. Calcpad allows generation of
HTML forms for data input. Text entries in code must be enclosed in quotes, and everything outside is assumed to be math equations. Text formatting can be performed by either
Markdown or HTML/
CSS. The results are automatically documented into HTML reports. With the help of
JavaScript the report content can be made dynamic and interactive. Users can also create parametric vector drawings and even animations, by plugging Calcpad variables into the coordinates of
SVG elements. The output can be exported also to
PDF or
DOCX files for
Microsoft Word. == Code examples ==