I am trying to write a function that returns the root of a polynomial using Mullers method. I want the user to choose between the 2 polyomials shown in comment.
I am using two other functions 'poly1' and 'poly2' which returns the value of the polynomial for x.
How do i call 'poly1' or 'poly2' from within the for loop depending on the users choice? Is there any way to have a variable at the end of poly like poly'i' that changes to 1 or 2? Thanks