(A+B+C ) ^ (X + Y + Z ) of arbitrary complexity

  • Thread starter jebusv20
  • Start date
  • Tags
    Complexity
In summary, the speaker is looking for a way to break down large floating point numbers into a series of integers for easier storage and to perform power operations on them. They mention using Pascal's triangle and the binomial theorem, but are not sure how to apply it to expressions with more than two terms. They also mention algorithms for fast multiplication of multiprecision numbers.
  • #1
jebusv20
3
0
This question relates mostly to computer sciences (my personal field of expertise),
I am trying to find the method for breaking down large floating point (non integer) numbers into a series of integers (so that they can be stored easily), and completing a power operation over them.

for example

1.23 ^ 4.56 = ((1E0)+(2E-1)+(2E-2))^((4E0)+(5E-1)+(6E-2))

I am aware that a program would be able to store quite large floating point numbers (generally up to 16 places of complexity) but, if I were to try and calculate something to 1 million places of accuracy, I will need the above break down)

Im sure it has something to do with pascals triangle which I am fairly sure is good for (a+b)^c, but I don't know how to do (a+b)^(c+d). I know this formula exists because I'm sure calculators use it every day... just not sure how to do it myself. To be clear, this formula does not need to be 'easy' to use, a computer can do billions of integer calculations a second, just need to write the code.
 
Mathematics news on Phys.org
  • #2
No replies? If its a matter of me not explaining myself please just ask what I mean and what confuses you and I'll try to further explain. If its something that would be really hard to explain, just give it a shot... and if you don't know... well ... feel free to tell your friends who might.

Should we just start with the simple stuff? Purely algebraically how could the following be expressed without the power operation, preferably with a serious of multiplication and addition operations:

(a+b)^(c+d)
 
  • #3
If you're starting with something like [itex](a+b)^{c+d}[/itex] just break it into [itex](a+b)^{c}(a+b)^{d}[/itex] and use the usual http://en.wikipedia.org/wiki/Binomial_theorem for each part of the product, then multiply them together.
 
  • #4
drag12 said:
If you're starting with something like [itex](a+b)^{c+d}[/itex] just break it into [itex](a+b)^{c}(a+b)^{d}[/itex] and use the usual http://en.wikipedia.org/wiki/Binomial_theorem for each part of the product, then multiply them together.

This doesn't help for multiprecision arithmetic with more than 2 digits.
If you want to compute (a+b+c)^n, with n an integer repeated squaring and multiplication
is the best way.

a^(2n) = (a^n)^2
a^(2n+1) = a (a^(2n))

A number of algorithms exist to do fast multiplication of multiprecision numbers. (karatsuba multiplication, fast Fourier transfrom multiplication)

The latter will be much faster for large numbers, but also quite hard to implement. Using a multiprecision library is always an option.
 
  • #5


As a computer scientist, I can offer some insights on this problem. Breaking down large floating point numbers into a series of integers can be achieved using a technique called "floating point representation". In this method, a floating point number is represented as a combination of a sign, a mantissa, and an exponent. The mantissa is the main number, while the exponent indicates the position of the decimal point. This allows for efficient storage and manipulation of floating point numbers.

To perform a power operation on floating point numbers, you can use the "power series" method. This involves expanding the power operation into a series of simpler operations, such as multiplication and addition. For example, to calculate (a+b)^(c+d), you can use the following steps:

1. Convert a and b into their floating point representations.
2. Use the power series method to calculate a^(c+d) and b^(c+d).
3. Add the two results from step 2 to get (a+b)^(c+d).

To achieve high accuracy, you can increase the number of terms in the power series. This means performing more calculations, but with the power of modern computers, this should not be a problem.

As for the use of Pascal's triangle, it can be helpful in some cases, but it is not necessary for this problem. Pascal's triangle is mainly used for calculating the coefficients in binomial expansions, which are not directly related to power operations.

In summary, the key to breaking down large floating point numbers and performing power operations on them is to use floating point representation and the power series method. With these techniques, you can achieve high accuracy and handle numbers of arbitrary complexity.
 

FAQ: (A+B+C ) ^ (X + Y + Z ) of arbitrary complexity

What is the purpose of calculating (A+B+C)^(X+Y+Z) of arbitrary complexity?

The purpose of calculating (A+B+C)^(X+Y+Z) of arbitrary complexity is to determine the result of raising the sum of three variables (A, B, and C) to the power of the sum of three other variables (X, Y, and Z), without any limitations on the complexity or values of these variables.

What is the mathematical formula for calculating (A+B+C)^(X+Y+Z) of arbitrary complexity?

The mathematical formula for calculating (A+B+C)^(X+Y+Z) of arbitrary complexity is (A+B+C)^n = A^n + B^n + C^n + (AB)^n + (AC)^n + (BC)^n + (ABC)^n, where n is the sum of the exponents (X+Y+Z).

What are some real-life applications of calculating (A+B+C)^(X+Y+Z) of arbitrary complexity?

Calculating (A+B+C)^(X+Y+Z) of arbitrary complexity can be useful in fields such as physics, economics, and statistics. For example, in physics, this calculation can be used to determine the total energy of a system with multiple variables. In economics, it can be used to predict the outcome of complex financial models. In statistics, it can be used to analyze data with multiple factors and their interactions.

What challenges may arise when calculating (A+B+C)^(X+Y+Z) of arbitrary complexity?

One challenge that may arise when calculating (A+B+C)^(X+Y+Z) of arbitrary complexity is the potential for errors due to the complexity of the calculation. Another challenge may be determining the appropriate values for the variables (A, B, C, X, Y, and Z) in order to get an accurate result.

Are there any limitations to calculating (A+B+C)^(X+Y+Z) of arbitrary complexity?

There are no inherent limitations to calculating (A+B+C)^(X+Y+Z) of arbitrary complexity, as long as the values for the variables and the exponent are within a computationally feasible range. However, as the complexity of the calculation increases, it may become more difficult to accurately determine the result.

Back
Top