If anyone here is bored

Back by popular demand!!!
Post Reply
sw337
Sergeant
Sergeant
Posts: 368
Joined: Fri Jun 22, 2007 5:21 pm
STEAM: ferriman1

function P=pivoteer(M,pivotrow,pivotcolumn)

element=M(pivotrow,pivotcolumn)
for i=1:length(M(pivotrow,:))
M(pivotrow,i) = M(pivotrow,i)/element
end

for i=1:length(M(:,1))
fact=M(i,pivotcolumn)
for j=1:length(M(1,:))
if i<>pivotrow
M(i,j)=M(i,j)-(fact*M(pivotrow,j))
end
end
end
P=M
endfunction
try staring at this for an hour and you will redefine boreness :lol:
Image
User avatar
IceT-Bag
[22ndSAS] Server Admin
[22ndSAS] Server Admin
Posts: 1959
Joined: Wed Jun 09, 2004 9:46 am
STEAM: icetbag
ORIGIN: IceTBag
UPLAY: IceT-Bag
Location: UK

Working with pivot tables in excel?
The best defence against software piracy is producing a game worth buying.
sw337
Sergeant
Sergeant
Posts: 368
Joined: Fri Jun 22, 2007 5:21 pm
STEAM: ferriman1

in scilab :)

something like a self programmable "calculator"
Image
Post Reply