Implemented function for analytical sol