We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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:
Thanks.
Answers
start with this. you need a loop.
show your code and we can help you with your homework
@Hakken --
You may want to look at the simple example sketches on the
sin()
andcos()
reference pages, if you haven't already:You may also be interested in searching the forums for recent discussions related to "plot" "plotting" "graphing" and "oscilloscope". For example: