Re: Q: Function for volume calculation
- To: mathgroup at smc.vnet.net
- Subject: [mg5570] Re: [mg5515] Q: Function for volume calculation
- From: Andrei Constantinescu <constant at athena.polytechnique.fr>
- Date: Fri, 27 Dec 1996 01:58:52 -0500
- Sender: owner-wri-mathgroup at wolfram.com
It depends on the accuracy you need. A pretty rough procedure would be: 1. Find the F(r,z) = 0 line with ContourPlot 2. Extract the Line object from the ContourGraphics using Parts. 3. Create an InterpolatingFunction of the type: r = f[z] 4. compute the volume: 2 Pi Integrate[ r , {r, 0, f[z]} , {z, 0, zmax} ] Hope that helps ! Andrei