Hi guys, I'm new here.
I'm trying to write some code which will take a polynomial and output it's value for varying x.
For a given input "n" I contruct n+1 placeholders (1, x, x^2, ... , x^n)
Beneath them I put in values
Then for a given "x" (in cells (3,2)).
I run the following code to get a value for f(x) (which is put in cell (9,1)).
![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Now the problem is that I want to make the function f.
I tried the following to no avail:
![]()
Please Login or Register to view this content.
I just get a value error.
Any ideas? P.S. Sorry if my formatting is awful, I'm new to presenting code on forums.
Bookmarks