public static EasyLinearEquation createForPolynomial ( final BigInteger [ ] xarray , final BigInteger [ ] fofxarray ) { if ( xarray . length != fofxarray . length ) { throw new SecretShareException ( "Unequal length arrays are not allowed" ) ; } final int numRows = xarray . length ; final int numCols = xarray . length + 1 ; BigInteger [ ] [ ] cvt = new BigInteger [ numRows ] [ ] ; for ( int row = 0 ; row < numRows ; row ++ ) { cvt [ row ] = new BigInteger [ numCols ] ; fillInPolynomial ( cvt [ row ] , fofxarray [ row ] , xarray [ row ] ) ; } return create ( cvt ) ; }
Create solver for polynomial equations .