Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Six Trigonometric Functions
// Six Trigonometric Equations #include <iostream> #include <cmath> using namespace std; const double pi = 3.14159; const char newline = '\n'; int main () { double x=-5; double y=-2; double r=sqrt((x*x)+(y*y)); cout << "sin = "; cout << y; cout << "/"; cout << r; cout << newline; cout << "cos = "; cout << x; cout << "/"; cout << r; cout << newline; cout << "tan = "; cout << y; cout << "/"; cout << x; cout << newline; cout << "sec = "; cout << r; cout << "/"; cout << x; cout << newline; cout << "csc = "; cout << r; cout << "/"; cout << y; cout << newline; cout << "cot = "; cout << x; cout << "/"; cout << y; }
run
|
edit
|
history
|
help
0
sdefrgthyjukiujyhtg
HelloWorldExample
PrePostIncrOp
A number is prime or not
1
Bind Function
Nth max element in BST
OperatorOverload
grid
Best way for getting more precision no.