Anonymous user
Horizontal sundial calculations: Difference between revisions
m
→Ruby: whitespace
m (→Ruby: whitespace) |
|||
Line 666:
HR= 6; HRA= 90.500; HLA= 84.225
</pre>
=={{header|Ruby}}==
{{trans|ALGOL 68}}
Line 691 ⟶ 692:
hla = atan( slat * tan( hra * DtoR ))/ DtoR
puts "HR =%3d; HRA =%7.3f; HLA =%7.3f" % [h, hra, hla]
end</lang>
<pre>
Enter latitude: -4.95
|