Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Lab6 v0.5 Sin,cos,tan,cot
//gcc 5.4.0 //Start Program //Int in //double sin //double cos //double tan //double cot //READ x //COMPUTE sin(x) // sin=((x-3x^3)/3!)+((x^5)/5!)-(x^7)/7!); //COMPUTE cos(in) // cos=((1-x^2)/2!)+((x^4)/4!)-((x^6)/6!); //COMPUTE tan(in) // tan=sin/cos //COMPUTE cot(in) // cot=1/tan //PRINT sin, cos,tan, and cot //End Program // #include <stdio.h> int main(void) { int x; double sin; double cos; double tan; double cot; scanf("%d",&x); sin=((x-(x*x*x))/6)+((x*x*x*x*x)/120)-((x*x*x*x*x*x*x)/5040); }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
no output
Intro to Arrays with comments
hwkpractice
some_tests
A_141128_MatricesProducto
Star 1,3
C_141203_PALINDROMO
TeleBook
ECE 2574 1/23
B_141212_RolloPunteros
Please log in to post a comment.