#646. 求f(x,n)
求f(x,n)
Description
已知
$f(x,n)=\\sqrt{n+\\sqrt{(n-1)+\\sqrt{(n-2)+\\sqrt{...+2+\\sqrt{1+x}}}}}$
计算$x=4.2,n=10$以及$x=2.5,n=15$时的$f$的值。
## Input Format
输入$x$和$n$。
## Output Format
函数值,保留两位小数。
```input1 4.2 10
```output1
3.68
已知
$f(x,n)=\\sqrt{n+\\sqrt{(n-1)+\\sqrt{(n-2)+\\sqrt{...+2+\\sqrt{1+x}}}}}$
计算$x=4.2,n=10$以及$x=2.5,n=15$时的$f$的值。
## Input Format
输入$x$和$n$。
## Output Format
函数值,保留两位小数。
```input1 4.2 10
```output1
3.68