Documentation of 'javanpst.utils.Operations' Java class
Operations
javanpst.utils

Class Operations



  • public class Operations
    extends java.lang.Object
    A class with some useful mathematical functions. BigInteger class supports some of the operations performed here
    • Constructor Summary

      Constructors 
      Constructor and Description
      Operations() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static double combinatorial(int m, int n)
      Computes the binomial coefficient (m over n)
      static double factorial(int n)
      Computes the factorial of a given integer
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Operations

        public Operations()
    • Method Detail

      • factorial

        public static double factorial(int n)
        Computes the factorial of a given integer
        Parameters:
        n - integer value
        Returns:
        Factorial of n
      • combinatorial

        public static double combinatorial(int m,
                                           int n)
        Computes the binomial coefficient (m over n)
        Parameters:
        m - m value
        n - n value
        Returns:
        binomial coefficient

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.