Areacirc function:
The areacirc function can be called from the Command Window as shown here, or from a script. Here is a script which will prompt the user for the radius of one circle, call the areacirc function, to compute and return the area and circumference of the circle, and print the answer:
>> calcareacirc
Please enter the radius of the circle: 5.2
For a circle with a radius of 5.2,
the area is 84.9 and the circumference is 32.7