Hi folks,

When comparing the product of two square roots to the square root of
the product using two scalars, I get True:

    sage: bool(sqrt(pi)*sqrt(2) == sqrt(pi*2))
    True

But when using a variable instead of one of the scalars, I get False:

    sage: n = var('n')
    sage: assume(n>=0)
    sage: bool(sqrt(pi)*sqrt(n) == sqrt(pi*n))
    False

Note that I've seen a related behavior whereby Sage doesn't simplify
the product of two square roots when one of them is a variable, as in:

    sage: integrate(e^(-x^2/n),x,0,oo).simplify_full()
    1/2*sqrt(pi)*sqrt(n)

So, might I be missing something or might this be a bug?

-- 
Marc Tardif <m...@interunion.ca>
Freenode: cr3, Jabber: c...@jabber.org
1024D/72679CAD 09A9 D871 F7C4 A18F AC08 674D 2B73 740C 7267 9CAD

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to