s=0;
for n=999999:-1:1
s+=1/(n*(n+1))
end
s
s=0;
for n=1:999999
s+=1/(n*(n+1))
end
s
tobin(a,b,d)
, that prints the first digits of the binary expansion of . Assume, that and they are integers.x=solve22(A,b)
, that computes the solution of the linear system, for , invertible matrices.x=lsolve(A,b)
, that computes the solution of the linear system, for quadratic, lower triangular matrices. You may assume, that is invertible.x=usolve(A,b)
, that computes the solution of the linear system, for quadratic, upper triangular matrices. You may assume, that is invertible.