In a project using SciPy and NumPy, when should one use scipy.pi vs numpy.pi vs just math.pi? Is there a difference between these values?
In a project using SciPy and NumPy, when should one use scipy.pi vs numpy.pi
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
So it doesn’t matter, they are all the same value.
The only reason all three modules provide a
pivalue is so if you are using just one of the three modules, you can conveniently have access to pi without having to import another module. They’re not providing different values for pi.