Post Reply 
Integral of 1/cos(x) in CAS
10-12-2016, 02:47 PM
Post: #6
RE: Integral of 1/cos(x) in CAS
(10-10-2016 05:53 AM)parisse Wrote:  I will investigate, note that
a:=int(1/cos(x)); simplify(a)
returns almost immediatly ln((sin(x)^2+2*sin(x)+1)/(sin(x)^2-2*sin(x)+1))/4
If you are computing an integral with symbolic boundaries that are disjoints, then you should compute the antiderivative and rewrite it at this step then make the difference at the boundaries. This is way more efficient than rewriting the difference of the antiderivatives at the boundaries because you have one less variable and an expression that is twice smaller (there is nothing in simplify that checks for the difference of a same expression at two different points).

Why the XCAS doesn't use the same approach as you described. Wouldn't that be more efficient and simple?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Integral of 1/cos(x) in CAS - Nigel (UK) - 10-09-2016, 08:01 PM
RE: Integral of 1/cos(x) in CAS - parisse - 10-10-2016, 05:53 AM
RE: Integral of 1/cos(x) in CAS - John P - 10-12-2016 02:47 PM
RE: Integral of 1/cos(x) in CAS - parisse - 10-11-2016, 05:55 AM
RE: Integral of 1/cos(x) in CAS - parisse - 10-12-2016, 06:44 PM



User(s) browsing this thread: 1 Guest(s)