Help in Mathematica code for solutions expansion of differential equations

Click For Summary

Discussion Overview

The discussion revolves around seeking assistance with Mathematica code for solving four differential equations using NDSolve. Participants are sharing suggestions on how to improve the code and where to seek further help.

Discussion Character

  • Technical explanation, Homework-related

Main Points Raised

  • One participant expresses difficulty in getting their NDSolve code to work and requests suggestions.
  • Another participant advises moving the question to a dedicated Mathematica forum and suggests simplifying the code to focus on one equation for clarity.
  • There is a query about the existence of a Mathematica forum, which is confirmed by another participant who provides links to relevant forums.
  • Participants recommend that the original poster simplify their notebook and clearly describe the issue with the results they are obtaining.
  • One participant shares a method for converting code to Raw Input form for easier sharing and provides an example of NDSolve usage.
  • A participant expresses gratitude towards others for their assistance.

Areas of Agreement / Disagreement

Participants generally agree on the need for simplification of the code and the importance of clearly articulating the problem. However, there is no consensus on the specific solutions or approaches to the original poster's issue.

Contextual Notes

Limitations include the lack of detail regarding the specific differential equations and the exact nature of the issues encountered with NDSolve. The discussion does not resolve the underlying problems with the code.

Who May Find This Useful

Individuals seeking help with Mathematica coding, particularly in the context of solving differential equations, may find this discussion useful.

jadyliber
Messages
11
Reaction score
0
I need to NDsolve four differential equations.
But I find my code does not work. Who can give me some suggestions? Thanks!
 
Last edited:
Physics news on Phys.org
jadyliber said:
I need to NDsolve four differential equations.
But I find my code does not work. Who can give me some suggestions? Thanks!
the equations:

Move it to the Mathematica forum, get rid of all that messy code, scrap all but one of them, write it neatly, and wait for help.
 
I am sorry for it.
by the way, is there a Mathematica forum? thanks for advices
 
jadyliber said:
is there a Mathematica forum?

Here
https://www.physicsforums.com/forumdisplay.php?f=189
or here
http://forums.wolfram.com/student-support/discussions/4/

As suggested, simplify your notebook as much as possible and describe exactly what the problem is with the result you are getting. Look at other postings there to see how people include a small notebook with their question, demonstrate their problem and ask their questions. Look at the posts that get answers for good examples.

The posts that do not get good answers say "Something is wrong using NDSolve. what do I do?"
 
Last edited:
Also, if you need to cut and paste your code, first convert it to Raw input form: highlight it, then select Cell/Convert To/Raw Input form. Then cut and paste it like I do below. Then wrap it in the code blocks:

Code:
mysol = NDSolve[{Derivative[1][y][x] + 
      (2*x + 1)*y[x] == 0, y[0] == 1}, y, {x, 0, 5}]
myPlot = Plot[y[x] /. mysol, {x, 0, 5}]
 
Thanks again to bill & jack
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K