Can't convert expression to float
问题 I'm trying to learn the ins and outs of symbolic manipulation in python (I'm a beginner). I have the following basic code, and the output is giving me an error telling me that it "can't convert expression to float". What's wrong with this code: from sympy import * from math import * def h(x): return log(0.75392 * x) x = symbols('x') hprime = h(x).diff(x) print(hprime) 回答1: This is a classic example of what is said in PEP-8 about wildcard imports: Wildcard imports ( from <module> import * )