Class JacobiSymbol

java.lang.Object
dk.jonaslindstrom.ruffini.common.algorithms.JacobiSymbol
All Implemented Interfaces:
java.util.function.IntBinaryOperator

public class JacobiSymbol extends Object implements java.util.function.IntBinaryOperator
Compute the Jacobi symbol of a number a modulo an odd number n.
  • Constructor Details

    • JacobiSymbol

      public JacobiSymbol()
  • Method Details

    • applyAsInt

      public int applyAsInt(int k, int n)
      Specified by:
      applyAsInt in interface java.util.function.IntBinaryOperator