Jump to content

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>
</lang>
<pre>
Enter latitude: -4.95
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.