CoCalc Shared Filessupport / 2016-09-27-102629-octave.sagewsOpen in CoCalc with one click!
Author: William A. Stein
License: GNU General Public License v3.0
Description: Examples for support purposes.

Thanks to Hal Snyder, SageMathCloud Sage worksheets now use the Jupyter Octave Kernel to implement octave mode. It's much, much more robust than what was used before!

%auto %default_mode octave
ans = 7.3945
function result = factorial( n ) if( n == 0 ) result = 1; return; else result = prod( 1:n ); endif endfunction
ans = 1.7112e+98
x = linspace(0, 2*pi, 100); y = sin(x); plot(x, y);