General Question

Mariah's avatar

Is there any way to manipulate a sine function such that the amplitude when it is positive is larger than when it is negative?

Asked by Mariah (18952 points ) November 28th, 2012

Without using a piecewise function? I’m thinking I’m gonna need a piecewise function, but it would be so much more elegant without.

If my title wasn’t clear, basically what I’m looking for is a sine wave that has a peak at y=2 but a trough at y=-1.

This is not homework.

Observing members: 0 Composing members: 0

14 Answers

Mariah's avatar

Herp derp. I think I have an effective solution. Not quite what I was looking for, but. Just a slight vertical shift upwards. More of the wave will then lie above the x axis. If anyone has something better, do chime in!

Seiryuu's avatar

What @Mariah said. Your sine function would have an amplitude of 1.5 centered around y = 0.5.

ETpro's avatar

It wouldn’t fit the definition of a sine wave in that case

bob_'s avatar

f(x) = (sin x) * (exp(sin x))

Response moderated (Spam)
Mariah's avatar

@bob….you’re a genius.

bob_'s avatar

@Mariah Always happy to help! :)

Out of curiosity, what do you need this for?

Mariah's avatar

I have a project in the works. I’ll PM you.

BonusQuestion's avatar

Isn’t the maximum of (sin x) * (exp(sin x)) the number e and its minimum -1/e?

Mariah's avatar

The details aren’t important. @bob_‘s function does what I need, although I would still be interested if there were other ideas.

Response moderated (Spam)
BonusQuestion's avatar

Well, then take any continuous function f(x) over [-1, 1] and consider f(sin(x)). It seems to do what you want to do. You can choose f(x) to be strictly increasing or strictly decreasing to make sure it comes out to have only one “wave”.

BonusQuestion's avatar

More precisely if maximum and minimum values of f over [-1, 1] are M and m, respectively, then the function g(x) = (3 f(sin x) – (M+2m))/(M – m) has a maximum of 2 and a minimum of -1.

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther