fraction(f, g)
The output will be in the fraction field of the ring containing f and g, without reducing it to lowest terms.
The object fraction is a method function.