>
> On Fri, Mar 27, 2015 at 7:01 PM, Jeremy Holleman
> > wrote:
> > I just mean that if I'm trying to write a script and I want to reduce
> all of
> > the powers of cos or sin, I'm not sure how I would code that, because I
> > can't tell if the
I just mean that if I'm trying to write a script and I want to reduce all
of the powers of cos or sin, I'm not sure how I would code that, because I
can't tell if there's a pattern of which calls need to be made in which
order to reduce an arbitrary polynomial of trig functions. For my present
ay.
Jeremy
On Friday, March 27, 2015 at 4:51:53 PM UTC-4, Jeremy Holleman wrote:
>
> Thanks! That did exactly what I want for cos**2. I would also like to
> reduce the power on higher order terms. I tried TR7() on cos(x)**3 and
> cos(x)**4 and it did not make any changes. From qu
Thanks! That did exactly what I want for cos**2. I would also like to
reduce the power on higher order terms. I tried TR7() on cos(x)**3 and
cos(x)**4 and it did not make any changes. From quick glance here
(https://github.com/sympy/sympy/blob/master/sympy/simplify/fu.py), TR7
seems like th
Hi,
I'm relatively new to SymPy, and enjoying it so far. I'm trying to analyze
the harmonics that result when a sinusoid goes through a non-linear system.
I have an expression that includes powers of a cos() and I want to expand
it using the sum/difference angle identities. So I want
In [5