cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Introduction to the JMP Scripting Language

%3CLINGO-SUB%20id%3D%22lingo-sub-566782%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3EVerwenden%20der%20Summationsfunktion%3C%2FLINGO-SUB%3E%0A%20%20%3CLINGO-BODY%20id%3D%22lingo-body-566782%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%0A%20%20%20%3CP%3E%20%3C%2FP%3E%0A%20%20%20%3CDIV%20class%3D%22video-embed-center%20video-embed%22%3E%20%0A%20%20%20%20%3CIMG%20class%3D%22vidyard-player-embed%22%20data-type%3D%22inline%22%20data-uuid%3D%22idETF51VNgNK7MTnBH2pNQ%22%20data-v%3D%224%22%20src%3D%22https%3A%2F%2Fplay.vidyard.com%2FidETF51VNgNK7MTnBH2pNQ.jpg%22%20style%3D%22width%3A%20100%25%3B%20margin%3A%20auto%3B%20display%3A%20block%3B%22%20%2F%3E%20%0A%20%20%20%3C%2FDIV%3E%20%0A%20%20%20%3CP%3E%3C%2FP%3E%20%0A%20%20%20%3CP%3EEin%20Sonderfall%20der%20Iteration%20ist%20die%20algebraische%20Summe.%20Die%20Summationsfunktion%20erfordert%20drei%20Argumente.%20Das%20erste%20Argument%20wird%20ausgewertet%2C%20bevor%20die%20Summation%20beginnt.%20Es%20wird%20im%20Allgemeinen%20verwendet%2C%20um%20einen%20Z%C3%A4hler%20oder%20eine%20Indexvariable%20zu%20initialisieren.%20Das%20zweite%20Argument%20gibt%20einen%20Grenzwert%20f%C3%BCr%20den%20Z%C3%A4hler%20oder%20Index%20an.%20Und%20das%20dritte%20Argument%20ist%20die%20Menge%2C%20die%20zur%20Summe%20hinzugef%C3%BCgt%20werden%20soll.%20Wenn%20Sie%20beispielsweise%20die%20Summationsfunktion%20aufrufen%20und%20dabei%20das%20erste%20Argument%20i%2C%20das%20zweite%20Argument%20von%20und%20das%20dritte%20Argument%20von%20i%20zuweist%2C%20geben%20Sie%20die%20Summe%20aller%20Ganzzahlen%20von%20bis%20zur%C3%BCck.%20Dies%20entspricht%20also%20einer%20For-Schleife%2C%20die%20i%20auf%20initialisiert%2C%20so%20lange%20l%C3%A4uft%2C%20wie%20i%20kleiner%20oder%20gleich%20ist%2C%20und%20i%20mit%20jedem%20Schritt%20erh%C3%B6ht%2C%20w%C3%A4hrend%20der%20Hauptteil%20der%20For-Schleife%20die%20Variable%20s%20bei%20jedem%20Schritt%20um%20den%20Wert%20von%20i%20erh%C3%B6hen%20w%C3%BCrde.%3C%2FP%3E%0A%20%20%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar

Using the Summation Function

Started ‎11-08-2022 by
Modified ‎04-08-2025 by

One special case of iteration is the algebraic sum. The Summation function requires three arguments. The first argument is evaluated before the summation begins. It's generally used to initialize a counter or index variable. The second argument specifies a limit for the counter or index. And the third argument is the quantity to be added to the sum. For example, calling the Summation function with the first argument assigning to i, the second argument of and the third argument of i returns the sum of all the integers from to So this is equivalent to a For loop that initializes i to runs as long as i is less than or equal to and increases i by each step, while the body of the for loop would increase the variable s by the value of i at each step.