Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Get only numerical value from a structured output' topicStudent Support Forum > General > "Get only numerical value from a structured output"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Bill Simpson
10/09/12 12:28pm

In[1]:= fsol[K_,δ_?NumericQ]:=NDSolve[{0.5*Derivative[2,0][u][x,t]+Derivative[0,1][u][x,t]== -Exp[-2 K t],u[-δ,t]==0,u[δ,t]==0,u[x,1]==0},u[x,t],{x,-δ,δ},{t,0,1}];
v=fsol[-1,1]/.{x->0,t->0}

Out[2]= {{u[0,0]->1.87402}}

In[3]:= w=v[[1,1,2]]

Out[3]= 1.87402

URL: ,

Subject (listing for 'Get only numerical value from a structured output')
Author Date Posted
Get only numerical value from a structured output Xiangyu Meng 10/09/12 10:51am
Re: Get only numerical value from a structured ... Bill Simpson 10/09/12 12:28pm
< Previous CommentHelp | Reply To Comment | Reply To Topic