ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 29 Oct 2015 09:17:20 +0100runs in Octave (tested) but not SageMathCloud (errors)https://ask.sagemath.org/question/30334/runs-in-octave-tested-but-not-sagemathcloud-errors/Hi, this is my assignment in numerical mathematics, this runs in Octave
but unfortunately not in SageMath, can someone see what the problem is?
See the SageMathCloud worksheet
https://cloud.sagemath.com/projects/666fc8f9-8619-46f9-b41d-c85afdef2169/files/2015-10-29-090250.sagews
Here is the code
# a)
function y=f(x)
y=3/(2+x)
endfunction
function a=p(x)
y1=x^2
y2=x
y3=1
a=[y1,y2,y3]
endfunction
# b)
# Stützstellen vector x
x=[-1 0 1]
f(x(1))
f(x(2))
f(x(3))
# Anzahl der Stützstellen bestimmer
d=length(x)
A=zeros(d,d)
for i=1:3
A(i,:)=p(x(i))
endfor
b=zeros(3,1)
for i=1:3
b(i)=f(x(i))
endfor
b
[L,U,P] = lu(A)
invL=inv(L)
y=invL*P*b
invU=inv(U)
z=invU*y
A*z
b
thethaThu, 29 Oct 2015 09:17:20 +0100https://ask.sagemath.org/question/30334/plot in Octavehttps://ask.sagemath.org/question/23242/plot-in-octave/To add context as requested by kcrisman, I am using Octave in Cloud.Sagemath.com running scripts in .m files.
How does one plot in Octave? Supposedly the command should be the same as in Matlab, e.g.
x = 1:10;
figure, plot(x,x.^2)
However, nothing showed up in the terminal. Please help.HansMon, 07 Jul 2014 04:50:03 +0200https://ask.sagemath.org/question/23242/Debugging environment and GUIhttps://ask.sagemath.org/question/11072/debugging-environment-and-gui/Is there a debugging GUI/environment within SageMathCloud where one can set breakpoints and step through code across different files, for Sage and Octave?HansSun, 15 Jun 2014 12:24:26 +0200https://ask.sagemath.org/question/11072/