Jump to content

Left factorials: Difference between revisions

m
→‎{{header|R}}: Syntax highlighting.
m (→‎{{header|R}}: Syntax highlighting.)
Line 2,968:
===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.
<lang rrsplus>library(gmp)
leftFact <- function(numbs)
{
331

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.