如何用Matlab编辑,解下面这个超越方程?X=0.48+0.07*lgX
问题描述:
如何用Matlab编辑,解下面这个超越方程?
X=0.48+0.07*lgX
答
solve('x=0.48+0.07*log(x)/log(10)')
ans =
[ .13895018452678355265880801063905e-6]
[ .45613664764898117713727931846620]
作图:
x=0:0.001:0.8;
y1=x;
y2=0.48+0.07*log10(x);
plot(x,y1,x,y2,'r')
另一个交点:
x=0:1e-8:1e-6;
y1=x;
y2=0.48+0.07*log10(x);
plot(x,y1,x,y2,'r')