%path = "maths/vectors/matrix/cakes"
%kind = kinda["problems"]
%level = 11
%include('r.a0',withnr=False)
%units=['Butter','Flour','Eggs','Jam']
%kinds=['Sacher','Linzer','Biskuit']
|
%for n in kinds:
{{n}} |
%end
%for i,k in enumerate(units):
{{k}} |
%for v in T(g.RR)[i]:
{{v}} |
%end
%end
For a party the above table shows the missing ingredients for the planned types of cakes
Here are numbers planned for each type:
%for i,n in enumerate(kinds):
{{n}} |
{{ g.CC[i] }} |
%end
Interpret the numbers as vectors in the vector space of cakes.
Transform to the vector space of ingredients by doing a matrix multiplication.
How many eggs must be bought?
%chq(0)
Afterwards transform to the vector space of cost by another Matrix multiplication
with the following unit prices (price matrix).
%for u in units:
{{u}} |
%end
%for m in g.PP:
{{m}} |
%end
How much money is needed to do the shopping?
%chq(1)