Confusion in finding the definite integral

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
5
down vote

favorite












So, I'm new to Mathematica. I tried evaluating the following definite integral. However the answer i get from wolfram alpha & mathematica are different.
Can someone please point out what I'm missing?
The answer from wolframAlpha is correct according to Casio fx-991-es



Integrate[1/(1 + t) ((t + 0.8)/(t + 1))^20, t, -0.8, 0]


enter image description here



enter image description here










share|improve this question









New contributor




Ramith Hettiarachchi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Please paste copy&pastable code instead of screenshots. It is not fair to the people who are trying to assist to make them need to retype all your content based on some images.
    – user6014
    Sep 9 at 1:43










  • oh I'm sorry Integrate[1/(1 + t) ((t + 0.8)/(t + 1))^20, t, -0.8, 0]
    – Ramith Hettiarachchi
    Sep 9 at 1:45














up vote
5
down vote

favorite












So, I'm new to Mathematica. I tried evaluating the following definite integral. However the answer i get from wolfram alpha & mathematica are different.
Can someone please point out what I'm missing?
The answer from wolframAlpha is correct according to Casio fx-991-es



Integrate[1/(1 + t) ((t + 0.8)/(t + 1))^20, t, -0.8, 0]


enter image description here



enter image description here










share|improve this question









New contributor




Ramith Hettiarachchi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Please paste copy&pastable code instead of screenshots. It is not fair to the people who are trying to assist to make them need to retype all your content based on some images.
    – user6014
    Sep 9 at 1:43










  • oh I'm sorry Integrate[1/(1 + t) ((t + 0.8)/(t + 1))^20, t, -0.8, 0]
    – Ramith Hettiarachchi
    Sep 9 at 1:45












up vote
5
down vote

favorite









up vote
5
down vote

favorite











So, I'm new to Mathematica. I tried evaluating the following definite integral. However the answer i get from wolfram alpha & mathematica are different.
Can someone please point out what I'm missing?
The answer from wolframAlpha is correct according to Casio fx-991-es



Integrate[1/(1 + t) ((t + 0.8)/(t + 1))^20, t, -0.8, 0]


enter image description here



enter image description here










share|improve this question









New contributor




Ramith Hettiarachchi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











So, I'm new to Mathematica. I tried evaluating the following definite integral. However the answer i get from wolfram alpha & mathematica are different.
Can someone please point out what I'm missing?
The answer from wolframAlpha is correct according to Casio fx-991-es



Integrate[1/(1 + t) ((t + 0.8)/(t + 1))^20, t, -0.8, 0]


enter image description here



enter image description here







calculus-and-analysis wolfram-alpha-queries






share|improve this question









New contributor




Ramith Hettiarachchi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Ramith Hettiarachchi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Sep 9 at 1:46





















New contributor




Ramith Hettiarachchi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Sep 9 at 1:28









Ramith Hettiarachchi

283




283




New contributor




Ramith Hettiarachchi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Ramith Hettiarachchi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Ramith Hettiarachchi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • Please paste copy&pastable code instead of screenshots. It is not fair to the people who are trying to assist to make them need to retype all your content based on some images.
    – user6014
    Sep 9 at 1:43










  • oh I'm sorry Integrate[1/(1 + t) ((t + 0.8)/(t + 1))^20, t, -0.8, 0]
    – Ramith Hettiarachchi
    Sep 9 at 1:45
















  • Please paste copy&pastable code instead of screenshots. It is not fair to the people who are trying to assist to make them need to retype all your content based on some images.
    – user6014
    Sep 9 at 1:43










  • oh I'm sorry Integrate[1/(1 + t) ((t + 0.8)/(t + 1))^20, t, -0.8, 0]
    – Ramith Hettiarachchi
    Sep 9 at 1:45















Please paste copy&pastable code instead of screenshots. It is not fair to the people who are trying to assist to make them need to retype all your content based on some images.
– user6014
Sep 9 at 1:43




Please paste copy&pastable code instead of screenshots. It is not fair to the people who are trying to assist to make them need to retype all your content based on some images.
– user6014
Sep 9 at 1:43












oh I'm sorry Integrate[1/(1 + t) ((t + 0.8)/(t + 1))^20, t, -0.8, 0]
– Ramith Hettiarachchi
Sep 9 at 1:45




oh I'm sorry Integrate[1/(1 + t) ((t + 0.8)/(t + 1))^20, t, -0.8, 0]
– Ramith Hettiarachchi
Sep 9 at 1:45










1 Answer
1






active

oldest

votes

















up vote
6
down vote



accepted










Precision issues. Use one of the following instead.



Symbolic integration:



Integrate[(1/(1 + t)) ((t + 4/5)/(t + 1))^20, t, -4/5, 0]
(*-(318650448087859023644/198221683502197265625) + Log[5]*)

N@%
(*0.00189205*)


Numeric integration with a higher working precision:



NIntegrate[(1/(1 + t)) ((t + .8`20)/(t + 1))^20, t, -.8`20, 0]
(*0.00189205*)





share|improve this answer




















  • Usually when do these issues occur? should i use NIntegrate instead?
    – Ramith Hettiarachchi
    Sep 9 at 1:52










  • These issues appear when machine precision numbers are insufficient for the precision needed to accurately compute what you require.
    – user6014
    Sep 9 at 1:54










  • There's a ton of doc pages on these topics. Here's another useful one: Control the Precision and Accuracy of Numerical Results
    – user6014
    Sep 9 at 1:55










  • Appreciate your help 🙌Thanks!
    – Ramith Hettiarachchi
    Sep 9 at 1:57






  • 1




    @RamithHettiarachchi -- (1) Note further that if you do just add an N in front of your Integrate[..], you get the same answer as the NIntegrate[..] in this post. Higher precision is unnecessary in the numerical integrator. (2) Symbolic solvers such as Integrate often have trouble with "inexact" floating-point input. (3) Interesting aside: Integrate[(1/(1 + t)) ((t + .8`20)/(t + 1))^20, t, -.8`20, 0] caused my kernel to crash! So even with high-precision approximate inputs, exact solvers may still have problems.
    – Michael E2
    2 days ago











Your Answer




StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "387"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






Ramith Hettiarachchi is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f181529%2fconfusion-in-finding-the-definite-integral%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
6
down vote



accepted










Precision issues. Use one of the following instead.



Symbolic integration:



Integrate[(1/(1 + t)) ((t + 4/5)/(t + 1))^20, t, -4/5, 0]
(*-(318650448087859023644/198221683502197265625) + Log[5]*)

N@%
(*0.00189205*)


Numeric integration with a higher working precision:



NIntegrate[(1/(1 + t)) ((t + .8`20)/(t + 1))^20, t, -.8`20, 0]
(*0.00189205*)





share|improve this answer




















  • Usually when do these issues occur? should i use NIntegrate instead?
    – Ramith Hettiarachchi
    Sep 9 at 1:52










  • These issues appear when machine precision numbers are insufficient for the precision needed to accurately compute what you require.
    – user6014
    Sep 9 at 1:54










  • There's a ton of doc pages on these topics. Here's another useful one: Control the Precision and Accuracy of Numerical Results
    – user6014
    Sep 9 at 1:55










  • Appreciate your help 🙌Thanks!
    – Ramith Hettiarachchi
    Sep 9 at 1:57






  • 1




    @RamithHettiarachchi -- (1) Note further that if you do just add an N in front of your Integrate[..], you get the same answer as the NIntegrate[..] in this post. Higher precision is unnecessary in the numerical integrator. (2) Symbolic solvers such as Integrate often have trouble with "inexact" floating-point input. (3) Interesting aside: Integrate[(1/(1 + t)) ((t + .8`20)/(t + 1))^20, t, -.8`20, 0] caused my kernel to crash! So even with high-precision approximate inputs, exact solvers may still have problems.
    – Michael E2
    2 days ago















up vote
6
down vote



accepted










Precision issues. Use one of the following instead.



Symbolic integration:



Integrate[(1/(1 + t)) ((t + 4/5)/(t + 1))^20, t, -4/5, 0]
(*-(318650448087859023644/198221683502197265625) + Log[5]*)

N@%
(*0.00189205*)


Numeric integration with a higher working precision:



NIntegrate[(1/(1 + t)) ((t + .8`20)/(t + 1))^20, t, -.8`20, 0]
(*0.00189205*)





share|improve this answer




















  • Usually when do these issues occur? should i use NIntegrate instead?
    – Ramith Hettiarachchi
    Sep 9 at 1:52










  • These issues appear when machine precision numbers are insufficient for the precision needed to accurately compute what you require.
    – user6014
    Sep 9 at 1:54










  • There's a ton of doc pages on these topics. Here's another useful one: Control the Precision and Accuracy of Numerical Results
    – user6014
    Sep 9 at 1:55










  • Appreciate your help 🙌Thanks!
    – Ramith Hettiarachchi
    Sep 9 at 1:57






  • 1




    @RamithHettiarachchi -- (1) Note further that if you do just add an N in front of your Integrate[..], you get the same answer as the NIntegrate[..] in this post. Higher precision is unnecessary in the numerical integrator. (2) Symbolic solvers such as Integrate often have trouble with "inexact" floating-point input. (3) Interesting aside: Integrate[(1/(1 + t)) ((t + .8`20)/(t + 1))^20, t, -.8`20, 0] caused my kernel to crash! So even with high-precision approximate inputs, exact solvers may still have problems.
    – Michael E2
    2 days ago













up vote
6
down vote



accepted







up vote
6
down vote



accepted






Precision issues. Use one of the following instead.



Symbolic integration:



Integrate[(1/(1 + t)) ((t + 4/5)/(t + 1))^20, t, -4/5, 0]
(*-(318650448087859023644/198221683502197265625) + Log[5]*)

N@%
(*0.00189205*)


Numeric integration with a higher working precision:



NIntegrate[(1/(1 + t)) ((t + .8`20)/(t + 1))^20, t, -.8`20, 0]
(*0.00189205*)





share|improve this answer












Precision issues. Use one of the following instead.



Symbolic integration:



Integrate[(1/(1 + t)) ((t + 4/5)/(t + 1))^20, t, -4/5, 0]
(*-(318650448087859023644/198221683502197265625) + Log[5]*)

N@%
(*0.00189205*)


Numeric integration with a higher working precision:



NIntegrate[(1/(1 + t)) ((t + .8`20)/(t + 1))^20, t, -.8`20, 0]
(*0.00189205*)






share|improve this answer












share|improve this answer



share|improve this answer










answered Sep 9 at 1:47









user6014

2,5721021




2,5721021











  • Usually when do these issues occur? should i use NIntegrate instead?
    – Ramith Hettiarachchi
    Sep 9 at 1:52










  • These issues appear when machine precision numbers are insufficient for the precision needed to accurately compute what you require.
    – user6014
    Sep 9 at 1:54










  • There's a ton of doc pages on these topics. Here's another useful one: Control the Precision and Accuracy of Numerical Results
    – user6014
    Sep 9 at 1:55










  • Appreciate your help 🙌Thanks!
    – Ramith Hettiarachchi
    Sep 9 at 1:57






  • 1




    @RamithHettiarachchi -- (1) Note further that if you do just add an N in front of your Integrate[..], you get the same answer as the NIntegrate[..] in this post. Higher precision is unnecessary in the numerical integrator. (2) Symbolic solvers such as Integrate often have trouble with "inexact" floating-point input. (3) Interesting aside: Integrate[(1/(1 + t)) ((t + .8`20)/(t + 1))^20, t, -.8`20, 0] caused my kernel to crash! So even with high-precision approximate inputs, exact solvers may still have problems.
    – Michael E2
    2 days ago

















  • Usually when do these issues occur? should i use NIntegrate instead?
    – Ramith Hettiarachchi
    Sep 9 at 1:52










  • These issues appear when machine precision numbers are insufficient for the precision needed to accurately compute what you require.
    – user6014
    Sep 9 at 1:54










  • There's a ton of doc pages on these topics. Here's another useful one: Control the Precision and Accuracy of Numerical Results
    – user6014
    Sep 9 at 1:55










  • Appreciate your help 🙌Thanks!
    – Ramith Hettiarachchi
    Sep 9 at 1:57






  • 1




    @RamithHettiarachchi -- (1) Note further that if you do just add an N in front of your Integrate[..], you get the same answer as the NIntegrate[..] in this post. Higher precision is unnecessary in the numerical integrator. (2) Symbolic solvers such as Integrate often have trouble with "inexact" floating-point input. (3) Interesting aside: Integrate[(1/(1 + t)) ((t + .8`20)/(t + 1))^20, t, -.8`20, 0] caused my kernel to crash! So even with high-precision approximate inputs, exact solvers may still have problems.
    – Michael E2
    2 days ago
















Usually when do these issues occur? should i use NIntegrate instead?
– Ramith Hettiarachchi
Sep 9 at 1:52




Usually when do these issues occur? should i use NIntegrate instead?
– Ramith Hettiarachchi
Sep 9 at 1:52












These issues appear when machine precision numbers are insufficient for the precision needed to accurately compute what you require.
– user6014
Sep 9 at 1:54




These issues appear when machine precision numbers are insufficient for the precision needed to accurately compute what you require.
– user6014
Sep 9 at 1:54












There's a ton of doc pages on these topics. Here's another useful one: Control the Precision and Accuracy of Numerical Results
– user6014
Sep 9 at 1:55




There's a ton of doc pages on these topics. Here's another useful one: Control the Precision and Accuracy of Numerical Results
– user6014
Sep 9 at 1:55












Appreciate your help 🙌Thanks!
– Ramith Hettiarachchi
Sep 9 at 1:57




Appreciate your help 🙌Thanks!
– Ramith Hettiarachchi
Sep 9 at 1:57




1




1




@RamithHettiarachchi -- (1) Note further that if you do just add an N in front of your Integrate[..], you get the same answer as the NIntegrate[..] in this post. Higher precision is unnecessary in the numerical integrator. (2) Symbolic solvers such as Integrate often have trouble with "inexact" floating-point input. (3) Interesting aside: Integrate[(1/(1 + t)) ((t + .8`20)/(t + 1))^20, t, -.8`20, 0] caused my kernel to crash! So even with high-precision approximate inputs, exact solvers may still have problems.
– Michael E2
2 days ago





@RamithHettiarachchi -- (1) Note further that if you do just add an N in front of your Integrate[..], you get the same answer as the NIntegrate[..] in this post. Higher precision is unnecessary in the numerical integrator. (2) Symbolic solvers such as Integrate often have trouble with "inexact" floating-point input. (3) Interesting aside: Integrate[(1/(1 + t)) ((t + .8`20)/(t + 1))^20, t, -.8`20, 0] caused my kernel to crash! So even with high-precision approximate inputs, exact solvers may still have problems.
– Michael E2
2 days ago











Ramith Hettiarachchi is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















Ramith Hettiarachchi is a new contributor. Be nice, and check out our Code of Conduct.












Ramith Hettiarachchi is a new contributor. Be nice, and check out our Code of Conduct.











Ramith Hettiarachchi is a new contributor. Be nice, and check out our Code of Conduct.













 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f181529%2fconfusion-in-finding-the-definite-integral%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What does second last employer means? [closed]

List of Gilmore Girls characters

One-line joke