March 2018
Beginner to intermediate
306 pages
9h 54m
English
You need to complete the following steps:
import cv2import numpy as np
N = 4coeffs = np.random.randn(N+1,1)
retval, roots = cv2.solvePoly(coeffs)
for i in range(N): print('Root', roots[i],'residual:', np.abs(np.polyval(coeffs[::-1], roots[i][0][0]+1j*roots[i][0][1])))
Read now
Unlock full access