KiszaBoss Posted January 21, 2012 Report Share Posted January 21, 2012 witam, mam pytanie, jak zapisuje sie cotangens w programowaniu bo w kalkulatorach jest to tan-1 a w c++?? Link to comment Share on other sites More sharing options...
Jason Posted January 21, 2012 Report Share Posted January 21, 2012 C++ nie ma mechanizmu obliczenia ctan(x), ale przecież ctan(x)=1/tan(x), więc sobie możesz dopisać taką funkcję Tylko sprawdzaj, czy aby ten tangens nie równa się 0, bo w miejscach zerowych tangensa i tak cotangens nie ma żadnej wartości. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.