Here's the question you clicked on:
Zwelisha
How can I compute a derivative of a function in python?
You should write a function that takes two arguments: a very small value (h in the definition of the derivative) and another function which will build the mathematical function for which you want the derivative.
https://docs.google.com/document/d/1mTeXIWHRmWC3bi1maVz2ulyE6XWjg3bjwtlG6T6Bf6U/edit?hl=en&pli=1
depends if youre reading the input or youre given a function. To read an input, its more complicated and youll have to build a structure of the mathematical language to parse. If youre given a function, you can always introduce some basic methods that do some parts of the derivation (like power rule or chain rule). Your function will get modified and passed as an argument to other methods.
Close this Please