Law of cosines - triples: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) (→{{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: | Line 886: | ||
(12, 12, 12) |
(12, 12, 12) |
||
(13, 13, 13) |
(13, 13, 13) |
||
15 solutions found for 60º (sides up to 13 |
15 solutions found for 60º (sides up to 13) |
||
</pre> |
</pre> |
||
===using memoization=== |
===using memoization=== |
||
<lang rexx>/*REXX pgm finds integer sided triangles that satisfy Law of cosines for 60º, 90º, 120º.*/ |
<lang rexx>/*REXX pgm finds integer sided triangles that satisfy Law of cosines for 60º, 90º, 120º.*/ |