sh
Math for Modelers
ne
la
tz
Real exam 2023…..latest update
sh
Sp
ne
1. Joanne sells silk-screened t-shirts at a community festival. Her Marginal cost to produce one t-shirt is
la
$3.50. Her total cost to produce 60 t-shirts is $300, and she sells them for $7 each. Use Python to
graph this information and determine the number of t-shirts Joanne must produce and sell to break
sh
even.
Sp
ne
So the equation to solve is
la
7x = 3.5x + 90
tz
Solve for x to find the breakeven number of shirts:
sh
3.5x = 90
Sp
x = 25.7
ne
At least 26 shirts should be produced
la
Python Graph:
sh
Sp
ne
la
tz
sh
Sp
ne
la
sh
Sp
ne
(25.7, 180)
la
tz
sh
Sp
ne
la
sh
Sp
Python Code:
ne
# import the matplotlib module
a
import matplotlib.pyplot
tz
from matplotlib.pyplot import *
l
sh
# import the numpy module
Sp
import numpy
ne
# import linspace
la
from numpy import linspace
# assign the variables
sh
Sp
x= linspace(0,50,100)
la
Sp
,Sp Sp Sp Sp Sp Sp
la l
a la la la z= 7*x
figure()
la
y= 3.5*x + 90
sh sh sh sh sh sh
# bring in the chart
# plot the y equation
ne ne ne ne ne ne
tz tz tz tz tz
Sp Sp Sp SpSp
la la la la la
sh sh sh sh sh
ne ne ne ne ne
, ne
plot(x,y)
sh
# plot the z equation
ne
plot(x,z)
# add legend
la
legend (('cost','revenue'),loc=2)
tz
sh
# add chart title
Sp
title('Breakeven Analysis T-Shirts')
ne
# show chart
la
show()
sh
2. A Rent-A-Truck company plans to spend $14 million on 280 new vehicles. Each commercial van will
Sp
cost $55,000, each small truck $20,000, and each large truck $70,000. Past experience shows that
ne
they will need twice as many vans as small trucks. How many of each vehicle can they buy?
la
tz
Variables
sh
V = vans, S = small truck, L = large truck
Sp
New vehicle totals: V + S + L = 280
ne
Spend: 55,000V + 20,000S + 70,000L = 14,000,000
la
Twice as many vans: V = 2S
sh
Equations in proper form:
Sp
V + S + L = 280
ne
55,000V + 20,000S + 70,000L = 14,000,000
la
V – 2S = 0
tz
sh
Insert into Matrix and reduce using Echelon:
Sp
ne
V S L Z
la
1 1
[ ]
55,000 20,000 70,000 14,000,000
sh
11 −2 0 0
Sp
280
ne
la
R2 = R1 (-55,000) + R2
tz
R3 = R1 (-1) + R3
[ ]
sh
Sp
1 1 1 280
ne
0 −35,000 −15,000 −14,000,000
−3 −1 −280
la
1
sh
Sp
R2 = R2 (-1/35,000)
[ ]
ne
1 1 1 280
0 1 −3/ 7
a
40
tz
1 −3 −1 −280
l
sh
Sp
ne
R1 = R2 (-1) + R1
la
R3 = R2 (3) + R3
sh
Sp
la
Sp