From f9e2ec78d0b53fde7ecb1271c7b101b165488dcf Mon Sep 17 00:00:00 2001 From: Gavin Simpson Date: Tue, 5 Mar 2024 09:05:31 +0100 Subject: [PATCH] some more updated snapshots for #251 --- .../_snaps/backward/response-derivatives.md | 22 ++++++++++++++++++- .../_snaps/central/response-derivatives.md | 22 ++++++++++++++++++- .../_snaps/forward/response-derivatives.md | 22 ++++++++++++++++++- 3 files changed, 63 insertions(+), 3 deletions(-) diff --git a/tests/testthat/_snaps/backward/response-derivatives.md b/tests/testthat/_snaps/backward/response-derivatives.md index bb90fe913..3b5798e66 100644 --- a/tests/testthat/_snaps/backward/response-derivatives.md +++ b/tests/testthat/_snaps/backward/response-derivatives.md @@ -1,4 +1,4 @@ -# response derivatives works +# first order response derivatives works Code print(yd) @@ -18,3 +18,23 @@ 10 10 x2 80.9 62.0 102. 0.480 0.478 0.185 0.537 # i 40 more rows +# second order response derivatives works + + Code + print(yd) + Output + # A tibble: 50 x 9 + .row .focal .derivative .lower_ci .upper_ci x0 x1 x2 x3 + + 1 1 x2 214. 109. 315. 0.480 0.478 0.00127 0.537 + 2 2 x2 283. 166. 417. 0.480 0.478 0.0216 0.537 + 3 3 x2 385. 282. 529. 0.480 0.478 0.0420 0.537 + 4 4 x2 489. 388. 632. 0.480 0.478 0.0624 0.537 + 5 5 x2 610. 481. 747. 0.480 0.478 0.0828 0.537 + 6 6 x2 681. 459. 898. 0.480 0.478 0.103 0.537 + 7 7 x2 622. 283. 947. 0.480 0.478 0.123 0.537 + 8 8 x2 359. -49.4 749. 0.480 0.478 0.144 0.537 + 9 9 x2 -149. -560. 249. 0.480 0.478 0.164 0.537 + 10 10 x2 -862. -1308. -470. 0.480 0.478 0.185 0.537 + # i 40 more rows + diff --git a/tests/testthat/_snaps/central/response-derivatives.md b/tests/testthat/_snaps/central/response-derivatives.md index bb90fe913..7f39bb6b5 100644 --- a/tests/testthat/_snaps/central/response-derivatives.md +++ b/tests/testthat/_snaps/central/response-derivatives.md @@ -1,4 +1,4 @@ -# response derivatives works +# first order response derivatives works Code print(yd) @@ -18,3 +18,23 @@ 10 10 x2 80.9 62.0 102. 0.480 0.478 0.185 0.537 # i 40 more rows +# second order response derivatives works + + Code + print(yd) + Output + # A tibble: 50 x 9 + .row .focal .derivative .lower_ci .upper_ci x0 x1 x2 x3 + + 1 1 x2 219. 125. 311. 0.480 0.478 0.00127 0.537 + 2 2 x2 282. 176. 407. 0.480 0.478 0.0216 0.537 + 3 3 x2 371. 261. 522. 0.480 0.478 0.0420 0.537 + 4 4 x2 496. 397. 633. 0.480 0.478 0.0624 0.537 + 5 5 x2 606. 477. 744. 0.480 0.478 0.0828 0.537 + 6 6 x2 675. 466. 881. 0.480 0.478 0.103 0.537 + 7 7 x2 625. 298. 940. 0.480 0.478 0.123 0.537 + 8 8 x2 350. -51.7 739. 0.480 0.478 0.144 0.537 + 9 9 x2 -164. -562. 216. 0.480 0.478 0.164 0.537 + 10 10 x2 -867. -1299. -489. 0.480 0.478 0.185 0.537 + # i 40 more rows + diff --git a/tests/testthat/_snaps/forward/response-derivatives.md b/tests/testthat/_snaps/forward/response-derivatives.md index bb90fe913..f0ebc599c 100644 --- a/tests/testthat/_snaps/forward/response-derivatives.md +++ b/tests/testthat/_snaps/forward/response-derivatives.md @@ -1,4 +1,4 @@ -# response derivatives works +# first order response derivatives works Code print(yd) @@ -18,3 +18,23 @@ 10 10 x2 80.9 62.0 102. 0.480 0.478 0.185 0.537 # i 40 more rows +# second order response derivatives works + + Code + print(yd) + Output + # A tibble: 50 x 9 + .row .focal .derivative .lower_ci .upper_ci x0 x1 x2 x3 + + 1 1 x2 222. 124. 317. 0.480 0.478 0.00127 0.537 + 2 2 x2 279. 159. 414. 0.480 0.478 0.0216 0.537 + 3 3 x2 382. 282. 524. 0.480 0.478 0.0420 0.537 + 4 4 x2 496. 392. 636. 0.480 0.478 0.0624 0.537 + 5 5 x2 610. 483. 749. 0.480 0.478 0.0828 0.537 + 6 6 x2 681. 465. 893. 0.480 0.478 0.103 0.537 + 7 7 x2 606. 277. 922. 0.480 0.478 0.123 0.537 + 8 8 x2 356. -62.7 750. 0.480 0.478 0.144 0.537 + 9 9 x2 -141. -548. 251. 0.480 0.478 0.164 0.537 + 10 10 x2 -856. -1286. -478. 0.480 0.478 0.185 0.537 + # i 40 more rows +