Kristi W.

asked • 02/04/20

Phyton Function Graph

Write a program that graphs a function of your choosing. Then select a point on that graph at which you want to estimate the derivative. The user can then choose a nearby point. The program will then show the graph of the function, as well as the line that connects your point and the user’s point. The program will also print out the slope of the line. In other words: • You might pick the function f(x) := x 3 − 2x + 1, and the point x = 2. • The program will tell the user what function it is (x 3 − 2x + 1) and what your chosen x-value is (x = 2). • The program will tell the user something like “Please choose a point to estimate the derivative at x = 2”. Say the user then inputs 2.1. • The program will graph y = f(x) and the line joining the points (2, f(2)) and (2.1, f(2.1)). • The program will then compute the slope of that line and print something like “The derivative is approximately (slope)”.


Frankly I have no idea how to do this.......

1 Expert Answer

By:

Eli J. answered • 02/05/20

Tutor
New to Wyzant

Expert Math Tutor: All Ages and Courses

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.