Anonymous user
Law of cosines - triples: Difference between revisions
m
→{{header|zkl}}: fix sort bug
m (→using memoization: updated indentation for the output 2nd line.) |
m (→{{header|zkl}}: fix sort bug) |
||
Line 981:
List(tri60,tri90,tri120)
}
fcn abc(a,b,c){ List(a,
fcn triToStr(tri){ // ((c,d,e),(a,b,c))-->"(a,b,c),(c,d,e)"
tri.sort(fcn(t1,t2){ t1[0]<t2[0] })
Line 996:
Integer triangular triples for sides 1..13:
60° has 15 solutions:
(1,1,1),(2,2,2),(3
90° has 3 solutions:
(3,4,5),(5,12,13),(6,8,10)
|