Skip to content

Commit

Permalink
Fixed two typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBreuling committed Sep 17, 2024
1 parent 100bade commit 58adb37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ More examples are given in the [examples](examples/) directory, which includes

## Work-precision

In order to investigate the work precision of the implemented solvers, we use different DAE examples with differentiation index 1, 2 and 3 as well as IDE example.
In order to investigate the work precision of the implemented solvers, we use different DAE examples with differentiation index 1, 2 and 3 as well as IDE examples.

### Index 1 DAE - Brenan

Expand Down
4 changes: 2 additions & 2 deletions scipy_dae/integrate/_dae/radau.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,8 @@ def _step_impl(self):
else:
error_embedded = -self.solve_lu(LU_real, F)
else:
# compute implicit embedded method with `newton_iter_embedded`` iterations
yp_hat_new0 = -(y / h + + b_hat1_implicit * yp + self.b_hat_implicit @ Yp) / MU_REAL
# compute implicit embedded method with `newton_iter_embedded` iterations
yp_hat_new0 = -(y / h + b_hat1_implicit * yp + self.b_hat_implicit @ Yp) / MU_REAL
y_hat_new = y_new.copy() # initial guess
for _ in range(self.newton_iter_embedded):
yp_hat_new = yp_hat_new0 + y_hat_new / (h * MU_REAL)
Expand Down

0 comments on commit 58adb37

Please sign in to comment.