Jump to content

Simple series problem


Recommended Posts

I'm solving a set of equations as part of a simple fixed point optimization algorithm that I am implementing in MATLAB.

 

I have a set of N numbers A={a(1),a(2),.......,a(N)}. Each a(i) is a member of the positive reals. No order or pattern is presumed in the values of A. I am trying to solve the following equation:

 

sum(i=1:N){1/(a(i)+x)}=C

 

To give a simple numerical example with N=4, A={1,3,2,0.5), and C=10:

1/(1+X)+1/(3+X)+1/(2+X)+1/(0.5+X)=10

 

I can solve x by multiplying through the denominator, creating a 4th order polynomial and then solving this polynomial, but this is a lot of work and not feasible for large datasets (e.g, I have a dataset with n=10000). I'm sure that there must be a simple mathematical trick for solving this function, but I can't seem to find it. Please does anyone have any idea about this?

Link to comment
Share on other sites

I'm solving a set of equations as part of a simple fixed point optimization algorithm that I am implementing in MATLAB.

 

I have a set of N numbers A={a(1),a(2),.......,a(N)}. Each a(i) is a member of the positive reals. No order or pattern is presumed in the values of A. I am trying to solve the following equation:

 

sum(i=1:N){1/(a(i)+x)}=C

 

To give a simple numerical example with N=4, A={1,3,2,0.5), and C=10:

1/(1+X)+1/(3+X)+1/(2+X)+1/(0.5+X)=10

 

I can solve x by multiplying through the denominator, creating a 4th order polynomial and then solving this polynomial, but this is a lot of work and not feasible for large datasets (e.g, I have a dataset with n=10000). I'm sure that there must be a simple mathematical trick for solving this function, but I can't seem to find it. Please does anyone have any idea about this?

 

 

Not sure if I am right - but if there were to be a simple trick then you would also have a simple trick for solving an Nth order polynomial (by reversing your above procedure and dividing through and taking partial fractions) and I am pretty sure there are no simple tricks for solving even higher single digit polynomials let alone 10,000th order. If you are after estimations then maybe they do exist easily - but solutions would have to be crunched I think unless you know a lot more about the data set and can make sweeping generalisations.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.