Representation of trigonometric functions

edited March 2017 in How To...

Hello, Can anyone help me with this problem?.

•Represent the sine and cosine functions, values from 0 to 2*pi radians

• The (0,0) of the cartesian coordinates is located at x=0 and y=width/2 in windows coordinates (just in the left side, half the height).

• The path from 0 to 2*pi has to take the most of the width of the window.

• Implement a function that draws the sine, another one for the cosine, and which input parameters are the color and thickness of the stroke and the width and height of the window.

• Draw as a background the cartesian axes.

the result:





Sign In or Register to comment.