Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5800

Need help with python

$
0
0

@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 or if loops to not be in the same line of the return as this is still very confusing to me.

Much obliged.

Posts: 9

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5800