30-Jan-2024 22:44:09 polynomial_resultant_test(): MATLAB/Octave version 5.2.0 Test polynomial_resultant(). polynomial_resultant_roots_test(): polynomial_resultant_roots() computes the resultant R of polynomials P and Q based on knowledge of the roots of P and Q. P(x): = +1 Q(x): = +2 R (tabulated): 1 R (calculated): 1 P(x): = +3 x +3 Q(x): = +1 x^2 +2 x +1 R (tabulated): 0 R (calculated): 0 P(x): = +1 x^3 +3 x^2 +3 x +1 Q(x): = +1 x^2 -1 R (tabulated): 0 R (calculated): 2.26825e-15 P(x): = +1 x^3 +2 x^2 +3 x +4 Q(x): = +5 x^2 +6 x +7 R (tabulated): 832 R (calculated): 832 P(x): = +1 x^3 +2 x^2 +3 x +4 Q(x): = +4 x^3 +3 x^2 +2 x +1 R (tabulated): -2000 R (calculated): -2000 P(x): = +1 x^4 -4 x^3 +5 x^2 -2 x Q(x): = +1 x^4 -4 x^3 +5 x^2 -2 x +1 R (tabulated): 1 R (calculated): 1 P(x): = +1 x^4 -4 x^3 +5 x^2 -2 x Q(x): = +1 x^7 -12 x^6 +60 x^5 -160 x^4 +240 x^3 -192 x^2 +64 x R (tabulated): 0 R (calculated): 0 polynomial_resultant_sylvester_test(): polynomial_resultant_sylvester() computes the resultant R of polynomials P and Q based on the determinant of the Sylvester matrix. P(x): = +1 Q(x): = +2 R (tabulated): 1 R (calculated): 1 P(x): = +3 x +3 Q(x): = +1 x^2 +2 x +1 R (tabulated): 0 R (calculated): 0 P(x): = +1 x^3 +3 x^2 +3 x +1 Q(x): = +1 x^2 -1 R (tabulated): 0 R (calculated): 1.77636e-15 P(x): = +1 x^3 +2 x^2 +3 x +4 Q(x): = +5 x^2 +6 x +7 R (tabulated): 832 R (calculated): 832 P(x): = +1 x^3 +2 x^2 +3 x +4 Q(x): = +4 x^3 +3 x^2 +2 x +1 R (tabulated): -2000 R (calculated): -2000 P(x): = +1 x^4 -4 x^3 +5 x^2 -2 x Q(x): = +1 x^4 -4 x^3 +5 x^2 -2 x +1 R (tabulated): 1 R (calculated): 1 P(x): = +1 x^4 -4 x^3 +5 x^2 -2 x Q(x): = +1 x^7 -12 x^6 +60 x^5 -160 x^4 +240 x^3 -192 x^2 +64 x R (tabulated): 0 R (calculated): 0 polynomial_resultant_test() Normal end of execution. 30-Jan-2024 22:44:09