plotting tilted sine wave











up vote
1
down vote

favorite












I am trying to plot a titled(7% to right side) sine wave type line whose length is 400 units and height of the wave is 90 units.
I want the equation to be in the cartesian coordinates.
kindly help me to resolve this problem.enter image description here



y = a * Sin [(x-h)/b] + k


I have tried this simple equation of sine wave to plot the following points and this plotnis symmetrical. Now my target is to shift or tilt the peak little bit towards the right side.










share|improve this question









New contributor




Muti Ur Rehman Khan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • What have you tried? Also, there are many other parameters of interest for a "sine wave type" like frequency and phase.
    – Pillsy
    5 hours ago










  • sir i have modified my question.
    – Muti Ur Rehman Khan
    5 hours ago















up vote
1
down vote

favorite












I am trying to plot a titled(7% to right side) sine wave type line whose length is 400 units and height of the wave is 90 units.
I want the equation to be in the cartesian coordinates.
kindly help me to resolve this problem.enter image description here



y = a * Sin [(x-h)/b] + k


I have tried this simple equation of sine wave to plot the following points and this plotnis symmetrical. Now my target is to shift or tilt the peak little bit towards the right side.










share|improve this question









New contributor




Muti Ur Rehman Khan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • What have you tried? Also, there are many other parameters of interest for a "sine wave type" like frequency and phase.
    – Pillsy
    5 hours ago










  • sir i have modified my question.
    – Muti Ur Rehman Khan
    5 hours ago













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I am trying to plot a titled(7% to right side) sine wave type line whose length is 400 units and height of the wave is 90 units.
I want the equation to be in the cartesian coordinates.
kindly help me to resolve this problem.enter image description here



y = a * Sin [(x-h)/b] + k


I have tried this simple equation of sine wave to plot the following points and this plotnis symmetrical. Now my target is to shift or tilt the peak little bit towards the right side.










share|improve this question









New contributor




Muti Ur Rehman Khan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I am trying to plot a titled(7% to right side) sine wave type line whose length is 400 units and height of the wave is 90 units.
I want the equation to be in the cartesian coordinates.
kindly help me to resolve this problem.enter image description here



y = a * Sin [(x-h)/b] + k


I have tried this simple equation of sine wave to plot the following points and this plotnis symmetrical. Now my target is to shift or tilt the peak little bit towards the right side.







plotting






share|improve this question









New contributor




Muti Ur Rehman Khan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Muti Ur Rehman Khan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 5 hours ago





















New contributor




Muti Ur Rehman Khan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 5 hours ago









Muti Ur Rehman Khan

112




112




New contributor




Muti Ur Rehman Khan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Muti Ur Rehman Khan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Muti Ur Rehman Khan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • What have you tried? Also, there are many other parameters of interest for a "sine wave type" like frequency and phase.
    – Pillsy
    5 hours ago










  • sir i have modified my question.
    – Muti Ur Rehman Khan
    5 hours ago


















  • What have you tried? Also, there are many other parameters of interest for a "sine wave type" like frequency and phase.
    – Pillsy
    5 hours ago










  • sir i have modified my question.
    – Muti Ur Rehman Khan
    5 hours ago
















What have you tried? Also, there are many other parameters of interest for a "sine wave type" like frequency and phase.
– Pillsy
5 hours ago




What have you tried? Also, there are many other parameters of interest for a "sine wave type" like frequency and phase.
– Pillsy
5 hours ago












sir i have modified my question.
– Muti Ur Rehman Khan
5 hours ago




sir i have modified my question.
– Muti Ur Rehman Khan
5 hours ago










2 Answers
2






active

oldest

votes

















up vote
3
down vote













a=1;h=0;b=1;k=0; (* or whatever you wanted *)
tiltPercent = .07; (* or whatever percent *)
y = (a * Sin[(x-h)/b] + k) - (tiltPercent*x)
Plot[y, {x,0,10}] (* or whatever range *)


Unless I'm misunderstanding the question (very possible) this is not a plotting question, but a question on how to mathematically decrease the Sin function linearly. Let me know if this helps, or I'm way off what you were looking for!






share|improve this answer




























    up vote
    1
    down vote













    Standard sine wave height 90 and period 400.



    y == 90 Sin[(2 π x)/400]


    You want a 7% tilt which I assume means the offset is 0 at y = 0, so the offset should be proportional to the Abs[y]



    Tilted equation.



    y == 90 Sin[(2 π (x - .07 Abs[y]))/400]


    We have a transcendental equation, so use FindRoot.



    Table[{x, y /. FindRoot[ y == 90 Sin[(2 π (x - .07 Abs[y]))/400], {y, Sin[x]}]}, {x, 0, 400, 10}];

    p1 = ListPlot[%];


    Compare with unaltered sine wave.



    p2 = Plot[90 Sin[(2 [Pi] x)/400], {x, 0, 400}];

    Show[p1, p2]


    enter image description here



    If you meant the tilt to be to the left for negative y's, use y instead of Abs[y].






    share|improve this answer





















      Your Answer





      StackExchange.ifUsing("editor", function () {
      return StackExchange.using("mathjaxEditing", function () {
      StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
      StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
      });
      });
      }, "mathjax-editing");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "387"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });






      Muti Ur Rehman Khan is a new contributor. Be nice, and check out our Code of Conduct.










      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f187506%2fplotting-tilted-sine-wave%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      3
      down vote













      a=1;h=0;b=1;k=0; (* or whatever you wanted *)
      tiltPercent = .07; (* or whatever percent *)
      y = (a * Sin[(x-h)/b] + k) - (tiltPercent*x)
      Plot[y, {x,0,10}] (* or whatever range *)


      Unless I'm misunderstanding the question (very possible) this is not a plotting question, but a question on how to mathematically decrease the Sin function linearly. Let me know if this helps, or I'm way off what you were looking for!






      share|improve this answer

























        up vote
        3
        down vote













        a=1;h=0;b=1;k=0; (* or whatever you wanted *)
        tiltPercent = .07; (* or whatever percent *)
        y = (a * Sin[(x-h)/b] + k) - (tiltPercent*x)
        Plot[y, {x,0,10}] (* or whatever range *)


        Unless I'm misunderstanding the question (very possible) this is not a plotting question, but a question on how to mathematically decrease the Sin function linearly. Let me know if this helps, or I'm way off what you were looking for!






        share|improve this answer























          up vote
          3
          down vote










          up vote
          3
          down vote









          a=1;h=0;b=1;k=0; (* or whatever you wanted *)
          tiltPercent = .07; (* or whatever percent *)
          y = (a * Sin[(x-h)/b] + k) - (tiltPercent*x)
          Plot[y, {x,0,10}] (* or whatever range *)


          Unless I'm misunderstanding the question (very possible) this is not a plotting question, but a question on how to mathematically decrease the Sin function linearly. Let me know if this helps, or I'm way off what you were looking for!






          share|improve this answer












          a=1;h=0;b=1;k=0; (* or whatever you wanted *)
          tiltPercent = .07; (* or whatever percent *)
          y = (a * Sin[(x-h)/b] + k) - (tiltPercent*x)
          Plot[y, {x,0,10}] (* or whatever range *)


          Unless I'm misunderstanding the question (very possible) this is not a plotting question, but a question on how to mathematically decrease the Sin function linearly. Let me know if this helps, or I'm way off what you were looking for!







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 3 hours ago









          Reedinationer

          415




          415






















              up vote
              1
              down vote













              Standard sine wave height 90 and period 400.



              y == 90 Sin[(2 π x)/400]


              You want a 7% tilt which I assume means the offset is 0 at y = 0, so the offset should be proportional to the Abs[y]



              Tilted equation.



              y == 90 Sin[(2 π (x - .07 Abs[y]))/400]


              We have a transcendental equation, so use FindRoot.



              Table[{x, y /. FindRoot[ y == 90 Sin[(2 π (x - .07 Abs[y]))/400], {y, Sin[x]}]}, {x, 0, 400, 10}];

              p1 = ListPlot[%];


              Compare with unaltered sine wave.



              p2 = Plot[90 Sin[(2 [Pi] x)/400], {x, 0, 400}];

              Show[p1, p2]


              enter image description here



              If you meant the tilt to be to the left for negative y's, use y instead of Abs[y].






              share|improve this answer

























                up vote
                1
                down vote













                Standard sine wave height 90 and period 400.



                y == 90 Sin[(2 π x)/400]


                You want a 7% tilt which I assume means the offset is 0 at y = 0, so the offset should be proportional to the Abs[y]



                Tilted equation.



                y == 90 Sin[(2 π (x - .07 Abs[y]))/400]


                We have a transcendental equation, so use FindRoot.



                Table[{x, y /. FindRoot[ y == 90 Sin[(2 π (x - .07 Abs[y]))/400], {y, Sin[x]}]}, {x, 0, 400, 10}];

                p1 = ListPlot[%];


                Compare with unaltered sine wave.



                p2 = Plot[90 Sin[(2 [Pi] x)/400], {x, 0, 400}];

                Show[p1, p2]


                enter image description here



                If you meant the tilt to be to the left for negative y's, use y instead of Abs[y].






                share|improve this answer























                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  Standard sine wave height 90 and period 400.



                  y == 90 Sin[(2 π x)/400]


                  You want a 7% tilt which I assume means the offset is 0 at y = 0, so the offset should be proportional to the Abs[y]



                  Tilted equation.



                  y == 90 Sin[(2 π (x - .07 Abs[y]))/400]


                  We have a transcendental equation, so use FindRoot.



                  Table[{x, y /. FindRoot[ y == 90 Sin[(2 π (x - .07 Abs[y]))/400], {y, Sin[x]}]}, {x, 0, 400, 10}];

                  p1 = ListPlot[%];


                  Compare with unaltered sine wave.



                  p2 = Plot[90 Sin[(2 [Pi] x)/400], {x, 0, 400}];

                  Show[p1, p2]


                  enter image description here



                  If you meant the tilt to be to the left for negative y's, use y instead of Abs[y].






                  share|improve this answer












                  Standard sine wave height 90 and period 400.



                  y == 90 Sin[(2 π x)/400]


                  You want a 7% tilt which I assume means the offset is 0 at y = 0, so the offset should be proportional to the Abs[y]



                  Tilted equation.



                  y == 90 Sin[(2 π (x - .07 Abs[y]))/400]


                  We have a transcendental equation, so use FindRoot.



                  Table[{x, y /. FindRoot[ y == 90 Sin[(2 π (x - .07 Abs[y]))/400], {y, Sin[x]}]}, {x, 0, 400, 10}];

                  p1 = ListPlot[%];


                  Compare with unaltered sine wave.



                  p2 = Plot[90 Sin[(2 [Pi] x)/400], {x, 0, 400}];

                  Show[p1, p2]


                  enter image description here



                  If you meant the tilt to be to the left for negative y's, use y instead of Abs[y].







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 58 mins ago









                  Bill Watts

                  2,4631515




                  2,4631515






















                      Muti Ur Rehman Khan is a new contributor. Be nice, and check out our Code of Conduct.










                      draft saved

                      draft discarded


















                      Muti Ur Rehman Khan is a new contributor. Be nice, and check out our Code of Conduct.













                      Muti Ur Rehman Khan is a new contributor. Be nice, and check out our Code of Conduct.












                      Muti Ur Rehman Khan is a new contributor. Be nice, and check out our Code of Conduct.
















                      Thanks for contributing an answer to Mathematica Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      Use MathJax to format equations. MathJax reference.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f187506%2fplotting-tilted-sine-wave%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Category:香港粉麵

                      List *all* the tuples!

                      Channel [V]