static void AR_STDCALL __on_error(ar_int_t level, const wchar_t* msg, void *ctx) { AR_UNUSED(level); AR_UNUSED(ctx); printf("%ls", msg); }
static void AR_STDCALL __on_print(const wchar_t *msg, void *ctx) { /*AR_UNUSED(msg);*/ AR_UNUSED(ctx); printf("%ls", msg); }
double f(double x, void *unused){ AR_UNUSED(unused); return exp(-x*x); }
double j(double x, void *unused){ AR_UNUSED(unused); return cos(x); }
double h(double x, void *unused){ AR_UNUSED(unused); return x*log(x) - x; }
double g(double x, void *unused){ AR_UNUSED(unused); return atan(x); }