Question: Use solutions from numericaly solved differential equations

hello

I am trying to eventually make a loop which solves this equation over a range of values for E,

But the issue I am having now is getting the program to call the values found for dsol(10) without manually imputing them.

Thank you in advance, andrew

> E := -1.0;

> DE := -(1/2)*(diff(diff(F(x), x), x))+(x^4-3)*exp((-x^2)*(1/2))*F(x) = E*F(x);        

> ini := F(-10) = exp(-10*(-2*E)), (D(F))(-10) = exp(-10*(-2*E))*(-2*E);

> dsol := dsolve({DE, ini}, F(x), numeric, range = -10 .. 10);

> dsol(10);
               
[x = 10., F(x) = -1.78208607202549792 10 ,(d/dx)F(x) = -2.52025031638483191 10 ]

> B := ((-2*E)*F(10)+(D(F))(10))*exp(-10*(-2*E))/(2*(-2*E));

             3.606770776 10   F(10) + 2.550372074 10   D(F)(10)


 

Please Wait...