jscience
  1. jscience
  2. JSCIENCE-15

Add missing methods from BigInteger to LargeInteger

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: Version 6.0
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      15

      Description

      Add missing methods from BigInteger to LargeInteger.
      Especially: divideAndRemainder(), remainder(), modPow(), modInverse(), signum()

      – divideAndRemainder(), remainder() example:

      x = a.divide(b) then x.getRemainder()

      – modInverse, modPow example:

      LocalContext.enter();
      try {
      setModulus(m);
      inv = a.reciprocal(); // Done modulo m
      pow = a.pow; // Done modulo m
      } finally {
      LocalContext.exit();
      }

        Activity

        Hide
        dautelle added a comment -

        Methods divideAndRemainder(), remainder(), modPow(), modInverse(), signum() have
        been added to Version 2.0.0 (to be released soon).

        The method LargeInteger[] divideAndRemainder(LargeInteger that) has been marked
        deprecated as the alternative:

        div = this.divide(that);
        rem = div.getRemainder();

        is preferred (no array creation).

        Show
        dautelle added a comment - Methods divideAndRemainder(), remainder(), modPow(), modInverse(), signum() have been added to Version 2.0.0 (to be released soon). The method LargeInteger[] divideAndRemainder(LargeInteger that) has been marked deprecated as the alternative: div = this.divide(that); rem = div.getRemainder(); is preferred (no array creation).
        Hide
        dautelle added a comment -

        Fixed in 2.0 Beta 3

        Show
        dautelle added a comment - Fixed in 2.0 Beta 3

          People

          • Assignee:
            jscience-issues
            Reporter:
            axelclk
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: