List (and matrix, tables) package for Fōrmulæ — the visual environment for computing, composing, and conversing with tree-structured expressions.
This repository contains the source code for the list package. It is intended to the computation on lists. Despite the name, it includes a lot of expressions related to vectors, matrices (because a matrix is a list of -same cardinallity- subslists), and tables.
Part of the formulae-org organization: the web application plus one repository per package.
▶ Showcase — worked examples of this package.
-
Visualization of expressions
- List, it is shown as
$\{ element_1, element_2, ..., element_n \}$ - Matrix
- Table
- List, it is shown as
-
Edition
- Manual creation of a list. It creates a list with the currently selected expression as it single element
- Manual creation of a multi-element list of a provided number of elements
- Manual creation of a matrix of given number of rows and columns
- Manual creation of a table from a matrix
-
Reduction
- Related to lists/vectors
-
Sort the elements of a list/vector
- Using the natural order of its elements
- Using a custom comparator, provided as a lambda expression
- Cartesian product of two or more lists/vectors
- Cartesian exponentiation of a list/vector
- Dot product of two or more lists/vectors
- Power set of two or more lists/vectors
-
Sort the elements of a list/vector
- Related to matrices
- Matrix multiplication
- Transpose of a matrix
- Determinant of a matrix
- Kronecker product of two or more matrices
- Conjugate transpose of a matrix
- Programmatic creation of list/vectors/matrices/tables
- Creation of a list from a range e.g. 5..10
- Related to lists/vectors