Click here to Skip to main content
15,906,816 members
Please Sign up or sign in to vote.
1.75/5 (4 votes)
See more:
please tell me how do i write sin(x) code?
its awkward to ask this simple question, but im stuck.
Posted
Comments
gggustafson 22-Apr-14 11:57am    
This is homework or a school assignment? Otherwise Math.Sin ( x ) where x is in radians.
Alexis i 22-Apr-14 11:58am    
no, i swear this is not school assignment.
gggustafson 22-Apr-14 14:22pm    
Then use the built-in Sin function. Don't try to use the series as a number of errors will creep in.

I refer you back to your previous questions on this subject, which I note have mysteriously vanished...but the answers don't change: you have been given the algorithm, you have been given an implementation in C - all you have to do to complete your homework is write your own code.

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

It's not exactly complicated: one loop, and that contains only two lines of code!
 
Share this answer
 
You keep asking the same question over and over.

See http://msdn.microsoft.com/en-us/library/system.math.sin(v=vs.110).aspx[^]

If you are stuck on something specific then ask something specific. That link has sample code and documentation. It's everything you need.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900