fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. double p_sin = Math.Sin(1); //starting with this
  8. double t_sin = Math.Sin(1337); //Test!
  9. int num = 0;
  10. for (int i = 0; i < 10000000; i++) //10,0000,000 trials
  11. {
  12. p_sin = Math.Sin(p_sin); //take sine of the number over and over
  13. t_sin = Math.Sin(t_sin);
  14. num++;
  15. if (num % 500000 == 0) { Console.WriteLine(num + ": " + p_sin + " test: " + t_sin); }
  16. }
  17. }
  18. }
Success #stdin #stdout 1.09s 33920KB
stdin
Standard input is empty
stdout
500000: 0.00244946205449858 test: -0.00244946412635827
1000000: 0.00173204065804086 test: -0.00173204139056488
1500000: 0.00141420792297319 test: -0.0014142083217108
2000000: 0.00122474115563873 test: -0.0012247414146271
2500000: 0.00109544242689898 test: -0.00109544261221632
3000000: 0.000999997936851162 test: -0.000999998077827029
3500000: 0.000925818450306606 test: -0.000925818562179503
4000000: 0.000866024045043575 test: -0.000866024136610219
4500000: 0.000816495435820022 test: -0.000816495512557685
5000000: 0.000774595686634474 test: -0.000774595752154272
5500000: 0.000738548090328148 test: -0.000738548147119698
6000000: 0.000707106027245844 test: -0.000707106077088474
6500000: 0.000679365549334353 test: -0.000679365593537984
7000000: 0.000654653068085705 test: -0.000654653107638805
7500000: 0.000632454986912357 test: -0.000632455022576838
8000000: 0.000612371939390459 test: -0.000612371971764215
8500000: 0.000594088071350657 test: -0.000594088100910348
9000000: 0.000577349850992898 test: -0.000577349878123856
9500000: 0.000561951100370049 test: -0.000561951125387506
10000000: 0.000547722198711275 test: -0.000547722221876042