reciprocalSum(args)

import almafa.engine.linalg-1

Reciprocal sum of elements.

argsList of numbers, vectors, and/or matrices.
return valueThe recursive, but independent reciprocal sum of the arguments.

It first calculates the reciprocal of the elements, then adds them up.

The argument can be a list of numbers, a vector, or a matrix. If there is a list of matrices or vectors, the reciprocal is calculated separately for each of them, and the reciprocal sum of results will be returned.

import almafa.engine.linalg-1;
reciprocalSum(1,[2,3])