Integral of 1/cos(x) in CAS
10-10-2016, 05:53 AM (This post was last modified: 10-10-2016 06:38 AM by parisse.)
Post: #2
 parisse Senior Member Posts: 1,277 Joined: Dec 2013
RE: Integral of 1/cos(x) in CAS
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).
 « Next Oldest | Next Newest »

 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 - Nigel (UK) - 10-10-2016, 07:50 PM 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 - Nigel (UK) - 10-12-2016, 08:16 AM RE: Integral of 1/cos(x) in CAS - parisse - 10-12-2016, 06:44 PM

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