147
edits
Changes
→Serial
*That will make our final ratio of: (π*(1)2/4) / 12 = π/4
*We just need to multiply by 4 to get π.
==== Code Programming implementation ========= Pi -Serial =====
<syntaxhighlight lang="go">
func PI(samples int) float64 {
}
</syntaxhighlight>
===== Serial execution CPU profile =====
As you can see only one core is work to compute the value of Pi - '''CPU8 @ 100%'''<br/>