W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2016

[Bug 29356] New: Add fn:product

From: <bugzilla@jessica.w3.org>
Date: Sun, 03 Jan 2016 21:30:29 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29356-523@http.www.w3.org/Bugs/Public/>

            Bug ID: 29356
           Summary: Add fn:product
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Requirements for Future Versions
          Assignee: jim.melton@acm.org
          Reporter: benito@benibela.de
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

There is a fn:sum, but no fn:product

That does not seem intuitive. Both are the basic commutative arithmetic
operations, there should either be both or neither.

It is also very useful to calculate the factorial: product(1 to $something)

>From that you can define the binomial (which could also be useful in the math:

declare function binomial($n, $k) { product(($k + 1) to $n) div product(1 to (n
- k)) } 

and work with combinatorics and stuff

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Sunday, 3 January 2016 21:30:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:57 UTC