# How do I get area of an arbitrary shape using numerical integration? [closed]

I would like to get area of an arbitrary shape (using numerical integration).

For instance like this:

How do I get that using numerical integration?

## closed as off-topic by Nick Peterson, TMM, Davide Giraudo, mau, TZakrevskiyJan 7 '14 at 10:24

This question appears to be off-topic. The users who voted to close gave these specific reasons:

• "This question is not about mathematics, within the scope defined in the help center." – mau, TZakrevskiy
• "This question is missing context or other details: Please improve the question by providing additional context, which ideally includes your thoughts on the problem and any attempts you have made to solve it. This information helps others identify where you have difficulties and helps them write answers appropriate to your experience level." – Nick Peterson, TMM, Davide Giraudo
If this question can be reworded to fit the rules in the help center, please edit the question.

For example consider the shape above. Draw a uniform grid over it. Each small square has an area $A$ which is easy to calculate. Now just count how many squares your shape covers (i.e. the dark red squares in the 3rd figure).I count 37. Thus the area of the complex shape is approximately $37*A$. The smaller you make A, the better your approximation will be.
• What do you mean by weight? – Hamed Kamrava Dec 14 '15 at 4:05