Changes between Version 3 and Version 8 of Ticket #17910


Ignore:
Timestamp:
06/17/19 14:36:51 (23 months ago)
Author:
chapoton
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17910

    • Property Keywords abs_integrate added
  • Ticket #17910 – Description

    v3 v8  
    1010integrate(abs(x^2 - 1), x, -2, 2)
    1111
    12 -            sage: f = sqrt(x + 1/x^2)
    13 -            sage: maxima = sage.calculus.calculus.maxima
    14 -            sage: maxima('radexpand')
    15 -            true
    16 -            sage: integrate(f, x)
    17 -            integrate(sqrt(x + 1/x^2), x)
    18 -            sage: maxima('radexpand: all')
    19 -            all
    20 -            sage: g = integrate(f, x); g
    21 -            2/3*sqrt(x^3 + 1) - 1/3*log(sqrt(x^3 + 1) + 1) + 1/3*log(sqrt(x^3 + 1) - 1)
    22 -            sage: f1(x) = e^(-abs(x))
    23 -            sage: f = Piecewise([[(-infinity, infinity), f1]])
    24 -            sage: f.integral(definite=True)
    25 -            2
    26 -            sage: f.integral()
    27 -            Piecewise defined function with 1 parts, [[(-Infinity, +Infinity), x |--> -1/2*((sgn(x) - 1)*e^(2*x) - 2*e^x*sgn(x) + sgn(x) + 1)*e^(-x) - 1]]
     12sage: f = sqrt(x + 1/x^2)
     132/3*sqrt(x^3 + 1) - 1/3*log(sqrt(x^3 + 1) + 1) + 1/3*log(sqrt(x^3 + 1) - 1)
     14
     15sage: f1(x) = e^(-abs(x))
     16sage: f = Piecewise([[(-infinity, infinity), f1]])
     17sage: f.integral(definite=True)
     182
     19sage: f.integral()
     20Piecewise defined function with 1 parts, [[(-Infinity, +Infinity), x |--> -1/2*((sgn(x) - 1)*e^(2*x) - 2*e^x*sgn(x) + sgn(x) + 1)*e^(-x) - 1]]
    2821}}}
    2922