Left factorials: Difference between revisions
Content added Content deleted
ReeceGoding (talk | contribs) m (→{{header|R}}: Syntax highlighting.) |
|||
Line 2,968: | Line 2,968: | ||
===Vectorization solution=== |
===Vectorization solution=== |
||
Due to vectorization, these sorts of problems are R's bread and butter. The only challenge comes from making sure that R plays nice with objects from the gmp library. |
Due to vectorization, these sorts of problems are R's bread and butter. The only challenge comes from making sure that R plays nice with objects from the gmp library. |
||
<lang |
<lang rsplus>library(gmp) |
||
leftFact <- function(numbs) |
leftFact <- function(numbs) |
||
{ |
{ |