For example, If I give the it a circle and a square, it can tell me how much area they overlaps.
Wikipedia has a list of numerical libraries.
I like Math.Net
use GPC library.