#luoguB2148. 再求 f(x,n)
再求 f(x,n)
Cannot parse: (0 , import_utils.normalizeSubtasks) is not a function or its return value is not iterable
题目描述
已知
$f(x,n)=\dfrac{x}{n+\dfrac{x}{(n-1)+\dfrac{x}{(n-2)+\dfrac{\vdots}{\cdots+\dfrac{x}{1+x}}}}}$。
用递归函数求解。
输入格式
第一个数是 的值,第二个数是 的值。( 为实数, 为整数)
输出格式
函数值,保留两位小数。
1
2
0.40