0
$\begingroup$

I'm using Scicoslab in a master's degree that I'm studying.

I have the block GENSIN_f that is a Sine wave generator. This is what it does:

This block is a sine wave generator and its output is defined by the equation:

enter image description here

You can adjust:

The magnitude M with the Magnitude parameter.

The frequency F in radians/second with the Frequency parameter.

The initial phase P in radians with the Phase parameter.

I need to use cos instead of sin without modifying the block.

Given the angle, how can I calculate the cosine of that angle using the sin function?

$\endgroup$
  • $\begingroup$ Shift the phase. $\endgroup$ – amd Jan 10 '18 at 19:27
1
$\begingroup$

$$Mcos(F.t+P)=Msin(F.t+P+{\pi\over 2})$$

| cite | improve this answer | |
$\endgroup$
1
$\begingroup$

Several identities:

$\sin^2 + \cos^2 = 1$

$\cos (\theta) = \sin (\frac \pi 2 - \theta)$.

$\cos (\theta) = \sin (\frac \pi 2 + \theta)$

etc.

https://en.wikipedia.org/wiki/List_of_trigonometric_identities

| cite | improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.