Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
FUNP C++
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
#include <iostream> // funp.cpp #include <cmath> using namespace std; double funp(double x) { double rad,a,b,c,d,e,f,funp; rad = x * M_PI / 180; a = pow(x, 1/4); b = sqrt(x); // cout << b << endl; c = cos(rad); cout << c << endl; d = log10(x); // cout << d << endl; e = exp(b); f = log10(b) * log(e); funp = a + b + c + d + e + f; return funp; } int main() { double x = 90.; cout << x << " " << funp(x) << endl; system("pause"); }
clang++
Show compiler warnings
[
+
] Compiler args
[
+
]
Show input
Compilation time: 0.62 sec, absolute running time: 0.14 sec, cpu time: 0.01 sec, memory peak: 5 Mb, absolute service time: 0,9 sec
edit mode
|
history
Error(s):
sh: 1: pause: not found
90 6.12323e-17 13206.7