economics

Import it with @use:economics, then call its constructs under that name.

Pack
Supply and demand crossing at E with the teal consumer and orange producer surplus triangles beneath and above the price, a grey dashed taxed supply curve, the buyer’s and seller’s prices ruled across, and a red deadweight loss triangle between them.Supply and demand crossing at E with the teal consumer and orange producer surplus triangles beneath and above the price, a grey dashed taxed supply curve, the buyer’s and seller’s prices ruled across, and a red deadweight loss triangle between them.
@use:economics

#Constructs

economics.supply-demand
Supply and demand crossing, with the equilibrium marked and dropped to both axes.
A blue upward-sloping supply curve S and a red downward-sloping demand curve D crossing at the equilibrium E, quantity 5 and price 6, with grey dashed lines dropped from it to both axes.A blue upward-sloping supply curve S and a red downward-sloping demand curve D crossing at the equilibrium E, quantity 5 and price 6, with grey dashed lines dropped from it to both axes.
a
The supply curve's price intercept, in p=a+bqp = a + bq.
Default1
b
The supply curve's slope, in p=a+bqp = a + bq.
Default1
c
The demand curve's price intercept, in p=c−dqp = c - dq.
Default11
d
The demand curve's slope, in p=c−dqp = c - dq.
Default1
qmax
The quantity both curves are drawn out to.
Default10
label
The equilibrium point's label.
inline
Default$E$
supply-label
The supply curve's label.
inline
Default$S$
demand-label
The demand curve's label.
inline
Default$D$
price-label
The dashed segment's label on the price axis.
inline
Default$p^*$
quantity-label
The dashed segment's label on the quantity axis.
inline
Default$q^*$
colour
The equilibrium point and the dashed segments' colour.
paint
Defaultgrey
supply-colour
The supply curve's colour.
paint
Defaultblue
demand-colour
The demand curve's colour.
paint
Defaultred
economics.demand-shift
Demand shifted, drawn dashed over the original with the new equilibrium marked: by is how far up the price axis the whole curve moves, positive for an increase in demand.
Supply and demand crossing at E, with an orange dashed demand curve shifted up by 3 and the new equilibrium E′ further right and higher.Supply and demand crossing at E, with an orange dashed demand curve shifted up by 3 and the new equilibrium E′ further right and higher.
a
The original supply curve's price intercept, in p=a+bqp = a + bq.
Default1
b
The original supply curve's slope, in p=a+bqp = a + bq.
Default1
c
The original demand curve's price intercept, in p=c−dqp = c - dq.
Default11
d
The original demand curve's slope, in p=c−dqp = c - dq.
Default1
by
How far up the price axis demand shifts, positive for an increase in demand.
Default3
qmax
The quantity the shifted curve is drawn out to.
Default10
label
The shifted demand curve's label.
inline
Default$D'$
point-label
The new equilibrium point's label.
inline
Default$E'$
colour
The shifted curve and new equilibrium point's colour.
paint
Defaultorange
economics.supply-shift
Supply shifted, the same way: by positive is a rise in costs, which moves the curve UP and the equilibrium quantity down.
Supply and demand crossing at E, with a purple dashed supply curve shifted up by 2 and the new equilibrium E′ to the left and higher.Supply and demand crossing at E, with a purple dashed supply curve shifted up by 2 and the new equilibrium E′ to the left and higher.
a
The original supply curve's price intercept, in p=a+bqp = a + bq.
Default1
b
The original supply curve's slope, in p=a+bqp = a + bq.
Default1
c
The original demand curve's price intercept, in p=c−dqp = c - dq.
Default11
d
The original demand curve's slope, in p=c−dqp = c - dq.
Default1
by
How far up the price axis costs rise, which moves the curve up and the equilibrium quantity down.
Default2
qmax
The quantity the shifted curve is drawn out to.
Default10
label
The shifted supply curve's label.
inline
Default$S'$
point-label
The new equilibrium point's label.
inline
Default$E'$
colour
The shifted curve and new equilibrium point's colour.
paint
Defaultpurple
economics.surplus
Consumer and producer surplus as the two triangles they are: everything between the curve and the equilibrium price, either side of it. Shaded polygons rather than integrals, because an integral shades down to the AXIS and a surplus stops at the price.
Supply and demand crossing at E, with a teal consumer surplus triangle CS between the demand curve and the equilibrium price and an orange producer surplus triangle PS between the price and the supply curve.Supply and demand crossing at E, with a teal consumer surplus triangle CS between the demand curve and the equilibrium price and an orange producer surplus triangle PS between the price and the supply curve.
a
The supply curve's price intercept, in p=a+bqp = a + bq.
Default1
b
The supply curve's slope, in p=a+bqp = a + bq.
Default1
c
The demand curve's price intercept, in p=c−dqp = c - dq.
Default11
d
The demand curve's slope, in p=c−dqp = c - dq.
Default1
consumer-label
The consumer surplus triangle's label.
inline
Default$CS$
producer-label
The producer surplus triangle's label.
inline
Default$PS$
consumer-colour
The consumer surplus triangle's colour.
paint
Defaultteal
producer-colour
The producer surplus triangle's colour.
paint
Defaultorange
economics.tax-wedge
A per-unit tax: supply shifted up by the tax, the price the buyer pays and the price the seller keeps ruled across, and the deadweight loss between them as its own triangle. The wedge is the tax itself — the two rules are exactly t apart, because the seller's price is the buyer's less the tax and nothing here rounds.
Supply and demand with a grey dashed taxed supply curve S + t above supply, the buyer’s price p_b at 7 and the seller’s price p_s at 5 ruled across, and a red deadweight loss triangle between quantities 4 and 5.Supply and demand with a grey dashed taxed supply curve S + t above supply, the buyer’s price p_b at 7 and the seller’s price p_s at 5 ruled across, and a red deadweight loss triangle between quantities 4 and 5.
a
The supply curve's price intercept before the tax, in p=a+bqp = a + bq.
Default1
b
The supply curve's slope, in p=a+bqp = a + bq.
Default1
c
The demand curve's price intercept, in p=c−dqp = c - dq.
Default11
d
The demand curve's slope, in p=c−dqp = c - dq.
Default1
t
The per-unit tax, the exact gap between what the buyer pays and the seller keeps.
Default2
qmax
The quantity the curves are drawn out to.
Default10
label
The taxed supply curve's label.
inline
Default$S + t$
buyer-label
The ruled line's label at the price the buyer pays.
inline
Default$p_b$
seller-label
The ruled line's label at the price the seller keeps.
inline
Default$p_s$
loss-label
The deadweight loss triangle's label.
inline
Default$DWL$
colour
The taxed supply curve and the two price rules' colour.
paint
Defaultgrey
loss-colour
The deadweight loss triangle's colour.
paint
Defaultred
economics.budget-line
A budget line: everything an income of mm buys at two prices, with both intercepts dotted. Inside it is affordable, beyond it is not.
A blue budget line falling from m/p₂ at 4 on the good 2 axis to m/p₁ at 6 on the good 1 axis, with both intercepts marked.A blue budget line falling from m/p₂ at 4 on the good 2 axis to m/p₁ at 6 on the good 1 axis, with both intercepts marked.
m
The income the budget line is drawn for.
Default12
p1
The price of the good on the x axis.
Default2
p2
The price of the good on the y axis.
Default3
label
The budget line's own label.
inline
Default
x-label
The x-intercept's label.
inline
Default$m/p_1$
y-label
The y-intercept's label.
inline
Default$m/p_2$
colour
The line and both intercept points' colour.
paint
Defaultblue
economics.ppf
A production possibility frontier — the concave arc of everything an economy can make at once — with one efficient point on it dropped to both axes, which is the trade-off the diagram exists to show. A quarter ellipse, so the frontier bows outward and the opportunity cost of the first good rises as more of it is made. at is how far round the arc the point sits, as a fraction. fill-style shades everything inside it — the attainable set. The region closes through the origin, because that is what "attainable" means here: making less of both is always possible.
A blue production possibility frontier bowing outward from 8 on the good 2 axis to 10 on the good 1 axis, with an orange point A on it dropped to both axes.A blue production possibility frontier bowing outward from 8 on the good 2 axis to 10 on the good 1 axis, with an orange point A on it dropped to both axes.
x-max
The frontier's intercept on the x axis, the most of that good the economy can make alone.
Default10
y-max
The frontier's intercept on the y axis, the most of that good the economy can make alone.
Default8
at
How far round the arc the marked point sits, as a fraction from 0 to 1.
Default0.4
fill-style
How the attainable set inside the frontier is filled — outlined leaves it empty.
enum
Defaultoutlined
label
The frontier curve's label.
inline
Default$PPF$
point-label
The marked point's label.
inline
Default$A$
colour
The frontier curve's colour.
paint
Defaultblue
point-colour
The marked point and its dropped segments' colour.
paint
Defaultorange

Last updated