Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Simplify using assumptions and Gamma[*]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg34777] Re: Simplify using assumptions and Gamma[*]
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Thu, 6 Jun 2002 01:55:01 -0400 (EDT)
  • References: <adhru1$3uk$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Michael,

    FullSimplify[Gamma[n], n > 0 && n \[Element] Integers,
      ComplexityFunction -> (Count[#, Gamma, Heads -> True] &)]

        (-1 + n)!

--
Allan

---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565


"Michael Chang" <michael_chang86 at hotmail.com> wrote in message
news:adhru1$3uk$1 at smc.vnet.net...
> Hi,
>
> Since the Euler Gamma function is (n-1)! for n>=1 and n an integer, I
> was wondering why
>
> FullSimplify[Gamma[n], n>=1 && n \[Element] Integers]
>
> does not evaluate to (n-1)! ?  Am I missing something here?
>
> Am I using the Assumptions capability incorrectly?
>
> Many thanks in advance,
>
> Michael
>




  • Prev by Date: Re: Coupled Differential Equations
  • Next by Date: Re: [MacOS X] User interface Q
  • Previous by thread: Re: Simplify using assumptions and Gamma[*]
  • Next by thread: MathLink on UltraSparc machine