clear all;x0=0.5;x2=0.9;h=0.1;while(x0<x2) x0=x0+0.1; disp(x2-x0); % <-- I added this lineendx0
Standard input is empty
0.30000 0.20000 0.10000 1.1102e-16 -0.100000 x0 = 1.00000
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!