Closed Huzaifg closed 1 year ago
This looks correct to me: according to https://en.wikipedia.org/wiki/Inverse_trigonometric_functions, the derivative of asin(x) is 1/sqrt(1-x^2), i.e. 1.1547, which is what Adept gives you. Similarly for acos.
[I would recommend not calling your function "sin" if it does something different to the traditional "sin" - this will just confuse users of your code. Adept also supports active and passive arrays, e.g. aVector instead of std::vector
Understood. Thanks alot!
I am seeing weird behavior with asin and acos. Consider the main function in file "summa.cpp"
I would thus expect the following to be printed (computing the jacobian analytically) as Jacobian is stored in column major order
However, I get this
I use the following MakeFile to compile
I am running _OS: Arch Linux x8664 Kernel: 6.2.13-arch1-1 g++ (GCC) 13.1.1
I am surely doing something horribly wrong but I am unable to figure out what...