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.
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
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.
add a comment |
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.
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
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
add a comment |
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.
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
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.
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
plotting
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.
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
add a comment |
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
add a comment |
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!
add a comment |
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]

If you meant the tilt to be to the left for negative y's, use y instead of Abs[y].
add a comment |
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!
add a comment |
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!
add a comment |
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!
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!
answered 3 hours ago
Reedinationer
415
415
add a comment |
add a comment |
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]

If you meant the tilt to be to the left for negative y's, use y instead of Abs[y].
add a comment |
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]

If you meant the tilt to be to the left for negative y's, use y instead of Abs[y].
add a comment |
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]

If you meant the tilt to be to the left for negative y's, use y instead of Abs[y].
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]

If you meant the tilt to be to the left for negative y's, use y instead of Abs[y].
answered 58 mins ago
Bill Watts
2,4631515
2,4631515
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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