Message Boards Message Boards

0
|
4567 Views
|
4 Replies
|
4 Total Likes
View groups...
Share
Share this post:

Solving y'=y, y(0)=1

Why does the following keep happening to me. Using 10.0.1.0. This is with a clean start, quit the kernel, evaluate the notebook.

enter image description here

POSTED BY: David Arnold
4 Replies

David,

One of the best answers I have seen thus far.

Thanks.

POSTED BY: David Arnold
Posted 10 years ago
POSTED BY: David Keith

What does the phrase "otherwise the rule is executed only if y is called ..." mean? Thanks.

POSTED BY: David Arnold

This works,

In[33]:= Clear[y]
sol = DSolve[{y'[t] == y[t], y[0] == 1}, y[t], t]
Out[34]= {{y[t] -> E^t}}

In[35]:= y[t_] := Evaluate[y[t] /. First[sol]]

In[36]:= y[x]
Out[36]= E^x

otherwise the rule is executed only if y is called ...

POSTED BY: Udo Krause
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract