no the assignment isnt wrong. I dont know how you are getting 0 every time but this is the way we were told to do it
so if t = 5 then 2*pi*50*5 is not equal to 0 and getting the sin of that answer isnt 0 either
i need to find the angle then multiply the angle by sin then mulitply that answer by 0.22
ok. I was reading over these comments and as you were saying that 0.22 * (sin(some integer * pi)) will always equal to zero that is why i have 3 seperate equations
angle = 2 * pi * 50 * t; first one finds the angle
value = sin(angle); second get the sin of that angle
(i know this one is wrong i havnt changed it yet)
sin(angle)*0.22; last one multiplies the answer you get in the second equation by 0.22
so for example lets just say the answer to the first equation is 30
you then find the sin of that which equals 0.5
then multiply 0.5 by 0.22
sin and pi are never in the same equation
so for example lets just say the answer to the first equation is 30
If this is the case, then t is not an integer. It would have to be 0.3/pi, or around 0.9425.
you then find the sin of that which equals 0.5
sin() accepts angles in radians, not degrees. sin(30) is approximately -0.988. Like Moschops said, if you enter that in a calculator, you will get 0.5 because calculators work by default in degrees. The trigonometric functions of every language I've ever seen work by default in radians.
sin and pi are never in the same equation
So, what you're saying is that you can prove that anything equals anything as long as you split your statements into more expressions? For example,
1 2 3 4
a=1+2
b=a*3;
if (b==5){ //should always be true
}
EDIT: If I appear to be sarcastic, I'm not trying to be. I'm trying to make you realize yourself the problem in your reasoning.
ok so what multiples of pi can i use?
still going from 0 to 40
I know 10 = pi
and 20 = 2pi
i need to get all the values inbetween going up in two so i need 20 values