What does this "fastfrac" function do? Because I don't understand for example, what does "numerator()" function?
What is the sintaxis R(numerator(top)) I don't understand.
R.<ua,ud,ux2,uy2,ux1,uy1,ux1,uy1,uz1,ux2,uy2,uz2> = PolynomialRing(QQ,12,order='invlex')
class fastfrac:
def __init__(self,top,bot=1):
if parent(top) == ZZ or parent(top) == R:
self.top = R(top)
self.bot = R(bot)
elif top.__class__ == fastfrac:
self.top = top.top
self.bot = top.bot * bot
else:
self.top = R(numerator(top))
self.bot = R(denominator(top)) * bot
Thank you so much.