-1

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.

Michael E2
  • 235,386
  • 17
  • 334
  • 747
Wulfgang
  • 103
  • 3
  • See http://mathematica.stackexchange.com/a/8848/4999 – Michael E2 Jan 22 '17 at 20:56
  • Thanks but sin [y] does not produce any results. Am I typing the function in properly? Also, why is the first parameter always "1"? – Wulfgang Jan 22 '17 at 21:05
  • Mathematica is case sensitive. Use Sin[y]. – Chris K Jan 22 '17 at 21:09
  • 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: http://reference.wolfram.com/language/tutorial/GettingStartedOverview.html – Michael E2 Jan 22 '17 at 21:11

1 Answers1

0

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

Pirx
  • 4,139
  • 12
  • 37