Mathly for Lua is a Lua module that turns Lua into a tiny, portable, free but powerful MATLAB and more. It provides a group of commonly used MATLAB functions and features, including linspace, zeros, ...
If Windows is your preferred operating system, consider these open-source apps. There are numerous open-source apps available for almost any task. These are all free to install and use on Windows.