Class Sum

All Implemented Interfaces:
ArithFunction, Serializable

public class Sum extends DefaultArithFunction

Function: math.sum(L): sums all values of L.

Examples:

  • math.sum([1,3]): returns 4.
  • math.sum([3,a,"s",5]): returns 8.
  • math.sum([]): returns 0.
See Also: