Home > other >  How to calculation the volume of irregular objects in Python
How to calculation the volume of irregular objects in Python

Time:11-17

In Python, if need to calculate the volume of an irregular object, from a perspective in the past every a certain thickness of cross section area, change through what algorithm can calculate its volume?

CodePudding user response:

From the Angle of mathematics:
Can be cut each slice approximate as cylinder, volume for area multiplied by the height, set up the first piece of wafer volume I to V (I) (I)=k * area (I), k (I) for the wafer level, area (I) for the area, so when the chip of the total number of n tends to infinity, volume V is to sum the integral (vi)

Python's point of view, is the summation: volume=sum (the thickness of the thin skin * area)
  • Related