problem with sin equation

Pages: 123
i need 20 values


Which is exactly what my code above does.

I know 10 = pi
and 20 = 2pi


No... 3.14159 = pi
and 6.28318 = 2pi
Last edited on
i mean i ready know the values for 10 and 20 from the 0 to 40 list
0 = 0
1 = ?
2= ?
.
.
10 = pi
.
.
20 = 2pi
.
.
40 = ?

i need to find the values inbetween
and did you see the link i put in the other reply? the equation im trying to use is possible its part of the Fourier Series
http://www.cplusplus.com/forum/beginner/55281/2/#msg297647

And don't use the = sign so loosely. It has a very specific mathematical meaning.
Last edited on
the equation im trying to use is possible its part of the Fourier Series


The equation you're trying to use is:

y = sin (x * pi);

You want your tenth point to be where y = sin(pi). No worries. Here are the points you want:

0 * pi
0.1 * pi
0.2 * pi
0.3 * pi
0.4 * pi
0.5 * pi
0.6 * pi
0.7 * pi
0.8 * pi
0.9 * pi
1.0 * pi
1.1 * pi
1.2 * pi
1.3 * pi
1.4 * pi
1.5 * pi
1.6 * pi
1.7 * pi
1.8 * pi
1.9 * pi
2.0 * pi

Do you get the pattern?


Last edited on
Topic archived. No new replies allowed.
Pages: 123