File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
lectures/tools_and_techniques Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -786,21 +786,24 @@ After that, we'll use `Symbolics.jl` to compute derivatives
786786G = (1 + g)
787787R = (1 + r)
788788p0 = x0 / (1 - G * R ^ (-1))
789- print("Our formula is: $p0")
789+ print("Our formula is")
790+ p0
790791```
791792
792793``` {code-cell} julia
793794# Partial derivative with respect to g
794795dg = Differential(g)
795796dp_dg = expand_derivatives(dg(p0))
796- print("dp0 / dg is: $dp_dg")
797+ print("dp0 / dg is")
798+ dp_dg
797799```
798800
799801``` {code-cell} julia
800802# Partial derivative with respect to r
801803dr = Differential(r)
802804dp_dr = expand_derivatives(dr(p0))
803- print("dp0 / dr is: $dp_dr")
805+ print("dp0 / dr is")
806+ dp_dr
804807```
805808
806809We can see that for $\frac{\partial p_0}{\partial r}<0$ as long as
You can’t perform that action at this time.
0 commit comments