Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 14 years ago

Shashank gravatar image

why won't simplify multiply out square roots?

I was trying to remove half angles in an expression. And it seems simplify() does not like to multiply out square root.

sage:theta=var('theta')

sage:assume(theta,'real')

sage:assume(theta>0)

sage:assume(theta<pi)< p="">

sage:m=((sin((1/2)theta)cos((1/2)*theta)).trig_expand(half_angles=True))

sage:view(m.simplify_full())

The output I get is 12cos(θ)+1cos(θ)+1

Is there a way I can make sage multiply out the the expression and give me (1/2)sinθ

click to hide/show revision 2
No.2 Revision

updated 14 years ago

Evgeny gravatar image

why won't simplify multiply out square roots?

I was trying to remove half angles in an expression. And it seems simplify() does not like to multiply out square root.

sage:theta=var('theta')

sage:assume(theta,'real')

sage:assume(theta>0)

sage:assume(theta<pi)< p="">

sage:m=((sin((1/2)theta)cos((1/2)*theta)).trig_expand(half_angles=True))

sage:view(m.simplify_full())

sage:theta=var('theta')
sage:assume(theta,'real')
sage:assume(theta>0)
sage:assume(theta<pi)
sage:m=((sin((1/2)*theta)*cos((1/2)*theta)).trig_expand(half_angles=True))
sage:view(m.simplify_full())

The output I get is 12cos(θ)+1cos(θ)+1

Is there a way I can make sage multiply out the the expression and give me (1/2)sinθ