❓ Student Question
[math with python] did i miss something? tried to find π using Gaussian integral in python
📚 General Studies 🎓 University ✅ Expert answer available

Answer preview

The Gaussian integral ∫e^(-x²)dx from -∞ to ∞ equals √π, so you can find π by squaring this result. Your Python implementation likely has issues with integration limits, numerical precision, or the scipy.integrate setup.
🔓 Get the complete answer from Raphael — message now for full solution

How to approach this question

1
Step 1: Verify your integration bounds are properly set to simulate infinity using large values
2
Step 2: Check your integrand function definition and ensure proper exponential syntax
3
Step 3: Examine numerical integration method choice and adjust tolerance parameters for accuracy

Get the full answer from Raphael

Expert tutor — responds within 1 hour — USA · UK · Australia

WhatsApp Raphael Now or email: [email protected]

Related questions

How do I properly set infinity bounds in scipy.integrate.quad?Why is my numerical integration giving inaccurate results for the Gaussian integral?What's the difference between quad, quadrature, and other integration methods in Python?How can I improve numerical precision when calculating mathematical constants in Python?What are common errors when implementing the error function to find π?