Integration is done via Maxima and Maxima also asks about the sign:
Robert

[ma...@thinkpad /opt/sage]$ ./sage -maxima
;;; Loading #P"/opt/sage-4.3.2/local/lib/ecl/defsystem.fas"
;;; Loading #P"/opt/sage-4.3.2/local/lib/ecl/cmp.fas"
;;; Loading #P"/opt/sage-4.3.2/local/lib/ecl/sysfun.lsp"
Maxima 5.20.1 http://maxima.sourceforge.net
using Lisp ECL 9.10.2
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) assume((c-b+a)*(c+b-a)>0);
(%o1)                    [(c - b + a) (c + b - a) > 0]
(%i2) integrate(1/(a-b-c*sin(x)) ,x);
Is  (c - b + a) (c + b - a)  positive or negative?

pos;
              (2 b - 2 a) sin(x)           2    2            2
              ------------------ - 2 sqrt(c  - b  + 2 a b - a ) + 2 c
                  cos(x) + 1
          log(-------------------------------------------------------)
              (2 b - 2 a) sin(x)           2    2            2
              ------------------ + 2 sqrt(c  - b  + 2 a b - a ) + 2 c
                  cos(x) + 1
(%o2)   - ------------------------------------------------------------
                                 2    2            2
                           sqrt(c  - b  + 2 a b - a )
(%i3)


On 28 ún, 18:34, WH27 <willjhe...@gmail.com> wrote:
> Can't seem to perform the integration below
>
> forget()
> a, b, c, x = var('a b c x')
> assume((c-b+a)*(c+b-a)>0)
>
> f = 1/(a-b-c*sin(x))
>
> integrate(f, x, 2*pi, 0)
>
> error msg - "Is  (c-b+a)*(c+b-a)  positive or negative?"

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to