Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
lab6
//gcc 5.4.0 #include <stdio.h> #include <math.h> int main(void) { int x; scanf("%d",&x); float sin = x - (x*x*x)/(3*2*1) + (x*x*x*x*x)/(5*4*3*2*1) - (x*x*x*x*x*x*x)/(7*6*5*4*3*2*1); float cos = 1 - (x*x)/(2*1) + (x*x*x*x)/(4*3*2*1) - (x*x*x*x*x*x)/(6*5*4*3*2*1); float tan= sin/cos; float cot= cos/sin; printf("the result is %f\n ",sin); printf("the result is %f\n ", cos); printf("the result is %f\n ",tan); printf("the result is %f\n ",cot); return 0; }
run
|
edit
|
history
|
help
0
b=1,c=1
ARREGLO DE VARIABLES DE TIPO STRUCT
abc.c
SOLUCIONES_TRABAJO_05
14th Dec Project1 v0.2
strcat
Test 2
Project 3 Part 1 v1.3
C programming final grade
C Pointers Experiment (So bad don't use)