Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0afb24e

Browse filesBrowse files
ken-rmmckyCopilot
authored
Fix scipy exercise hints (#388)
* Fix scipy exercise hints Two exercise hints in the scipy lecture are not fully accurate. * Update lectures/scipy.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Matt McKay <mmcky@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1f13005 commit 0afb24e
Copy full SHA for 0afb24e

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎lectures/scipy.md‎

Copy file name to clipboardExpand all lines: lectures/scipy.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ over the interval $[0, 400]$ when `μ, σ, β, n, K = 4, 0.25, 0.99, 10, 40`.
476476
```{hint}
477477
:class: dropdown
478478
479-
From `scipy.stats` you can import `lognorm` and then use `lognorm(x, σ, scale=np.exp(μ)` to get the density $f$.
479+
From `scipy.stats` you can import `lognorm` and then use `lognorm.pdf(x, σ, scale=np.exp(μ))` to get the density $f$.
480480
```
481481

482482
```{exercise-end}
@@ -512,7 +512,7 @@ plt.show()
512512
```{exercise}
513513
:label: sp_ex02
514514
515-
In order to get the option price, compute the integral of this function numerically using `quad` from `scipy.optimize`.
515+
In order to get the option price, compute the integral of this function numerically using `quad` from `scipy.integrate`.
516516
517517
```
518518

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.