已知函数定义float dothat(int n,doublex