Jump to content

Law of cosines - triples: Difference between revisions

(→‎{{header|Ruby}}: Added Ruby)
Line 1,382:
</pre>
 
=={{header|rubyRuby}}==
<lang ruby>grouped = (1..13).to_a.repeated_permutation(3).group_by do |a,b,c|
sumaabb, ab = a*a + b*b, a*b
Line 1,411:
 
</pre>
 
=={{header|zkl}}==
<lang zkl>fcn tritri(N=13){
1,149

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.