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
map::swap()_30-Seconds-of-C++
Compatibilità
Sum of digits of number
Continuous Sub Set with given sum
FindMissingBinom
Factoriel
Perf measurement
ReplaceGreaterSum in BST
sa
simple use of namespace