Jump to content

Simple series problem

Featured Replies

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?

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.

Archived

This topic is now archived and is closed to further replies.

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.