exam2 + remaining files of the semester

This commit is contained in:
2022-01-08 23:53:49 +01:00
parent 5a31fc8f33
commit e4cf7b7910
32 changed files with 41546 additions and 1 deletions

2405
Exam1/Exam1_Solution.ipynb Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,22 @@
using Printf
include("jlFiles/printmat.jl")
println("Three ways of doing the same thing")
fp = [1 2;
1.1 2.1]
x1 = fp*10 #easiest and fastest
printmat(x1)
x2 = map(i->fp[:,i]*10,1:2) #cumbersome
x2 = hcat(x2...)
printmat(x2)
x3 = zeros(size(fp)) #even more cumbersome
for i=1:size(fp,1),j=1:size(fp,2)
x3[i,j] = fp[i,j]*10
end
printmat(x3)