Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Evaluate the multifactorial function
ResourceFunction["MultiFactorial"][n,k] gives the kth multifactorial of n. |
Integer values:
| In[1]:= |
| Out[1]= |
| In[2]:= |
| Out[2]= |
Evaluate numerically:
| In[3]:= |
| Out[3]= |
Evaluate for large arguments:
| In[4]:= |
| Out[4]= | ![]() |
| In[5]:= |
| Out[5]= |
Evaluate at negative integers:
| In[6]:= |
| Out[6]= |
Evaluate for complex arguments:
| In[7]:= |
| Out[7]= |
MultiFactorial threads elementwise over lists:
| In[8]:= |
| Out[8]= |
MultiFactorial[n,1] is equivalent to Factorial[n] (n!):
| In[9]:= |
| Out[9]= |
MultiFactorial[n,2] is equivalent to Factorial2[n] (n!!):
| In[10]:= |
| Out[10]= |
Large arguments can give results too large to be computed explicitly, even approximately:
| In[11]:= |
| Out[11]= |
Machine-number inputs can give arbitrary‐precision results:
| In[12]:= |
| Out[12]= |
| In[13]:= |
| Out[13]= |
This work is licensed under a Creative Commons Attribution 4.0 International License