Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How to write factorial in matlab

  1. Mar 3, 2012 #1
    Dear Fellows,

    I want to write rational numbers factorial in my matlab program

    for integers factorial command is


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

  2. jcsd
  3. Mar 3, 2012 #2

    Dr Transport

    User Avatar
    Science Advisor
    Gold Member

    Have you tried to find the integral formulation of the factorial function.... from there it should be fairly easy to program it in using Gauss-Laguerre polynomials....
  4. Mar 3, 2012 #3
    Yess I found function for Integer that is ,
    for n=8
    but I need for any (0.1)
    can you please write it here so that I can understand and use
  5. Mar 4, 2012 #4
    Lookup the Gamma function
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Threads - write factorial matlab Date
LaTeX Bold Writing in Latex Apr 16, 2017
LaTeX How to write the following in LaTeX Oct 27, 2016
LaTeX How to Write This in Latex (in This Forums)? May 19, 2016
How To Write Matrix In Latex? Dec 13, 2015
MATLAB question-factorial Oct 22, 2011