trigsimp-two-hacks-removed

2009-03-10 Thread Ondrej Certik
ches?hl=en -~--~~~~--~~--~--~--- From 2bed88ba04c4aa00183222cb63c3f52507249352 Mon Sep 17 00:00:00 2001 From: Ondrej Certik Date: Tue, 10 Mar 2009 09:29:43 -0700 Subject: [PATCH] trigsimp() two hacks removed The trigsimp(1/cos(x)**2 -1) should return tan(x)**2, but it

Re: trigsimp-two-hacks-removed

2009-03-10 Thread Fabian Seoane
Ondrej Certik wrote: > Hi, > > sending a trivial patch to remove hacks from trigsimp. > removing hacks is always good news, but I do not agree that sin(x)**2/cos(x)**2 is a valid answer. By definition, trigsimp will try to return the simplest possible expression, and although 'the simplest p

Re: trigsimp-two-hacks-removed

2009-03-10 Thread Ondrej Certik
On Tue, Mar 10, 2009 at 2:31 PM, Fabian Seoane wrote: > > Ondrej Certik wrote: >> Hi, >> >> sending a trivial patch to remove hacks from trigsimp. >> > > removing hacks is always good news, but I do not agree that > sin(x)**2/cos(x)**2 is a valid answer. > By definition, trigsimp will try to retu

Re: trigsimp-two-hacks-removed

2009-03-10 Thread Alan Bromborsky
Ondrej Certik wrote: > On Tue, Mar 10, 2009 at 2:31 PM, Fabian Seoane wrote: > >> Ondrej Certik wrote: >> >>> Hi, >>> >>> sending a trivial patch to remove hacks from trigsimp. >>> >>> >> removing hacks is always good news, but I do not agree that >> sin(x)**2/cos(x)**2 is a valid

Re: trigsimp-two-hacks-removed

2009-03-24 Thread Ondrej Certik
~~--~--~--- From bddf677be04b62d450229a622c8e8bd73d92e38d Mon Sep 17 00:00:00 2001 From: Ondrej Certik Date: Tue, 24 Mar 2009 21:13:59 -0700 Subject: [PATCH] trigsimp() two hacks removed and done right Previously trigsimp() failed to simplify sin(x)/cos(x) to tan(x) and similar things and

Re: trigsimp-two-hacks-removed

2009-03-25 Thread Fabian Seoane
nice patch. +1 Ondrej Certik wrote: > On Tue, Mar 10, 2009 at 2:31 PM, Fabian Seoane wrote: >> Ondrej Certik wrote: >>> Hi, >>> >>> sending a trivial patch to remove hacks from trigsimp. >>> >> removing hacks is always good news, but I do not agree that >> sin(x)**2/cos(x)**2 is a valid answer.