PROGRAMMING:Function programming - piecewise function
Write a function to calculate the value of the following piecewise function.

Input format:
Enter the value of a real number X
Output format:
Output the result value of Y
Input example:
0
Output example:
y=-1.000000
Input example:
three point five
Output example:
y=-8.619337
answer:If there is no answer, please comment

Input format:
Enter the value of a real number X
Output format:
Output the result value of Y
Input example:
0
Output example:
y=-1.000000
Input example:
three point five
Output example:
y=-8.619337
answer:If there is no answer, please comment