Changes

Jump to: navigation, search

DPS921/Halt and Catch Fire

12 bytes added, 20:40, 1 December 2016
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/>
147
edits

Navigation menu