Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Expanding cos(a*(x+y))

I'm having trouble finding out how to expand

a*(x+y)

when wrapped by cos(). The expression

expand(a*(x+y))

expands as expected, but

expand(cos(a*(x+y)))

, leaves the expression unchanged. I would prefer a solution that scales for more complex expressions