How do you add a nonintegral number of terms together? For instance: $$\sum_{i=0}^{2.5} 1+2i$$
All I can think of is: $$(1+2*0) + (1+2*1) + (1+2*2) + (1+2*?)$$
I am a beginner in math, so be patient.
Edit:
I am trying to express $x^2$ in a different way, because the following works when $x$ is an integer:
$$x^2 = \sum_{i=0}^{x-1} 1+2i$$
Also, the expected output to this particular expression is $12.25$.
If you want to express $x^2$ in terms of a summation, you can do
$$\sum_{i=1}^{x} (2i-1) = \sum_{i=0}^{x-1} (1+2i) = x^2$$
(However, this has limited use, because in order to evaluate it at non-integer values of $x$, you need to expand the summation into $x^2$ and calculate it from there, which defeats the purpose of the summation for values such as $x=2.5$.)