For Problem Set 2 question 1... do we simply have to get the function to work with preset X=-13 and Poly= (0.0, 0.0, 5.0, 9.3, 7.0), which i have... or do we need to have it ask for input from a user on the makeup and exact numbers in their polynomial. This would make the program longer than just x=, poly= and call function, and essentially work for any variation and/or length of a polynomial being entered by a user? I already have the function itself set up to take any variation of tuple being entered, but not sure if I need to make the whole program that subjective to input...
just the function i think
thanks. I ended up doing it both ways. Even if it isn't needed, I am quite happy that I can take any length polynomial and compute it with the code. Though for a little while there I got stuck on building the tuple from user input so that it could change with the number of input values.
Join our real-time social learning platform and learn together with your friends!