`Numeric`

supplies
named functions with the same semantics as Python’s
arithmetic, comparison, and bitwise operators. Similar semantics
(element-wise operation, broadcasting, coercion) are also available
with other mathematical functions, both binary and unary, that
`Numeric`

supplies. For example,
`Numeric`

supplies typical mathematical functions
similar to those supplied by built-in module `math`

,
such as `sin`

, `cos`

,
`log`

, and `exp`

.

These functions are objects of type `ufunc`

(which
stands for universal function) and share several traits in addition
to those they have in common with array operators. Every
`ufunc`

instance * u* is
callable, is applicable to sequences as well as to arrays, and lets
you specify an optional

`output`

`u`

`u`

`u`

`u`

`.accumulate`

,
`u`

`.outer`

,
`u`

`.reduce`

, and
`u`

`.reduceat`

. The
`ufunc`

objects supplied by
`Numeric`

apply only to arrays with numeric type
codes (i.e., not to arrays with type code '`O`

' or
'`c`

').Any `ufunc`

* u* applies to
sequences, not just to arrays. When you start with a list

`L`

`u`

`L`

`L`

`u`

`a`

`a`

`tolist`

. For example, say you must compute the logarithm of each item of a list and return another list. On my ...
Start Free Trial

No credit card required