%path = "maths/vectors/matrix/cakes" %kind = chindnum["problems"] %level = 11 %include('r.a0') %units=['Butter','Flour','Eggs','Jam'] %kinds=['Sacher','Linzer','Biskuit'] %for n in kinds: %end %for i,k in enumerate(units): %for v in T(chiven.RR)[i]: %end %end
{{n}}
{{k}} {{v}}
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): %end
{{n}} {{ chiven.CC[i] }}
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: %end %for m in chiven.PP: %end
{{u}}
{{m}}
How much money is needed to do the shopping? %chq(1)