Gamma function [SOLVED]

A forum for general discussion of the Python programming language.

Gamma function [SOLVED]

Postby isak.davids » Fri Aug 30, 2013 9:30 am

Hi,

I am a newbie in python. I wonder why I do not get gamma(1) as 1.

Cheers
IDD
isak.davids
 
Posts: 3
Joined: Fri Aug 30, 2013 8:18 am

Re: Gamma function

Postby metulburr » Fri Aug 30, 2013 9:35 am

New Users, Read This
version Python 3.3.2 and 2.7.5, tkinter 8.5, pyqt 4.8.4, pygame 1.9.2 pre
OS Ubuntu 13.04, Mint 11, Arch Linux, Gentoo, Windows 7/8
https://github.com/metulburr
User avatar
metulburr
 
Posts: 1096
Joined: Thu Feb 07, 2013 4:47 pm
Location: Elmira, NY

Re: Gamma function

Postby isak.davids » Fri Aug 30, 2013 3:12 pm

Hi,

I have scipy installed, I think. Because
Code: Select all
import scipy

returns no error.

However,
Code: Select all
scipy.test()

ends with failures
Code: Select all
Ran 4724 tests in 63.515s

FAILED (KNOWNFAIL=13, SKIP=35, failures=1)
<nose.result.TextTestResult run=4724 errors=0 failures=1>


Could the "failing" scipy be the reason why gamma(1) returns a random number instead of 1?

Cheers
isak.davids
 
Posts: 3
Joined: Fri Aug 30, 2013 8:18 am

Re: Gamma function [SOLVED]

Postby isak.davids » Fri Aug 30, 2013 4:17 pm

The following foxed my worry.
Code: Select all
from scipy.special import gamma


I will try to mark the the post as SOLVED
Thank you!
isak.davids
 
Posts: 3
Joined: Fri Aug 30, 2013 8:18 am


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 2 guests