matlab中solve语句y=input('please input relativeroughness:');z=input('please input Re:');[x]=solve('1/sqrt(x)=1.74-2*log10(2*y+18.7/(z*sqrt(x)))','x');x=subs(x); fprintf('沿程损失系数是%15.14f\n',x)当y=0.01,z=8e7结果x=0但是把数直接

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/09 13:51:04
matlab中solve语句y=input('please input relativeroughness:');z=input('please input Re:');[x]=solve('1/sqrt(x)=1.74-2*log10(2*y+18.7/(z*sqrt(x)))','x');x=subs(x); fprintf('沿程损失系数是%15.14f\n',x)当y=0.01,z=8e7结果x=0但是把数直接
xSQoP+}YZt@G>LV*- c6\D;*{[[285i/7sRZzM6rz!_V}KʩZX-ȺST++BiC6RHO%ʱ?/Xbyq)/qn)jUs@$ Ѧ2:XVV̩FcKdl/霑}gA|OT7#xܶx,.)$|MM)uM N?) 7:n!I 71(5EPﴡ_ &m'/vK1Bz$'59 ".)AK-0Uoy4>h|вA}o.(

matlab中solve语句y=input('please input relativeroughness:');z=input('please input Re:');[x]=solve('1/sqrt(x)=1.74-2*log10(2*y+18.7/(z*sqrt(x)))','x');x=subs(x); fprintf('沿程损失系数是%15.14f\n',x)当y=0.01,z=8e7结果x=0但是把数直接
matlab中solve语句
y=input('please input relativeroughness:');
z=input('please input Re:');
[x]=solve('1/sqrt(x)=1.74-2*log10(2*y+18.7/(z*sqrt(x)))','x');
x=subs(x);
fprintf('沿程损失系数是%15.14f\n',x)
当y=0.01,z=8e7结果x=0
但是把数直接输入方程后的出了结果约为0.038
求教是为什么

matlab中solve语句y=input('please input relativeroughness:');z=input('please input Re:');[x]=solve('1/sqrt(x)=1.74-2*log10(2*y+18.7/(z*sqrt(x)))','x');x=subs(x); fprintf('沿程损失系数是%15.14f\n',x)当y=0.01,z=8e7结果x=0但是把数直接
% 按理,你直接使用solve求解你给定的那个语句时,y,z作为符号变量,应该是很难得到解的
% 试了下,找不到解析解
% 当把y,z的值先代入时,可以得到你所说的解
% 代码贴如下
y=input('please input relativeroughness:');
z=input('please input Re:');
syms x;
exp = 1.74-2*log10(2*y+18.7/(z*sqrt(x))) - 1/sqrt(x);
x=solve(exp, 'x');
x=vpa(x);

我在matlab中写的这句solve语句有问题,r=solve('100=(3.5/(1+r))+(3.5/(1+r).^2)+(103.5/(1+r).^3)') matlab中solve语句y=input('please input relativeroughness:');z=input('please input Re:');[x]=solve('1/sqrt(x)=1.74-2*log10(2*y+18.7/(z*sqrt(x)))','x');x=subs(x); fprintf('沿程损失系数是%15.14f ',x)当y=0.01,z=8e7结果x=0但是把数直接 matlab中,语句x=solve('x+cos(x)=0.6')可以得出结果,为什么语句H0=0.1;x=solve('x+cos(x)=0.5+H0')得不出结果呢? 在MATLAB中x1=solve('x^2+2*x+1')这个语句为什么是错的为什么是这样呢,我的matlab是没有solve才解得出来 matlab中,定义了y='x+1',如果调用solve(‘eq1’,即要求solve('x+1=0','x'). Matlab中solve函数的特殊应用y=f(x);solve('y=0','x');因为f(x)非常复杂,需要定义几个函数.那么用solve的时候如何实现呢? matlab中语句find(y==max(max(y)))什么意思?求教 Matlab语句中[x,y,z]=cylinder(y(z),16)中的16是什么意思? Matlab中如何使用if语句?如果y=x+5在条件0 matlab中,为什么solve不能解三解方程?比如:solve('cos(3a)=1','a') 有没有其它的解法? matlab中语句f=@(x,y)exp(-x.^2/3).*sin(x.^2+2*y)中@(x, 【急】如何在matlab中求解x+arctan(x)-π/2=0?>> syms y>> f=y+atan(y)-(pi)/2f =y - pi/2 + atan(y)>> solve(f,y)ans =0.86033358901937976248389342413766哪里不对啊? MATLAB解方程组,救救菜鸟……小弟输入以下语句:syms x y a b;[x,y]=solve('0.5*x*(x^2+y^2)-x-a-4*b*x','0.5*y*(x^2+y^2)-x-a-2*b*(y-1)','2*x^2+(y-1)^2-4')结果提示如下:Error using ==> solveError,(in allvalues/rootseq) cannot evalu matlab中不是不用定义变量吗?但为啥有在求方程组解时,需要>> syms x y >> [x,y]=solve(x^2+y-6,y^2+x-6),而不是直接用>> [x,y]=solve(x^2+y-6,y^2+x-6),就行了, matlab中的语句y=2.2*power(x-0.25,2)+sin(5*pi*x);数学表达式是什么?为什么我在matlab中找不到power函数 matlab求和问题y=x^2,x取1到20,求和在Matlab中使用for和while语句 MATLAB中语句:options=optimset('Display','iter') 在Matlab 中 使用solve函数求解二元二次方程组clcclear allsyms x yequation1=1351504793280023/309485009821345068724781056 - (y*conj(y))/4 - (252750694268921*3^(1/2)*x*y)/562949953421312 - (3*x*conj(x))/4 ;equation2=8059982666094291/9903520