-->
当前位置:首页 > 题库

PROGRAMMING:Calculating piecewise function [2]

Luz5年前 (2021-05-10)题库515
This topic requires the calculation of the following piecewise function $$f (x) $:
![ f2-11](~/2)
Note: you can include 'math. H' in the header file, and call the 'sqrt' function to find the square root and the 'POW' function to find the power.
###Input format:
The input gives the real number x on one line.
###Output format:
Output in the format of "f (x) = result" in one line, where both X and result retain two decimal places.
###Input sample 1:
```in
ten
```
###Output sample 1:
```out
f(10.00) = 3.16
```
###Input sample 2:
```
-0.5
```
###Output sample 2:
```
f(-0.50) = -2.75
```






answer:If there is no answer, please comment