List Objects and Operations

Using curly braces you can create a list of several objects (e. g. points, segments, circles).

Examples:

·        L = {A, B, C} gives you a list consisting of three prior defined points A, B, and C.

·        L = {(0, 0), (1, 1), (2, 2)} produces a list that consists of the entered points, as well as these nameless points.       
Note: By default, the elements of this list are not shown in the
Graphics View.

Compare Lists of Objects

You can compare two lists of objects by using the following syntax:

·        List1 == List2: Checks if the two lists are equal and gives you true or false as a result.

·        List1 != List2: Checks if the two lists are not equal and gives you true or false as a result.

Apply Pre-defined Operations and Functions to Lists

Note: If you apply operations and pre-defined functions to lists, you will always get a new list as a result.

 

Addition and Subtraction examples:

·        List1 + List2: Adds corresponding elements of two lists.      
Note: The two lists need to be of the same length.

·        List + Number: Adds the number to every element of the list.

·        List1 – List2: Subtracts the elements of the second list from corresponding elements of the first list.           
Note: The lists need to be of the same length.

·        List – Number: Subtracts the number from every element of the list.

 

Multiplication and Division examples:

·        List1 * List2: Multiplies corresponding elements of two lists.         
Note: The lists need to be of the same length. If the two lists are compatible
matrices, matrix multiplication is used.

·        List * Number: Multiplies every list element with the number.

·        List1 / List2: Divides elements of the first list by corresponding elements of the second list.      
Note: The two lists need to be of the same length.

·        List / Number: Divides every list element by the number.

·        Number / List: Divides the number by every element of the list.

 

Examples using functions:

·        List^2: Squares every element of the list.

·        sin(List): Applies the sine function to every element of the list.


www.geogebra.org