user
Task: Write a C++ function for calculating the approximate area of a circle.


assistant
double calculateCircleArea(double radius)
{
    const double pi = 3.14159;
    return pi * radius * radius;
}