Skip to content

Gamma of complex numbers incorrectly simplifies to factorial #13869

@sagetrac-JoalHeagney

Description

@sagetrac-JoalHeagney

If I type the following into sage-5.5 built from source,

(gamma(-i-3/2)).simplify_full()

I get the following result:

factorial(-I - 5/2)

This:

n(factorial(-I - 5/2))

gives the obvious error:

TypeError: cannot evaluate symbolic expression numerically

while:

n(gamma(-I-5/2))

gives no problems.

-0.0417366258078936 + 0.0863691073697635*I

I've only noticed this happening in 5.5 - no such problems in 5.4 (that I remember).

CC: @benjaminfjones @sagetrac-dsm @eviatarbach @paulmasson

Component: symbolics

Keywords: gamma, simplify_full, simplify_factorial, maxima

Issue created by migration from https://trac.sagemath.org/ticket/13869

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions