0
$\begingroup$

Sorry for the simple question but it's not clear to me.

Suppose I have this curve:

y = (0.5 * cos(period * (x - phase)) + 0.5)

what does it mean sum and multiply by 0.5?

I mean, 0.5 is in degree (not radians) and what is the difference between y = (0.5 * cos(period * (x - phase)) + 0.5) and y = cos(period * (x - phase))?

$\endgroup$
2
  • $\begingroup$ Can you elaborate any on what your question is? Ostensibly you're asking "How do I multiply by $1/2$?" Is that actually what you're asking? $\endgroup$ Commented Feb 8 at 7:59
  • $\begingroup$ BTW, the two occurrences of 0.5 are not in degrees or radians because neither of them is an angle. Only the input to the cosine is an angle, and that does not contain a 0.5. $\endgroup$ Commented Feb 8 at 8:14

3 Answers 3

2
$\begingroup$

It's a simple trick to turn a function with a range from $-1$ to $1$ into a function with range from $0$ to $1$ (remember that sine and cosine functions go from $-1$ to $1$):

$f(x) \in [-1, 1] \iff \frac{f(x)}{2} \in [-\frac{1}{2}, \frac{1}{2}] \iff \frac{f(x)}{2} + \frac{1}{2} \in [0,1]$

$\endgroup$
0
$\begingroup$

Summing is to move the graph up. In your case it's moving up the graph by 0.5. Multiplying is to change the amplitude of the graph. In your case it's halving the amplitude.

You can analyse a cosine function inside out, by using the parent function $\cos(x)$. For example, $3\cos(x-\frac{\pi}{2})+2$ is the graph of $\cos(x)$:

  1. shifted by $\frac{\pi}{2}$ to the right,
  2. amplified by 3 times, and
  3. shifted upwards by 2 units.
$\endgroup$
0
$\begingroup$

To explain multiply by 0.5 I suggest to have a look at the Intercept theorem.

That's for the multiplication. To sum is simply a translation.

$\endgroup$
1
  • $\begingroup$ This answer is about the first question, not the second you added later. $\endgroup$
    – m-stgt
    Commented Feb 8 at 8:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .