Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #72.7K
(The program below should calculate sine of an angle without using c math library.The angle should be in radian otherwise the program will convert it to radian.The program gives me the wrong output which probably means that it has some logic errors.I think the problem could be with the formula … |
|
am trying to write a program which compute sin using an a equation instead of the function of sin in cmath libry. "the equation is like this Tn = (Tn-2 *(-1) *x*x)/ n*(n-1) [code=cplusplus] #include<iostream> #include<cmath> using namespace std; int main() { int factorial(int); int n =1, i = 1; … |