diff --git a/docsrc/numerical.nim b/docsrc/numerical.nim index 0a1e39c2..0c4b310d 100644 --- a/docsrc/numerical.nim +++ b/docsrc/numerical.nim @@ -59,7 +59,7 @@ As timestamps we will use $h=0.1, 0.05, 0.01$. """ nbText: "First we translate the ODE as $y'=f(y,t)$ with $f$:" nbCode: - proc f(t, y: float, ctx: NumContext[float]): float = + proc f(t, y: float, ctx: NumContext[float, float]): float = y - 0.5*exp(0.5*t)*sin(5*t) + 5*exp(0.5*t)*cos(5*t) proc y(t: float): float = @@ -68,7 +68,7 @@ nbCode: let y0 = 0.0 ## we will not be using the NumContext object - var ctx = newNumContext[float]() + var ctx = newNumContext[float, float]() ## first derivative that will be used echo "y'(0): ", f(0, y0, ctx) # "$y'(0)$" will not be converted to latex (katex has a protection not to look into code) ## expected solution diff --git a/nimib.nimble b/nimib.nimble index 4ee2de10..055155cd 100644 --- a/nimib.nimble +++ b/nimib.nimble @@ -16,7 +16,7 @@ requires "parsetoml >= 0.7.0" requires "jsony >= 1.1.5" task docsdeps, "install dependendencies required for doc building": - exec "nimble -y install ggplotnim@0.5.3 numericalnim@0.6.1 nimoji nimpy karax@1.2.2" + exec "nimble -y install ggplotnim@0.5.9 numericalnim@0.8.8 nimoji nimpy karax@1.2.2" task test, "General tests": for file in ["tsources.nim", "tblocks.nim", "tnimib.nim", "trenders.nim"]: