<jupyter_start><jupyter_text>**1**.Implement a Python function to find roots using method X. Use it to find solutions to $x^3 + 4x^2 -3 = x$ between -4 and 1. For example, X = Netwon-Raphson or secant. **2**.Use the companion  matrix method to find the roots of $6 - 5x - 2x^2 + x^3$<jupyter_code># Here are the expected roots

import numpy as np

np.roots([1,-2,-5,6])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13032581453634084, 'fraction_numerical': 0.042606516290726815, 'mean_word_length': 4.2631578947368425, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '616035', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 151, 'n_tokens_neox': 146, 'n_words': 54, 'path': 'notebook/T07_Exercises.ipynb', 'repo_name': 'mtldatascience/sta-663-2019', 'size': '399'}