/* * Rechnernutzung in der Physik, WS 2011/12, Blatt 4, Aufgabe 9 * * Eulersche Zahl. Spielerei mit dem Ausdruck (1+1/j)^j */ #include #include #include // Funktionsdeklaration der "externen" Routine(n) // hier: eine einfache mathematische Funktion als Beispiel #include "mathhelp.h" using namespace std; int main() { int n ; cout << "Euler e aus lim (1+1/j)^j" << endl ; cout << endl ; cout << "Obergrenze n: " ; cin >> n ; for(int j=1; j<=n; ++j) cout << "Fuer j=" << j << " ist der Ausdruck " << eterm(j) << endl ; }