Some sort of transform to find the log of a series

Click For Summary

Discussion Overview

The discussion revolves around finding a method to compute the logarithm of a series involving the incomplete gamma function, particularly when dealing with very large numbers. Participants explore the challenges of handling large numerical values and the potential need for specialized techniques or libraries.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant seeks a transform that allows summing terms of the incomplete gamma function while obtaining the logarithm of the total sum, as direct summation of logs is not feasible.
  • Another participant references a previous thread discussing the conversion of infinite sums to products, suggesting it might be relevant.
  • A participant points out that the terms in the series are too large for standard data types, complicating the computation.
  • One participant suggests clarifying the overall goal and whether the use of arbitrary precision libraries is being considered, as this could influence the approach taken.
  • A participant specifies that they are calculating the incomplete gamma function for large arguments (around 50,000) using ActionScript 3, indicating constraints on their programming environment.
  • A participant shares a resource found online that discusses the implementation of the incomplete gamma function in FORTRAN, noting the importance of verifying the correctness of the code against standard numerical libraries.

Areas of Agreement / Disagreement

Participants express varying opinions on the feasibility of the proposed methods and the necessity of using specialized libraries. There is no consensus on a specific solution or approach to the problem.

Contextual Notes

Participants highlight limitations related to the size of numerical values and the constraints of programming languages, which may affect the methods discussed. The discussion does not resolve the mathematical complexities involved in computing the incomplete gamma function for large arguments.

onanox
Messages
15
Reaction score
0
I am trying to write a computer program that involves finding 2 very large numbers (several thousand digits) and dividing them to get a reasonable sized number.
the first number is a value of the gamma function, which can be defined as a product and thus easy to reduce with logs (find the sum of the log of each term).

hoewever the second number is a value of the incomplete gamma function, which AKAIK can only be defined as a sum. clearly, if I just log each term and sum them, id get the log of the product and thus, no dice. However, if I could find some transform for each term, that when summed would equal the log of the total sum, my problems would be solved.

Has anyone heard of anything like this?
 
Mathematics news on Phys.org
the problem is that each term in the series is too large to compute with standard data types, and that thread defines a product based on a sum and thus will not work.
 
A time honored way of answering a internet post about "How do I do this..." is to reply "You don't want to do that...". It isn't necessarily relevant to your post, but it might be wise to explain exactly what you are trying to do - in case there is some special trick that applies to the situation but not in general or in case there is a way to avoid the problem altogether.

You should also clarify whether if you are determined not to use a specialized arbitrary precision numerical library like GNU Bignum in your program. Are you trying to get this to work in ordinary double precision floating point arithmetic?
 
good point, I guess I was a bit vague.
I am trying to calculate the incomplete-gamma function specifically for large arguments (around 50,000).
I am using as3 to program it, and there isn't any flexibility on the language.
 
onanox said:
I am trying to calculate the incomplete-gamma function specifically for large arguments (around 50,000).
I am using as3 to program it,

Well, at least the question isn't "How do I model nuclear reactions using my Excel spreadsheet?".

I did a Google search on the words: large values incomplete gamma function
I found this PDF which reports how it was coded in FORTRAN:

http://www.google.com/url?sa=t&sour...p_msDQ&usg=AFQjCNGNyI6Ky4KtzwHvc-IgHDANnCXPmA

(See section D.)

One problem you are going to have is checking your routine. There is always the possibiity of typos in you coding or even in the printed matter you based the code upon.
It's handy to be able to compare your answers to output from a standard numerical library.
 

Similar threads

  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
4
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K