Ask Your Question

Vincent 87's profile - activity

2019-03-17 11:41:10 +0200 answered a question Basic integral error

Thanks for your answers. But now, I just wonder if I shall always use sympy algorithm when computing integrals !

2019-03-11 11:39:49 +0200 received badge  Student (source)
2019-03-11 08:10:07 +0200 asked a question Basic integral error

In Sage 8.6 (Mac OS):

sage: integral(ln(1 + sqrt(x))/sqrt(x), x, 1, 4)
4*log(3) + 2*log(4/3) - 2
sage: n(_)
2.96981329957600

while

sage: numerical_integral(ln(1 + sqrt(x))/sqrt(x), 1, 4)
(1.8190850097688764, 2.0195900615958844e-14).

By hand, the correct result is 6*ln(3) - 4*ln(2) - 2.

2019-03-11 08:10:07 +0200 asked a question Basic integration error ?

In Sage 8.6,
integral( (ln( 1 + sqrt(x) )) / sqrt(x) , x,1,4) gives the result 4log(3) + 2log(4/3) - 2 that evaluates n(_) to 2.96981329957600 while numerical_integral( (ln( 1 + sqrt(x) )) / sqrt(x) ,1,4) gives the evaluation (1.8190850097688764, 2.0195900615958844e-14).

By hand, the correct result is 6n(3) - 4ln(2) - 2