Aseba provides a standard library of native functions. Targets should normally1 provide this library. If your target's firmware holds an old version of Aseba, not all functions might be available. In Aseba version 1.1, the following functions are available2:
in the array
, element by element:
.
with the constant
:
.
where
is a scalar.
where
,
and
are three arrays of the same size.
where
,
and
are three arrays of the same size.
where
,
and
are three arrays of the same size. Note that this is not a dot product.
where
,
and
are three arrays of the same size. An exception will be triggered if a division by zero occurs.
and
in
where
,
and
are three arrays of the same size:
.
and
in
where
,
and
are three arrays of the same size:
.
and
:
.
.
in place.
. An exception will be triggered if a division by zero occurs.
using the signs of
and
to determine the quadrant of the output, where
,
and
are three arrays of the same size. Note that
and
will produce
..
where
and
are two arrays of the same size.
where
and
are two arrays of the same size.
by angle, write the result to
. Note that
and
must both be arrays of size 2.
where
and
are two arrays of the same size.
the middle index of the largest sequence of non-zero elements from
,
if not found or if the sequence is smaller than
.
in the range
.