How do you turn a string gathered from input into an actual function? For example,
>>>function = input("Enter a function: ")
>>>Enter a function: "sin(t)"
And then I'd be able to use the entered function. Is there a library to parse through the string and return a math function like so?