0
While solving the simple ODE some Error. How to rectify

How to solve dy/dx=ln(x), y(0)=0

This is how I am solving

function yp=f(x,y)
yp=log(x);
endfunction;

x0=0;
y0=0;

x=[2,3];

y=ode(y0,x0,x,f)
plot(x,y,'linewidth',5);

But I am getting the following error

!--error 32
Singularity of log or tan function.
at line 2 of function f called by :
y=ode(y0,x0,x,f)
at line 19 of exec file called by :
8W8xiQM7RhQe7yRpcHTfWAWqtWiWKv.sci", 2)
Kindly help me out


Scilab 15-10-22, 5:47 p.m. RashmiRanjan

Log-in to answer to this question.