Code example for BigInteger

Methods: addmultiply

0
 
public class SeFormula implements Formula { 
 
    public BigInteger[] compute (BigInteger Fj, BigInteger Fj1) {
 
        BigInteger Fn = Fj.multiply (Fj).add (Fj1.multiply (Fj1));
        BigInteger Fn1 = Fj.add (Fj).add (Fj1).multiply (Fj1);
 
        return new BigInteger[] { Fn, Fn1 };
    } 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE