How to write factorial in matlab

  • Context: MATLAB 
  • Thread starter Thread starter adnan jahan
  • Start date Start date
  • Tags Tags
    Factorial Matlab
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 15K views
adnan jahan
Messages
93
Reaction score
0
Dear Fellows,

I want to write rational numbers factorial in my MATLAB program

for integers factorial command is

factorial(n)

but for rational numbers such as 0.1 or 0.2
this command is not working can anyone guide me to solve this issue ?

Regards
 
Physics news on Phys.org
Yess I found function for Integer that is ,
for n=8
factorial(8)
but I need for any (0.1)
can you please write it here so that I can understand and use
 
Lookup the Gamma function