I have functions of x, where x is the polar angle of spherical coordinates, i.e. 0 < x < Pi. Some of the functions are of even symmetry about the equator x = Pi/2 (such as Sin[x]), and other functions are of odd symmetry about x = Pi/2 (such as Sin[x]Cos[x] ) (Just Plot them to see.) Can one use Mathematica to eliminate odd functions from a sum of even and odd functions? For example, as a test, can one eliminate the odd function from the sum Sin[x] + Sin[x]Cos[x]?
Tell me more
×
Mathematica Stack Exchange is a question and answer site for
users of Mathematica. It's 100% free, no registration required.
|
|
||||
| show 1 more comment |
I wanted If you want to keep only even functions (that is, not leave stuff like If the functions are slow to integrate change to |
||||
antisymmetrize[expr_, {x_, x0_}] := (expr - (expr /. x -> 2 x0 - x))/2– Xerxes Feb 6 at 6:45