Difference between revisions of "Product Command"

From GeoGebra Manual
Jump to: navigation, search
Line 9: Line 9:
 
In [[CAS View]] only the following syntax is allowed:
 
In [[CAS View]] only the following syntax is allowed:
 
;Product[ <List of expressions> ]:
 
;Product[ <List of expressions> ]:
Calculates the product of all elements in the list.
+
:Calculates the product of all elements in the list.
 +
:{{example|1=<div><code><nowiki>Product[{1, 2, x}]</nowiki></code> yields ''2x''.</div>}}
 
;Product[ <Expression>, <Variable>, <Start>, <End> ]
 
;Product[ <Expression>, <Variable>, <Start>, <End> ]
 
:Calculates the product of the expressions that are obtained by replacing the given variable with every integer from ''start'' to ''end''.
 
:Calculates the product of the expressions that are obtained by replacing the given variable with every integer from ''start'' to ''end''.
:{{example|1=<div>
+
:{{example|1=<div><code><nowiki>Product[x + 1,  x,  2, 3]</nowiki></code> yields ''12''.</div>}}
:* <code><nowiki>Product[{1, 2, x}]</nowiki></code> yields ''2x''.
 
:* <code><nowiki>Product[x + 1,  x,  2, 3]</nowiki></code> yields ''12''.</div>}}
 

Revision as of 13:26, 23 August 2011



Product[ <List of Numbers> ]
Calculates the product of all numbers in the list.
Product[ <List of Numbers>, <Number of Elements>]
Calculates the product of the first n list elements.
Example:
Product[{1, 2, 3, 4}, 3] yields 6.

CAS Specific Syntax

In CAS View only the following syntax is allowed:

Product[ <List of expressions> ]
Calculates the product of all elements in the list.
Example:
Product[{1, 2, x}] yields 2x.
Product[ <Expression>, <Variable>, <Start>, <End> ]
Calculates the product of the expressions that are obtained by replacing the given variable with every integer from start to end.
Example:
Product[x + 1, x, 2, 3] yields 12.
© 2024 International GeoGebra Institute