## C, 30 bytes

    float f(float x){return 1./x;}