Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Lab6 v0.5 Sin,cos,tan,cot
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
//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); }
gcc
Show compiler warnings
[
+
] Compiler args
[
+
]
Show input
edit mode
|
history
|
discussion