-1
$\begingroup$

How do I StreamPlot the differential equation $\frac{dy}{dx} = \sin (y)$ in Mathematica. I get blank axes each time. I don't quite understand the documentation regarding the first set of parameters.

I am thankful for any help.

$\endgroup$
4
  • $\begingroup$ See mathematica.stackexchange.com/a/8848/4999 $\endgroup$
    – Michael E2
    Jan 22 '17 at 20:56
  • $\begingroup$ Thanks but sin [y] does not produce any results. Am I typing the function in properly? Also, why is the first parameter always "1"? $\endgroup$
    – Wulfgang
    Jan 22 '17 at 21:05
  • $\begingroup$ Mathematica is case sensitive. Use Sin[y]. $\endgroup$
    – Chris K
    Jan 22 '17 at 21:09
  • $\begingroup$ You need to familiarize yourself with basic language fundamentals. For instance, all built-in functions start with a capital, including standard mathematics functions. Here's one starting place: reference.wolfram.com/language/tutorial/… $\endgroup$
    – Michael E2
    Jan 22 '17 at 21:11
0
$\begingroup$

Try

StreamPlot[{1, Sin[y]}, {x, 0, 2 Pi}, {y, 0, 2 Pi}, Frame -> False, 
            Axes -> True, AspectRatio -> Automatic]

This gives

enter image description here

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.