Sharedsupport / 2016-09-27-102629-octave.sagewsOpen in CoCalc
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
det(randn(10))
ans = 7.3945
function result = factorial( n )
    if( n == 0 )
        result = 1;
        return;
    else
        result = prod( 1:n );
    endif
endfunction
factorial(69)
ans = 1.7112e+98
x = linspace(0, 2*pi, 100);
y = sin(x);
plot(x, y);