Take Function Input From user
AMANKANOJIYA opened this issue · 3 comments
AMANKANOJIYA commented
Take Function Input From user And use the user-provided function in Two methods
1. Numerical_Analysis
2. Numerical_Integration
old-school-kid commented
Use argparse to capture input from the user and use the same in any functions you want. These inputs can also be given from CLI
AMANKANOJIYA commented
Sir, if we use argparse, it will then be totally based on the command line, but then we have to customize it for use inside other projects @old-school-kid
AMANKANOJIYA commented
Sir, What I did is I am going to take function from the user as a string, and when we are going to do the operation, I am using eval to
generate the function and to get the output on the return