schema: EconSchema
aspectRatio: 1.4
params:
- name: m
value: 8
min: 5
max: 20
round: 0.01
- name: g
value: 10
min: 10
max: 20
round: 0.1
- name: p
value: 1
min: 0.3
max: 0.9
round: 0.01
- name: t
value: 0.25
min: 0.1
max: 0.3
round: 0.01
calcs:
r: ((0.25*(15+10+(params.g))/(0.5*(1-0.75*(1-(params.t)))+0.25*1.525)-(1-0.75*(1-(params.t)))*((params.m)/(params.p))/(0.5*(1-0.75*(1-(params.t)))+0.25*1.525)))
inv: ((10-(1.525*(calcs.r))))
pointISLM: ((0.25*(15+10+(params.g))/(0.5*(1-0.75*(1-(params.t)))+0.25*1.525)-(1-0.75*(1-(params.t)))*((params.m)/(params.p))/(0.5*(1-0.75*(1-(params.t)))+0.25*1.525)))
Yeq: ((15+10+params.g)/(1-0.75*(1-(params.t)))-(1.525*(calcs.r))/(1-0.75*(1-(params.t))))
Yeq2: ((15+10+params.g)/(1-0.75*(1-(params.t)))-(1.525*(0))/(1-0.75*(1-(params.t))))
LM: ((0.5*(20)/(0.25))+(((params.m)/(params.p))/(0.25)))
Da: ((15+0.75*(1-(params.t))(145)+calcs.inv+params.g))
AD: ((((1.525*params.m)/1)+0.5*(15+10+params.g))/((0.25*1.525)+(0.5(1-0.75(1-(params.t))))))
M: (((params.m)/(params.p)))
AD2: (((1.525*params.m)/((140)*(0.25*1.525+(0.5*(1-0.75(1-(params.t)))))-(0.5*(15+10+(params.g))))))
Md2: ((0.25*(15+10+params.g)/((1-0.75*(1-(params.t))))-(1)(0.5+((0.25*1.525)/(1-0.75(1-(params.t)))))))
layout:
ThreeGraphsPlusSidebarv:
topLeftGraph:
xAxis:
min: 0
max: 40
ticks: 4
yAxis:
min: 0
max: 20
ticks: 4
objects:
#Demand for Money - Curve
- Curve:
fn: "((0.25*(15+10+params.g)/(0.5*(1-0.75*(1-(params.t)))+0.25*1.525)-(x)*(1-0.75*(1-(params.t)))/(0.5*(1-0.75*(1-(params.t)))+0.25*1.525)))"
ind: x
color: blue
min: 0
max: 30
strokeWidth: 4
samplePoints: 100
#Money Supply - Line
- Point:
coordinates: [(params.m/params.p), calcs.pointISLM]
color:
- Line:
xIntercept: (params.m/params.p)
color: supply
lineStyle: solid
strokeWidth: 3
- Line:
yIntercept: calcs.pointISLM
color: supply
lineStyle: dotted
strokeWidth: 2
#Canva
- Segment:
a: [0,20]
b: [0,20]
color: black
label:
text: r
position: r
- Segment:
a: [40,0]
b: [40,0]
color: black
label:
text: M/P
position: t
- Segment:
a: [0, calcs.pointISLM]
b: [0, calcs.pointISLM]
color: black
bgcolor: "'#36a854'"
label:
text: "`${calcs.r.toFixed(1)}\\\\%`"
position: r
- Segment:
a: [calcs.M, 0]
b: [calcs.M, 0]
color: black
bgcolor: "'#36a854'"
label:
text: "`(\\\\$)\\\\ ${calcs.M.toFixed(1)}`"
position: t
- Segment:
a: [(params.m/params.p), 18]
b: [(params.m/params.p), 18]
color: white
bgcolor: "'#fc7e0f'"
label:
text: M_{of}
position: b
- Segment:
a: [calcs.Md2, 2]
b: [calcs.Md2, 2]
color: white
bgcolor: "'#2177b5'"
label:
text: M_{d}
position: l
topRightGraph:
xAxis:
min: 0
max: 140
ticks: 4
yAxis:
min: 0
max: 20
ticks: 4
objects:
#IS Curve
- Curve:
fn: "(((15+10+params.g)/(1.525)-((x)*(1-0.75*(1-(params.t)))/(1.525))))"
ind: x
color: blue
min: 0
max: 200
strokeWidth: 4
samplePoints: 100
#LM Curve
- Curve:
fn: "((0.25*(x)/(0.5)-((params.m)/(params.p))/0.5))"
ind: x
color: supply
min: 0
max: 200
strokeWidth: 4
samplePoints: 100
- Point:
coordinates: [calcs.Yeq, calcs.pointISLM]
color:
- Segment:
a: [0, calcs.pointISLM]
b: [calcs.Yeq, calcs.pointISLM]
color: supply
strokeWidth: 2
lineStyle: dotted
- Segment:
a: [calcs.Yeq, 0]
b: [calcs.Yeq, calcs.r]
color: green
lineStyle: dotted
strokeWidth: 2
#Canva
- Segment:
a: [0,20]
b: [0,20]
color: black
label:
text: r
position: r
- Segment:
a: [140, 0]
b: [140, 0]
color: black
label:
text: Y
position: t
- Segment:
a: [0, calcs.pointISLM]
b: [0, calcs.pointISLM]
color: black
bgcolor: "'#36a854'"
label:
text: "` ${calcs.r.toFixed(1)}\\\\%`"
position: r
- Segment:
a: [calcs.Yeq, 0]
b: [calcs.Yeq, 0]
color: black
bgcolor: "'#36a854'"
label:
text: "`(\\\\$)\\\\ ${calcs.Yeq.toFixed(1)}`"
position: t
- Segment:
a: [calcs.Yeq2, 0]
b: [calcs.Yeq2+8, 0]
color: white
bgcolor: "'#2177b5'"
label:
text: IS
position: b
- Segment:
a: [(calcs.LM), 20]
b: [(calcs.LM), 20]
color: white
bgcolor: "'#fc7e0f'"
label:
text: LM
position: l
bottomRightGraph:
xAxis:
min: 0
max: 140
ticks: 4
yAxis:
min: 0
max: 1
ticks: 4
objects:
#Agregate Demand - Curve
- Curve:
fn: "(((1.525*params.m)/((x)*(0.25*1.525+(0.5*(1-0.75(1-(params.t)))))-(0.5*(15+10+(params.g))))))"
ind: x
color: blue
min: calcs.AD
max: 140
strokeWidth: 4
samplePoints: 100
- Point:
coordinates: [calcs.Yeq, params.p]
color:
- Segment:
a: [0, params.p]
b: [calcs.Yeq, params.p]
color: green
lineStyle: dotted
strokeWidth: 2
- Segment:
a: [calcs.Yeq, 0]
b: [calcs.Yeq, params.p]
color: green
lineStyle: dotted
strokeWidth: 2
- Segment:
a: [calcs.Yeq, 0]
b: [calcs.Yeq, 0]
color: black
bgcolor: "'#36a854'"
label:
text: "`(\\\\$)\\\\ ${calcs.Yeq.toFixed(1)}`"
position: t
- Segment:
a: [0, params.p]
b: [0, params.p]
color: black
bgcolor: "'#36a854'"
label:
text: "`(\\\\$)\\\\ ${params.p.toFixed(2)}`"
position: r
- Segment:
a: [0, 1]
b: [0, 1]
color: black
label:
text: P
position: r
- Segment:
a: [140, 0]
b: [140, 0]
color: black
label:
text: Y
position: t
- Segment:
a: [140, calcs.AD2]
b: [140, calcs.AD2]
color: white
bgcolor: "'#2177b5'"
label:
text: AD
position: l
sidebar:
controls:
- title: Modelo IS-LM-AD
sliders:
- param: m
label: M_{of}
digits: 3
- param: g
label: G
digits: 3
- param: p
label: P
digits: 3
divs:
- html:
- html: '`A curva IS é: $$\\color{${colors.black}}{r(Y) = \\frac{c_{0}+a_{0}+G}{a_{1}}-\\frac{Y_{Eq}[1-c_{1}(1-t)]}{a_{1}}}$$ $$\\color{${colors.black}}{\\Longleftrightarrow}$$ $$\\color{${colors.black}}{r(Y) = \\frac{15+10+${params.g.toFixed(0)}}{1.525}-\\frac{Y_{Eq}[1-0.75(1-${params.t.toFixed(2)})]}{1.525}}$$ $$\\color{${colors.black}}{\\Longleftrightarrow}$$ $$\\color{${colors.black}}{r(${calcs.Yeq.toFixed(0)})=${calcs.r.toFixed(2)}\\ \\\%}$$`'
- html:
- html: '`A curva LM é: $$\\color{${colors.black}}{r(Y) = \\frac{kY}{h}-\\frac{M_{of}}{h}}$$ $$\\color{${colors.black}}{\\Longleftrightarrow}$$ $$\\color{${colors.black}}{r(Y) = \\frac{0.25Y}{0.5}-\\frac{${params.m.toFixed(1)}}{0.5}}$$ $$\\color{${colors.black}}{\\Longleftrightarrow}$$ $$\\color{${colors.black}}{r(${calcs.Yeq.toFixed(0)})=${calcs.r.toFixed(2)}\\ \\\%}$$`'
- html:
- html: '`A curva AD é: $$P(Y)=\\frac{M_{of} \\cdot a_{1}}{Y [k \\cdot a_{1} + h \\cdot (1-c_{1}(1-t))]- h \\cdot(c_{0}+a_{0}+G)}$$ $$\\Longleftrightarrow$$ $$P(Y)=\\frac{${params.m.toFixed(2)} \\cdot 1.525}{Y [0.25 \\cdot 1.525 + 0.5 \\cdot (1-0.75(1-${params.t}))]- 0.5 \\cdot(15+10+${params.g.toFixed(2)})}$$ $$\\Longleftrightarrow$$ $$P(${calcs.Yeq.toFixed(0)})=${params.p.toFixed(2)}$$`'