예제 #1
0
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);
}
예제 #2
0
static void AR_STDCALL __on_print(const wchar_t *msg, void *ctx)
{
		/*AR_UNUSED(msg);*/
		AR_UNUSED(ctx);
        
		printf("%ls", msg);
}
예제 #3
0
double f(double x, void *unused){
    AR_UNUSED(unused);
    return exp(-x*x);
}
예제 #4
0
double j(double x, void *unused){
    AR_UNUSED(unused);
    return cos(x);
}
예제 #5
0
double h(double x, void *unused){
    AR_UNUSED(unused);
    return x*log(x) - x;
}
예제 #6
0
double g(double x, void *unused){
    AR_UNUSED(unused);
    return atan(x);
}