Sinθ vs Cosθ The sinθ wave begins with at the origin, while the cos θ graph begins at (0,1) with the vertex at x=0.
Cscθ Period: 360° Amplitude: 1 The asymptotes of csc θ are where they are because the inverse of infinity, negative infinity, and zero do not exist, so wherever sin θ is zero, scs θ does not exist.
Secθ Period: 360° Amplitude: 1 The asymptotes of sec θ are where they are because the inverse of infinity, negative infinity, and zero do not exist, so wherever cos θ is zero, sec θ does not exist.
Tanθ Period: 360° Amplitude: 1 The asymptotes of tan θ are where they are because infinity and negative infinity are not real numbers.
Cot θ Period: 360° Amplitude: 1 The asymptotes of cot θ are where they are because the inverse of zero does not exist, so wherever tan θ is zero, cot θ does not exist.
void loop () { while (k<2000){ for (int x=0;x<180;x++) { sinVal = (sin(x*(3.1412/180))); toneVal=2000+(int(sinVal*1000)); tone(8.toneVal); k++; delay(2); }}
for (int x=0;x<180;x++) { sinVal = (sin(x*(3.1412/180))); toneVal=2000+(int(sinVal*1000)); tone(8,toneVal); delay (5); } } To change the tone of the siren, we changed the number in the sinVal perenthases. To make it loop and change every five seconds, we set the delay to five.