i have to write a function to evaluate the sine of any real number exactly 8 decimal number, using the given formula:
[sin(x) = x - x^3/3! + x^5/5! - x^7/7! + ....]

Anyone please help me i can not workout this question, atleast the body of the program or how to start it, i thought to start with an array but i am lost with this. Thanks in advance

RTFM? If you are doing this in Matlab, they have tonnes of tutorials and documentation that will describe how to do this.

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.