Demo entry 6361865

数值计算方法

   

Submitted by suzui961228 on May 05, 2017 at 15:42
Language: Matlab. Code size: 324 Bytes.

x1=100000;
y1=single(x1^2-1);
w1=single(y1^(1/2));
z1=single(log(x1-w1));

x2=100000;
y2=double(x2^2-1);
w2=double(y2^(1/2));
z2=double(log(x2-w2));


x3=100000;
y3=double(x3^2-1);
w3=double(y3^(1/2));
z3=double(log(x3-w3));

x4=100000;
y4=double(x4^2-1);
w4=double(y4^(1/2));
z4=double(log(x4-w4));

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).