@ivelin.peychev wrote:
How would this equation:
10n + \sum_{i=1}^n\left((x_i - 1)^2 - 10\cos(2\pi(x_i - 1))\right)look like when implemented with python function?
That is, without the help of sum() nor numpy nor Mathdotnet.Numerics.
I would like to understand the structure.
If possible also the
for
orif
loops to not be in the same line of thereturn
as this is still very confusing to me.Much obliged.
Posts: 9
Participants: 2