This program takes an user inputted string and finds the derivative of the user function using the specified derivative rules. Despite this project still being a work in progress, I was able to get a basic version of the power rule working for most functions such as: “3x^13 + 5y - 18”, by splitting the user inputted string where any operators exist using the Regex Expressions import we’re able to create another list where only the numbers, variables, and exponents exists.(For now I’m only dealing with these 3. Sin, cos, tan will be dealth with later on) After we iterate through the split function list and set conditional statements that check which value is a constant, which is a variable, and a power. From there a tuple is created of these 3 variables and passed to the “derivative_result” array, where at the end of iterating throughout the “split_func” array, the power rule method is applied to each index of the “derivative_result” array. This is a project I plan on finishing soon, although soon will entail a lot of studying and work which I’m up for, the plan is to implement the shunting-yard algorithm to have an easier time dealing with the order of operations, finishing the other derivative methods, and overall fixing any bugs within the program.
Shunting-Yard Resource –> “https://brilliant.org/wiki/shunting-yard-algorithm/
Main Code –> Custom Functions –>