Dec-02-2019, 01:56 PM
I have figured out how to do this. My new code is as follows:
I hope this is helpful
for n in range(10): nprint(chop(taylor(lambda x: chebyt(n, x), 0, n))) print(np.roots(chop(taylor(lambda x: chebyt(n, x), 0, n))[::-1]))It seems that there was some issue with the function nprint.
I hope this is helpful