Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Combining solutions from NDSolve' topicStudent Support Forum > General > "Combining solutions from NDSolve"

Next Comment >Help | Reply To Topic
Author Comment/Response
Shahab
10/20/05 2:29pm

Does anyone know how to combine the solutions from NDSolve. I am solving a BVP with the multiple-shooting method. This method divides an interval (0,1) into N intervals. I then run NDSolve in each interval. I store the solution in sol[[n]], 1<n<N. Is there any way to combine the N solutions, each in a small interval, to a single solution in the full interval.

example:
N=100;
length=1;
sol=Array[0,{N}];
Do[
sol[[n]]=NDSolve[{y'[x]==f(y[x],x),g(y[b])==c},y[x],{x,(n-1)length/N,n length/N}];,{n,N}];

Now I get N solutions. How can I combine them into one solution.
Thanks.



URL: ,

Subject (listing for 'Combining solutions from NDSolve')
Author Date Posted
Combining solutions from NDSolve Shahab 10/20/05 2:29pm
Re: Combining solutions from NDSolve Forum Modera... 11/23/05 1:36pm
Next Comment >Help | Reply To Topic