AMANKANOJIYA/Numerical_Analysis

Take Function Input From user

AMANKANOJIYA opened this issue · 3 comments

Take Function Input From user And use the user-provided function in Two methods
1. Numerical_Analysis
2. Numerical_Integration

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

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

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

show

@old-school-kid