class RDF::N3::Algebra::Math::Sum

schema: ‘($a_1 .. $a_n) math:sum $a_s`

summary: performs addition of numbers

definition: ‘true` if and only if the arithmetic sum of `$a_1, .. $a_n` equals `$a_s`. Requires either:

  1. all ‘$a_1, .., $a_n` to be bound; or

  2. all but one ‘$a_i` (subject list) to be bound, and `$a_s` to be bound.

**literal domains**:

@example

{ ("3" "5") math:sum ?x } => { ?x :valueOf "3 + 5" } .
{ (3 5) math:sum ?x } => { ?x :valueOf "3 + 5 = 8" } .

@see www.w3.org/TR/xpath-functions/#func-numeric-add