Pi is used for calculating an area of circle. The formula is [tex] \pi * r^{2} [/tex] Formula of calculating rectangle's area is width * height. Formula of calculating triangle's area is [tex] \frac{1}{2} * b * h[/tex] when b is base and h is height.