Averages/Mean time of day: Difference between revisions
m
→{{header|PowerShell}}
Line 1,274:
$y += [Math]::Sin($Angles[$i] * [Math]::PI / 180)
}
$result = [Math]::Atan2(($y / $Angles.Count), ($x / $Angles.Count)) * 180 / [Math]::PI
|