## C, 24 bytes

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