Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. using System;
  2. using System.Numerics;
  3. using System.Runtime.CompilerServices;
  4.  
  5. namespace HelloWorld
  6. {
  7. class Program
  8. {
  9. static void Main(string[] args)
  10. {
  11. Test1(1);
  12. Test2(1);
  13. Test3(1);
  14. Test4(1);
  15. }
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23. [MethodImpl(MethodImplOptions.NoInlining)]
  24. static double Test1(double x) =>
  25. Math.Pow(x, 0.5);
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32. [MethodImpl(MethodImplOptions.NoInlining)]
  33. static double Test2(double x) =>
  34. Math.Pow(x, 4);
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41. [MethodImpl(MethodImplOptions.NoInlining)]
  42. static double Test3(double x) =>
  43. Math.Pow(2.0, x);
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50. [MethodImpl(MethodImplOptions.NoInlining)]
  51. static double Test4(double x) =>
  52. Math.Log(Math.Exp(x));
  53. }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement