I want to find an integer value from a sigma contained equation with two variables like this post
where x
(a real decimal value) range is between two limits e.g. known_xmin_value <= x < known_xmax_value
. 1
is the lower limit of k
(which is the integer) but don't know the upper limit (which is the goal to be derived from the solution); Perhaps just could be guess that it will be lower than 2000000. Is it possible to find the integer for k
? How?
from sympy import Sum, solve
from sympy.abc import k, x
known_value = 742.231 # just for example
known_xmin_value = 3.652 # just for example
solve(-known_value + Sum((x + (k - 1) * (x - known_xmin_value)) ** 3, (k, 1, integer_unknown_limit)), x)