Ok so it all start with this formula.
So I need to calculate F, and for that I need to put the Cosh on the right side of the equation, for that I need to convert it to the Inverse hyperbolic cosine ( acosh or arcosh or whatever you prefer to call it).
I can’t the formula in code for C# anywhere, the closes I came was this:
The problem is, I have no idea what the “ln” means, and google also dosen’t tell me anything about it.
So if anyone here knows the formula, or atleats knows what “ln” does, I would really apreciate it.
Kiwasi
December 31, 2016, 6:01am
2
ln is the natural logarithm. it should be included in any decent math library.
Google has plenty of results, you just need to realise that it’s spelt LN, not IN as it looks when written. Mathematicians are nice like that.
The natural logarithm of a number is its logarithm to the base of the mathematical constant e, which is an irrational and transcendental number approximately equal to 2.718281828459. The natural logarithm of x is generally written as ln x, loge x, or sometimes, if the base e is implicit, simply log x. Parentheses are sometimes added for clarity, giving ln(x), loge(x), or log(x). This is done particularly when the argument to the logarithm is not a single symbol, so as to prevent ambigui The na...
Kiwasi:
ln is the natural logarithm. it should be included in any decent math library.
Google has plenty of results, you just need to realise that it’s spelt LN, not IN as it looks when written. Mathematicians are nice like that.
https://en.m.wikipedia.org/wiki/Natural_logarithm
So wich formula should I use? I scrolled trough it, and there are probably 30+ formulas total, and I can’t seem to find the correct one.
Kiwasi
December 31, 2016, 7:46am
5
Math.Log will do the job for you.
Kiwasi
December 31, 2016, 7:58am
6
Out of curiosity what are you building? It’s been a long time since I encountered a hyperbolic cosine in the wild.
Orbital simulatior ( I need it to be able to calculate hyperbolic orbits), if you want I can pass you a export of the project.