Added support for differentiation of *real* f ^ g.