Installing GNU Octave on Mac
GNU Octave is a high-level language primarily intended for numerical computations. Here I’ll show “how to” doc to start using Octave on Mac.
Installing with Brew
brew update
brew install octave
If you have issues during installation you could run this command:
brew reinstall octave
It will be installed somewhere here:
/usr/local/Cellar/octave/6.3.0
Start in CLI mode: ‘octave’
octave
GNU Octave, version 6.3.0
Copyright (C) 2021 The Octave Project Developers.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. For details, type 'warranty'.
Octave was configured for "x86_64-apple-darwin18.7.0".
Additional information about Octave is available at https://www.octave.org.
Please contribute if you find this software useful.
For more information, visit https://www.octave.org/get-involved.html
Read https://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.
octave:1>
Start in GUI mode
octave --gui
GUI will look like this:

Sample code
>> fx = @(t) cos (t);
>> fy = @(t) sin (t);
>> fz = @(t) t;
>> ezplot3 (fx, fy, fz, [0, 10*pi], 100);
Result:

Links to sources: