Student Support Forum: 'Making a Sine Graph with Lines' topicStudent Support Forum > General > Archives > "Making a Sine Graph with Lines"

 Next Comment > Help | Reply To Topic
 Author Comment/Response Josh Holmes 05/14/12 9:17pm I am trying to create a Sin function with lines. Specifically this function has the exact values -1, 0, 1 at the appropriate integers and it is a continuous and piecewise linear function. I want a formula for LineCosine as well. Plotting both would be awesome as well. Here is what I have but I need the x intercepts for the sin function to be -2, and 2 and do not know what to adjust: ListLinePlot[Table[{x, Sin[x]}, {x, -4, 2 Pi, 2}], MaxPlotPoints -> 6, PlotStyle -> {Thickness[0.004]}, Axes -> True, PlotRange -> {{-4.5, 4.5}, {-1.5, 1.5}}, AspectRatio -> Automatic, ImageSize -> 450, Ticks -> {Range[-6, 6], Range[-6, 6]} ] URL: ,

 Subject (listing for 'Making a Sine Graph with Lines') Author Date Posted Making a Sine Graph with Lines Josh Holmes 05/14/12 9:17pm Re: Making a Sine Graph with Lines Bill Simpson 05/15/12 11:15pm
 Next Comment > Help | Reply To Topic