MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to Clear y'[0]


Hi Joseph,

Enter "y[0]=." to clear the definition of y[0].

In[42]:=
y[0]=.

In[44]:=
DSolve[{y''[t]\[Equal]y[t],y[0]==1},y,t]

Out[44]//InputForm=
{{y -> Function[{t},
     -((-E^(2*t) - C[2] + E^(2*t)*C[2])/E^t)]}}

Best regards,
/J.M.

Joseph Fagan wrote:
> Newbie.
> Acidently input
> DSolve[{y''[t] == y[t], y[0] = 1}, y, t]
> 
> and end up setting y[0] to 1, instead of
> 
> DSolve[{y''[t] == y[t], y[0] == 1}, y, t]
> 
> However
> 
> Clear[ y , y[0] , "y*" ]
> 
> fails to Clear y[0] (not a symbol or a string) and I need to exit the 
> program and start again.
> 
> 


  • Prev by Date: Re: how to map function with over 1 arguments to list
  • Next by Date: Mapping Data
  • Previous by thread: Re: How to Clear y'[0]
  • Next by thread: Re: How to Clear y'[0]