Java programme with functions helpful in scientific calculations.