On 15 Feb., 15:50, Simon King <simon.k...@uni-jena.de> wrote: > To symbolists: > Please tell me whether (and how) gcd or lcm occur in > new_Expression_from_GEx, or at least show me the code!
I also found that the gcd method of symbolic expressions was (indirectly) changed by my patch, but again, I can't find the code: sage: a = SR(-1) sage: b = SR(-1/5) sage: a.gcd(b) 1 # 1/5 with my patch a.gcd(b) internally calls the function g_gcd. However, I can not find the definition of g_gcd: grep -R "g_gcd" sage/symbolic/ did not point to a definition of g_gcd. Note that I find the current behaviour of gcd in the symbolic ring not consequent enough: sage: SR(-1).gcd(SR(-1/10)) 1 sage: SR(-1/1).gcd(SR(-1/10)) 1/10 Cheers, Simon -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org