Lecture 82
#include <iostream>
#include <conio.h>
#include <math.h>
double dPi;
using namespace std;
int main(void)
{
dPi = 4.0 *
tan(1.0);
cout<<"Tan: "<<dPi;
dPi = 4.0 *
cos(1.0);
cout<<"\nCos: "<<dPi;
dPi = 4.0 *
sin(1.0);
cout<<"\nSin: "<<dPi;
dPi = 4.0 *
log(1.0);
cout<<"\nLog: "<<dPi;
dPi = 4.0 *
atan(1.0);
cout<<"\nInverse Tan : "<<dPi;
dPi = 4.0 *
acos(1.0);
cout<<"\nInverse Cos : "<<dPi;
dPi = 4.0 *
asin(1.0);
cout<<"\nInverse
Sin : "<<dPi;
dPi
=sqrt(4);
cout<<"\nSqrt : "<<dPi;
getch();
return 0;
}
Code view in dev compiler:
Compile the program Ctrl+F9
Run program Ctrl+F10