Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to numericalnim 0.8.8 #214

Merged
merged 3 commits into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docsrc/numerical.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nimib.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected].3 numericalnim@0.6.1 nimoji nimpy [email protected]"
exec "nimble -y install [email protected].9 numericalnim@0.8.8 nimoji nimpy [email protected]"

task test, "General tests":
for file in ["tsources.nim", "tblocks.nim", "tnimib.nim", "trenders.nim"]:
Expand Down
Loading