Jump to content

User:Duplode/Offending GeSHi block

From Wikibooks, open books for an open world

# Octave commands for _Linear Algebra_ by Jim Hefferon, # Topic: leontif.tex a=[(25448-5395)/25448 -2664/30346; -48/25448 (30346-9030)/30346]; b=[17589; 21243]; ans=a \ b; printf("The answer to the first system is s=%0.0f and a=%0.0f\n",ans(1),ans(2)); b=[17489; 21243]; ans=a \ b; printf("The answer to the second system is s=%0.0f and a=%0.0f\n",ans(1),ans(2)); # question 1 b=[17789; 21243]; ans=a \ b;


# Octave commands for _Linear Algebra_ by Jim Hefferon,
#  Topic: leontif.tex 
a=[(25448-5395)/25448  -2664/30346;
    -48/25448          (30346-9030)/30346];
b=[17589;
   21243];
ans=a \ b;
printf("The answer to the first system is s=%0.0f and a=%0.0f\n",ans(1),ans(2));
b=[17489;
   21243];
ans=a \ b;
printf("The answer to the second system is s=%0.0f and a=%0.0f\n",ans(1),ans(2));
# question 1
b=[17789;
   21243];
ans=a \ b;