nolonline

48 Reputation

2 Badges

15 years, 206 days

MaplePrimes Activity


These are answers submitted by nolonline

Thanks again pagan:)

I'm trying to do now a program that does the same thing as GaussianElimination but im still trying to figure out where i messed up :), maybe i'll post it later if i cant fix it.

Thank you.

Thank you very much pagan I appreciate your help :)

thanks pagan

but there is still a problem everytime i restart the procedure i get a new matrix, its re-adding the i row to the j row, is this normal or its something wrong i did?

 

Thanks alot Joe, this really helped me. I may have more questions later on :)

Thanks again.

i dont know why the post turned out like this, im new in this forum.
so im trying to make a program that return a vector whose elements are the sum of the matrice element of each row. i tried 2 things:one returns a vector but added all the matrice elements not of each row, the other gives me an error Bad index into Matrix


first program


sommeligne := proc (matrice)
local n, m, j, i, resultat;
n, m := Dimension(matrice);
resultat := 0;
for j to m do
for i to n do
resultat := resultat+matrice[i, j]
end do
end do;
return Vector(m, resultat)


second program

sml := proc (matrice)
local n, m, resultat, i;
 n, m := Dimension(matrice);
resultat := 0;
for i to m do
resultat := sum(matrice[k, i], k = 1 .. n) <br />
end do
end proc
 

Page 1 of 1