Jump to content

Law of cosines - triples: Difference between revisions

m
→‎using some optimization: elided a stray right paren.
(→‎{{header|Perl 6}}: Break apart angle calculations to reduce branching logic, clean up unneeded variables, eke out a few more percent points of speed-up)
m (→‎using some optimization: elided a stray right paren.)
Line 886:
(12, 12, 12)
(13, 13, 13)
15 solutions found for 60º (sides up to 13))
</pre>
 
===using memoization===
<lang rexx>/*REXX pgm finds integer sided triangles that satisfy Law of cosines for 60º, 90º, 120º.*/
Cookies help us deliver our services. By using our services, you agree to our use of cookies.