Re: How to Clear y'[0]
- To: mathgroup at smc.vnet.net
- Subject: [mg57251] Re: [mg57233] How to Clear y'[0]
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Sun, 22 May 2005 00:14:16 -0400 (EDT)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
Clear[y]; will clear y[0]
y[0]=1;
Clear[y];
Simplify[DSolve[{y''[t]==y[t],y[0]==1},y[t],t]]
{{y[t] -> C[2]/E^t - E^t*(C[2] - 1)}}
Bob Hanlon
>
> From: "Joseph Fagan" <noemailplease at nowhere.ru>
To: mathgroup at smc.vnet.net
> Date: 2005/05/21 Sat AM 02:40:21 EDT
> Subject: [mg57251] [mg57233] How to Clear y'[0]
>
> 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.
>