2024-11-23 10:50:59
#include <cmath>
#include<math.h>
double SolveEquations(double x,double y,double z);//定义一个求方程的函数
int main()
{
double value = SolveEquations(x,y,z);
//简单的输入输出就不写了,可以直接在上面将x,y,z改成数值。
return 0;
}
double SolveEquations(double x,double y,double z)
{//将方程拆分成两部分计算
if(x = 0 && y ==0 && z = 0)
return 0 ;
double value1 = pow(x*y,2);
double value2 = pow(0.683*z,2);
double sum = sqrt(value1+value2);
return sum;
}
简单的输入输出就不写了指的时候啥呀
2024-11-23 16:20:25