Notice you have the input(prompt4) call before you have the syms A(t) call. Because of that order, the symbolic variable t has not been defined yet, and so is not available for when the user types in 30*exp(t/20) in response to the input() prompt.
You need to move the syms line to before the S= line.
Best Answer