Re: [sage-devel] Definite Integral wrong

2020-08-05 Thread NicoJG
@rjf Isn't the square root defined to be positive? Sure: x^2=y <=> x=+/-sqrt(y) But I think you would never consider f(x):=sqrt(x) to have the codomain of all negative numbers. At least I would expect a CAS to interpret a square root to be positive. rjf schrieb am Mittwoch, 5. August 2020 um 20:

[sage-devel] Re: Definite Integral is wrong

2020-08-02 Thread NicoJG
Sry for the double posting. My first post just didn't show up and I thought something went wrong. NicoJG schrieb am Sonntag, 2. August 2020 um 18:31:00 UTC+2: > > Hi, > > I found a bug where a definite integral is calculated wrong. > WolframAlpha result for comparison. &

[sage-devel] Definite Integral is wrong

2020-08-02 Thread NicoJG
Hi, I found a bug where a definite integral is calculated wrong. WolframAlpha result for comparison. Code: integrate(sqrt(2-2*cos(x)),x,0,2*pi) Also if I type show() instead of print() SageMathCell won't show anything. Also the indefinite integral does not simplify well. [image: sage_wrong_int