| Ticket UUID: | 1846908 | |||
| Title: | Ver 1.9: Gamma function implemented incorrectly | |||
| Type: | Bug | Version: | None | |
| Submitter: | erickb | Created on: | 2007-12-08 16:23:17 | |
| Subsystem: | math :: special | Assigned To: | arjenmarkus | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2007-12-17 14:56:38 | |
| Resolution: | None | Closed By: | arjenmarkus | |
| Closed on: | 2007-12-17 07:56:38 | |||
| Description: |
Hi,
I am using ver. 1.9 of tcllib. The Gamma function is implemented via factorial:
proc ::math::special::Gamma {x} {
::math::factorial [expr { $x + 1 }]
}
However, this should be $x - 1:
proc ::math::special::Gamma {x} {
::math::factorial [expr { $x - 1 }]
}
because factorial y invokes ln_Gamma {y + 1}
Eric
| |||
| User Comments: |
arjenmarkus added on 2007-12-17 14:56:38:
Logged In: YES user_id=400048 Originator: NO Solved: I use the ln_Gamma function directly now. | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki