Blocks#
Every block of this toolkit, from its catalog.
math#
Block |
Type |
What it does |
|---|---|---|
|
Computes the absolute value of u. |
|
|
Computes the shortest signed difference (a - b) normalized to [-pi, pi]. |
|
|
Applies an arithmetic operator to a and b. |
|
|
Computes the 2-argument arctangent atan2(y, x) in radians. |
|
|
The Bessel function of u, of the chosen kind and order (Boost.Math). |
|
|
Restricts u between min and max. |
|
|
Suppresses signals within [-width, +width]. |
|
|
Converts an angle from degrees to radians. |
|
|
The determinant of a square matrix. |
|
|
The pdf, cdf or quantile of a normal, uniform or exponential distribution (Boost.Math). |
|
|
The error function of u (Boost.Math). |
|
|
Multiplies its input by k. |
|
|
The gamma, log-gamma or digamma function of u (Boost.Math). |
|
|
Computes the Euclidean distance hypot(a, b) = sqrt(a*a + b*b). |
|
|
The n × n identity matrix: ones on the diagonal, zeros elsewhere. |
|
|
The inverse of a square, non-singular matrix (A⁻¹). |
|
|
Linearly interpolates between a and b by factor t. |
|
|
Maps u linearly from [in_min, in_max] to [out_min, out_max]. |
|
|
A matrix from its rows: “1 2; 3 4” (commas, newlines and brackets are welcome). |
|
|
Selects the minimum or maximum among inputs. |
|
|
The matrix product A·B; the inner dimensions must agree. |
|
|
Converts an angle from radians to degrees. |
|
|
Generates random booleans with probability p. |
|
|
Generates random numbers between min and max. |
|
|
Rounds u to an integer using the chosen mode. |
|
|
Keeps its input between a minimum and a maximum. |
|
|
Multiplies every element of a matrix by k. |
|
|
The shape of a matrix: how many rows and columns it has. |
|
|
Solves A·x = B for x (MATLAB’s A \ B); A must be square and non-singular. |
|
|
Adds a and b. |
|
|
1 above a level, else 0. |
|
|
The transpose of a matrix: rows become columns. |
|
|
Wraps an angle in radians into the range [-pi, pi]. |
group#
Block |
Type |
What it does |
|---|---|---|
|
An input of the subsystem or story it is in: a port on the group’s block outside, named by name, and its value here. |
|
|
An output of the subsystem or story it is in: what is wired to it leaves by a port on the group’s block outside, named by name. |