i want to know how to generate a sine wave using sin() function

y = a * sin (angle in radians)

where a is the amplitude of the wave.
y is the instantaneous amplitude at any point.
A complete cycle is traced out after 2Pi radians or 360 degrees.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.