tan and infinity



  • Can. tan To restore infinity? What do you mean? pi/2 doesn't return infinity.



  • No, tan Can't return infinity.+Inf or -Inf)

    Note to the description tan Total http://en.cppreference.com/w/cpp/numeric/math/tan :

    The function has a pole on it. x = π(1/2 + n), however, the existing implementation of floating chips cannot accurately submit /2, so the argument never falls into the field.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2