fork download
  1. #include <cmath>
  2. #include <iomanip>
  3. #include <iostream>
  4. using namespace std;
  5.  
  6. int main() {
  7. cout << setprecision(20);
  8. for (auto theta = 10.0 + 1.23; theta < 20.0; theta += 1.23) {
  9. cout << "cbrt(" << theta << ")=" << cbrt(theta) << endl;
  10. }
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
cbrt(11.230000000000000426)=2.2393737620134599453
cbrt(12.460000000000000853)=2.3183162575091356139
cbrt(13.690000000000001279)=2.3922201786116032984
cbrt(14.920000000000001705)=2.4618198796843033804
cbrt(16.150000000000002132)=2.5276921258888118693
cbrt(17.380000000000002558)=2.5902991559757375661
cbrt(18.610000000000002984)=2.6500177998092406817
cbrt(19.840000000000003411)=2.7071597808428031762