ex-6, ex-7: change 'try and catch' for 'hit-miss'
This commit is contained in:
parent
ac88c7e782
commit
3a202e84dd
@ -17,7 +17,7 @@ $$
|
|||||||
\alpha_0 = 0.65 \et \beta_0 = 0.06 \et \gamma_0 = -0.18
|
\alpha_0 = 0.65 \et \beta_0 = 0.06 \et \gamma_0 = -0.18
|
||||||
$$
|
$$
|
||||||
|
|
||||||
To generate the points a *try and catch* method was employed:
|
To generate the points a *hit-miss* method was employed:
|
||||||
|
|
||||||
1. generate a point $(\theta , \phi)$ uniformly on a unit sphere,
|
1. generate a point $(\theta , \phi)$ uniformly on a unit sphere,
|
||||||
2. generate a third value $Y$ uniformly in $[0, 1]$,
|
2. generate a third value $Y$ uniformly in $[0, 1]$,
|
||||||
|
@ -50,7 +50,7 @@ where:
|
|||||||
}
|
}
|
||||||
\end{figure}
|
\end{figure}
|
||||||
|
|
||||||
Once again, the *try and catch* method described in @sec:3 was implemented and
|
Once again, the *hit-miss* method described in @sec:3 was implemented and
|
||||||
the same procedure about the generation of $\theta$ was applied. This time,
|
the same procedure about the generation of $\theta$ was applied. This time,
|
||||||
though, $\theta$ must be evenly distributed on half sphere, hence:
|
though, $\theta$ must be evenly distributed on half sphere, hence:
|
||||||
\begin{align*}
|
\begin{align*}
|
||||||
|
Loading…
Reference in New Issue
Block a user