求根号使用sqrt函数,然后使用这个函数要用include<math.h>头文件
根号用函数sqrt,你真不容易,输入一个对号double z = (a+b)/2.0 + sqrt(a) - (y-x);
用sqrt