Reciprocal sum of elements.
args | List of numbers, vectors, and/or matrices. |
return value | The 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.
reciprocalSum(1,[2,3])