Skip to content

Commit 96906b9

Browse files
committed
docs: Round the outputs of the characteristics in airy-disc.md
1 parent f3b65b4 commit 96906b9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docs/src/pages/transfer-function-types/airy-disc.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,14 @@ which you can check by
7575

7676
```@example airy-disc
7777
FWHM_lateral = TF.FWHM(airypsf_3d)[1]
78+
round(FWHM_lateral; digits=3) # hide
7879
```
7980

8081
which gives
8182

8283
```@example airy-disc
8384
FWHM_lateral * NA / λ
85+
round(FWHM_lateral * NA / λ; digits=3) # hide
8486
```
8587

8688
The Axial FWHM (along the optical axis) is approximately given by
@@ -93,12 +95,14 @@ and can be obtained with
9395

9496
```@example airy-disc
9597
FWHM_axial = TF.FWHM(airypsf_3d)[3]
98+
round(typeof(1.0u"nm"), FWHM_axial; digits = 2) # hide
9699
```
97100

98101
which gives
99102

100103
```@example airy-disc
101104
FWHM_axial * NA^2 / (λ * n)
105+
round(FWHM_axial * NA^2 / (λ * n); digits = 3) # hide
102106
```
103107

104108
The energy for a given radius of the Airy disc has a closed form expression and can be computed using the method
@@ -108,6 +112,7 @@ TransferFunctions.encircled_energy(::AiryDisc{2}, ::Length)
108112

109113
```@example airy-disc
110114
TF.encircled_energy(airypsf_2d, 300u"nm")
115+
round(TF.encircled_energy(airypsf_2d, 300u"nm"); digits=3) # hide
111116
```
112117

113118
For a desired contained energy the correct radius can be found by [bisection](@extref `Roots.Bisection`) which and can be computed using
@@ -119,4 +124,5 @@ TransferFunctions.energy_radius(::AiryDisc{2}, ::Real)
119124

120125
```@example airy-disc
121126
TF.energy_radius(airypsf_2d, 0.05)
127+
round(typeof(1.0u"nm"), TF.energy_radius(airypsf_2d, 0.05); digits = 2) # hide
122128
```

0 commit comments

Comments
 (0)