Group Abstract Group Abstract

Message Boards Message Boards

0
|
1.3K Views
|
3 Replies
|
4 Total Likes
View groups...
Share
Share this post:

NDSolve documentation example doesn't work on 14.1

POSTED BY: Pierre Dehez
3 Replies

You are right! I did'nt realize that when opening a new Notebook, variables previously defined were still active. Thanks to both of you!

POSTED BY: Pierre Dehez

As Ahmed said, you seem to have defined y[0]. This is usually done by accident using a single = instead of a double == in an earlier code. You can restart the kernel or try y[0] =. or Clear[y].

It's trickier when one makes this mistake on the derivative equation. To clear y'[x], you use Clear[Derivative] or y'[x] =. (this does not seem necessary in the OP's case, though.)

POSTED BY: Michael Rogers

Works fine with my V14.1
Maybe you have y pre-defined. Try on fresh kernel?

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