# Exact factorial/gamma values for half-integers

is it possible to return exact values of (n+1/2)! and ?(n+1/2) for *n* is an integer?

Exact factorial/gamma values for half-integers

is it possible to return exact values of (n+1/2)! and ?(n+1/2) for *n* is an integer?

add a comment

3

Sage already supports this (at least as of 4.8):

```
sage: factorial(3/2)
3/4*sqrt(pi)
sage: gamma(5/2)
3/4*sqrt(pi)
```

Ah. It doesn't for decimal inputs, like 1.5, but it does for 3/2. Thanks

2

If you give a numeric input, it'll give you a numeric output. If you want an exact output, give it an exact input.

Asked: **
2012-05-10 13:43:01 -0500
**

Seen: **527 times**

Last updated: **May 10 '12**

Norm in UniversalCyclotomicField

Why does jordan_form not work over inexact rings?

Factorial simplification error

out of core exact linear algebra

Simultaneously diagonalizing matrices exactly

Inequalities, solving problems

How do I evaluate sum() containing factorial()?

Memory error mixing exact numbers and decimal ones

Two ways of integrating x↦xⁿsin(x) give contradictory results. Bug?

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.