The First Version

the AbstractCalculationFunction class and the Function1 class which is
the subclass of the AbstractCalculationFunction class
The First Version with a Test Program

to test the first version
The correct answer is displayed.
The Second Version with a Test Program

All the other classes are added, and the test program runs fine.
Note that some of the results are not accurate because the constant PI
in the Math class is not accurate enough.