kill(all)$

fpprintprec:7;

van=facebook.com/LearningCalculus$

f(x):=x^(x-x^2+3);

g(x):=x^2-2;

realpart(f(x));

abs(x)^(-x^2+x+3)*cos(%pi*(-x^2+x+3));

is(equal(f(2),g(2)));

is(equal(f(-1),g(-1)));

a:-1.431638936$

realpart(f(a));

g(a);