Oke i want to make an program which uses arctanh (Log((1 / x + 1) / (1 / x - 1)) / 2), and i only need to ask "x", and btw area is given: 0,2<x<1 any ideas how to make it?
i know i need to use math.h but i dont know how tu use formula in code...
thanks
Page 1 of 1
Need help with C++ Little help with maths
#2
Posted 26 October 2008 - 11:10 AM
Docs for all the <cmath> functions are here:
http://www.cplusplus.com/reference/clibrary/cmath/
As far as I know, C does not have built in support for arctanh. You're going to have figure out how to compute that one on your own ;)
Billy3
http://www.cplusplus.com/reference/clibrary/cmath/
As far as I know, C does not have built in support for arctanh. You're going to have figure out how to compute that one on your own ;)
Billy3
#3
Posted 26 October 2008 - 12:55 PM
In C you can find hyperbolic arctangent using the following formula:
arctanh(x) = (1.0/2.0) * log((1+x) / (1-x))
arctanh(x) = (1.0/2.0) * log((1+x) / (1-x))
This post has been edited by Romeo29: 26 October 2008 - 12:58 PM
Share this topic:
Page 1 of 1

Help

Back to top










