I am making a calculator which shoul not use cmath.h. I was just thinking that how is it possible to calculate trigonometric functions without cmath.h. Please help me. Thanks in advance.
momin90909
0
Newbie Poster
Recommended Answers
Jump to PostUse google. Find out how a trig function is calculated in the real world. Then once you find that, convert the equation into code.
Jump to PostYou can try computing trigo values by this :
sin x = x - (x^3 / 3!) + (x^5 / 5!) – (x^7 / 7)! + ……………..
cos x = 1 - (x^2 / 2!) + (x^4 / 4!) – (x^6 / 6!) + ……………..
…
All 6 Replies
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
mridul.ahuja
4
Coding Enthusiast
Nathaniel10
34
Junior Poster
mridul.ahuja
4
Coding Enthusiast
momin90909
0
Newbie Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
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.