Hi, Sergey!
<snipped>
+ffi.cdef[[ + double sin(double, ...); + double cos(double, ...);Why do you use sin/cos with wrong function prototypes if you can take a function with varargs. (printf for example)?I suppose this hack is well suited for our testing purposes: 1) We don't need to create custom vararg functions and the corresponding C libary. 2) Functions usage is obvious. Also, the vararg part will be silently ignored. Be aware that we need the result of the function's call.
Got it. I would add this as a comment. Feel free to ignore.
LGTM