def sigma(first, last, const): sum = 0 for i in range(first, last + 1): sum += const * i return sum # first : is the first value of (n) (the index of summation) # last : is the last value of (n) # const : is the number that you want to sum its multiplication each (n) times with (n)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter