namespace cpp

C++ lernen, kennen, anwenden

Benutzer-Werkzeuge

Webseiten-Werkzeuge


kennen:include:numbers

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
kennen:include:numbers [2020-06-01 13:15]
rrichter [Beispiel]
kennen:include:numbers [2020-06-01 13:15] (aktuell)
rrichter [Beispiel]
Zeile 25: Zeile 25:
 int main() int main()
 { {
- std::cout << "​e ​         = " << std::​numbers::​e << '​\n';​ +    ​std::cout << "​e ​         = " << std::​numbers::​e << '​\n';​ 
- std::cout << "​log2e ​     = " << std::​numbers::​log2e << '​\n';​ +    std::cout << "​log2e ​     = " << std::​numbers::​log2e << '​\n';​ 
- std::cout << "​log10e ​    = " << std::​numbers::​log10e << '​\n';​ +    std::cout << "​log10e ​    = " << std::​numbers::​log10e << '​\n';​ 
- std::cout << "​pi ​        = " << std::​numbers::​pi << '​\n';​ +    std::cout << "​pi ​        = " << std::​numbers::​pi << '​\n';​ 
- std::cout << "​inv_pi ​    = " << std::​numbers::​inv_pi << '​\n';​ +    std::cout << "​inv_pi ​    = " << std::​numbers::​inv_pi << '​\n';​ 
- std::cout << "​inv_sqrtpi = " << std::​numbers::​inv_sqrtpi << '​\n';​ +    std::cout << "​inv_sqrtpi = " << std::​numbers::​inv_sqrtpi << '​\n';​ 
- std::cout << "​ln2 ​       = " << std::​numbers::​ln2 << '​\n';​ +    std::cout << "​ln2 ​       = " << std::​numbers::​ln2 << '​\n';​ 
- std::cout << "​ln10 ​      = " << std::​numbers::​ln10 << '​\n';​ +    std::cout << "​ln10 ​      = " << std::​numbers::​ln10 << '​\n';​ 
- std::cout << "​sqrt2 ​     = " << std::​numbers::​sqrt2 << '​\n';​ +    std::cout << "​sqrt2 ​     = " << std::​numbers::​sqrt2 << '​\n';​ 
- std::cout << "​sqrt3 ​     = " << std::​numbers::​sqrt3 << '​\n';​ +    std::cout << "​sqrt3 ​     = " << std::​numbers::​sqrt3 << '​\n';​ 
- std::cout << "​inv_sqrt3 ​ = " << std::​numbers::​inv_sqrt3 << '​\n';​ +    std::cout << "​inv_sqrt3 ​ = " << std::​numbers::​inv_sqrt3 << '​\n';​ 
- std::cout << "​egamma ​    = " << std::​numbers::​egamma << '​\n';​ +    std::cout << "​egamma ​    = " << std::​numbers::​egamma << '​\n';​ 
- std::cout << "​phi ​       = " << std::​numbers::​phi << '​\n';​+    std::cout << "​phi ​       = " << std::​numbers::​phi << '​\n';​
 } }
 </​code>​ </​code>​
  
kennen/include/numbers.txt · Zuletzt geändert: 2020-06-01 13:15 von rrichter