Combinations and permutations: Difference between revisions
Content added Content deleted
(add RPL) |
(→{{header|RPL}}: floating point aprox) |
||
Line 2,324: | Line 2,324: | ||
</pre> |
</pre> |
||
=={{header|RPL}}== |
|||
≪ / LAST ROT * - ≫ '<span style="color:blue">BMOD</span>' STO |
≪ / LAST ROT * - ≫ '<span style="color:blue">BMOD</span>' STO |
||
Line 2,350: | Line 2,350: | ||
1: { # 75394027566d # 4191844505805495d # 118264581564861424d # 4191844505805495d # 75394027566d } |
1: { # 75394027566d # 4191844505805495d # 118264581564861424d # 4191844505805495d # 75394027566d } |
||
</pre> |
</pre> |
||
Floating point approximations can be obtained by the built-in commands, provided that the result does not go beyond 1E500: |
|||
1000 150 PERM |
|||
1000 400 COMB |
|||
{{out}} |
|||
<pre> |
|||
2: 7.67405677335E444 |
|||
1: 4.96527238625E290 |
|||
</pre> |
|||
=={{header|Ruby}}== |
=={{header|Ruby}}== |
||
Float calculation as Tcl. |
Float calculation as Tcl. |