Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
expm1
//g++ 5.4.0 // Zadanie: http://mars.iti.pk.edu.pl/~bieniasz/zajecia_1_13.pdf // Wyniki w Excelu: https://drive.google.com/open?id=1H9812jgolszp7SnOdd3CLj8-lAGjvjxE #include <cmath> #include <iostream> #include <limits> using T = double; T f(T x) { return (1 - exp(-x)) / x; } T g(T x) { return -expm1(-x) / x; } int main() { T x; std::cout.precision(std::numeric_limits<T>::max_digits10); while (std::cin >> x) { std::cout << g(x) << '\n'; } }
run
|
edit
|
history
|
help
0
Cours C++
Minimum Vertices to Traverse Directed Graph
11080 WIP
Dar
დიოფანტეს განტოლება
thermal_containers
Codigo Luz Led
ExceptionHandling2
Mr
typedef