When does WolframAlpha refuse to give the precise value?

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











up vote
0
down vote

favorite












I was computing the length of the curve $y=e^x$ between $x=1$ and $x=2$. When I input "arc length of e^x between 1 and 2" into WolframAlpha, it gives me only an approximation as follows:



enter image description here



However, using calculus, one obtains the precise value of the length:



$$sqrt1+e^4+2^-1logfracsqrt1+e^4-1sqrt1+e^4+1-sqrt1+e^2-2^-1logfracsqrt1+e^2-1sqrt1+e^2+1.$$



Is this result too complicated for WolframAlpha so that WolframAlpha can only give an approximation? More generally, when does WolframAlpha refuse to give the precise value?










share|cite|improve this question

















  • 1




    Wolfram alpha is complicated and it's hard to say. Sometimes when you feel it 'should' know the exact answer, if you go to open code, it will give it to you. In this case, it gives me the exact answer when I just rephrase the question: wolframalpha.com/input/…
    – spaceisdarkgreen
    Sep 7 at 2:24










  • @spaceisdarkgreen, this is interesting: our questions are exactly equivalent (and WolframAlpha knows it!) but in one case one only gets approximations while in another case one gets a precise answer.
    – Zuriel
    Sep 7 at 2:27










  • Yeah, it's weird. The open code is more deterministic (it is basically just a restricted version of mathematica).
    – spaceisdarkgreen
    Sep 7 at 2:28















up vote
0
down vote

favorite












I was computing the length of the curve $y=e^x$ between $x=1$ and $x=2$. When I input "arc length of e^x between 1 and 2" into WolframAlpha, it gives me only an approximation as follows:



enter image description here



However, using calculus, one obtains the precise value of the length:



$$sqrt1+e^4+2^-1logfracsqrt1+e^4-1sqrt1+e^4+1-sqrt1+e^2-2^-1logfracsqrt1+e^2-1sqrt1+e^2+1.$$



Is this result too complicated for WolframAlpha so that WolframAlpha can only give an approximation? More generally, when does WolframAlpha refuse to give the precise value?










share|cite|improve this question

















  • 1




    Wolfram alpha is complicated and it's hard to say. Sometimes when you feel it 'should' know the exact answer, if you go to open code, it will give it to you. In this case, it gives me the exact answer when I just rephrase the question: wolframalpha.com/input/…
    – spaceisdarkgreen
    Sep 7 at 2:24










  • @spaceisdarkgreen, this is interesting: our questions are exactly equivalent (and WolframAlpha knows it!) but in one case one only gets approximations while in another case one gets a precise answer.
    – Zuriel
    Sep 7 at 2:27










  • Yeah, it's weird. The open code is more deterministic (it is basically just a restricted version of mathematica).
    – spaceisdarkgreen
    Sep 7 at 2:28













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I was computing the length of the curve $y=e^x$ between $x=1$ and $x=2$. When I input "arc length of e^x between 1 and 2" into WolframAlpha, it gives me only an approximation as follows:



enter image description here



However, using calculus, one obtains the precise value of the length:



$$sqrt1+e^4+2^-1logfracsqrt1+e^4-1sqrt1+e^4+1-sqrt1+e^2-2^-1logfracsqrt1+e^2-1sqrt1+e^2+1.$$



Is this result too complicated for WolframAlpha so that WolframAlpha can only give an approximation? More generally, when does WolframAlpha refuse to give the precise value?










share|cite|improve this question













I was computing the length of the curve $y=e^x$ between $x=1$ and $x=2$. When I input "arc length of e^x between 1 and 2" into WolframAlpha, it gives me only an approximation as follows:



enter image description here



However, using calculus, one obtains the precise value of the length:



$$sqrt1+e^4+2^-1logfracsqrt1+e^4-1sqrt1+e^4+1-sqrt1+e^2-2^-1logfracsqrt1+e^2-1sqrt1+e^2+1.$$



Is this result too complicated for WolframAlpha so that WolframAlpha can only give an approximation? More generally, when does WolframAlpha refuse to give the precise value?







calculus soft-question wolfram-alpha arc-length






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Sep 7 at 2:18









Zuriel

1,472928




1,472928







  • 1




    Wolfram alpha is complicated and it's hard to say. Sometimes when you feel it 'should' know the exact answer, if you go to open code, it will give it to you. In this case, it gives me the exact answer when I just rephrase the question: wolframalpha.com/input/…
    – spaceisdarkgreen
    Sep 7 at 2:24










  • @spaceisdarkgreen, this is interesting: our questions are exactly equivalent (and WolframAlpha knows it!) but in one case one only gets approximations while in another case one gets a precise answer.
    – Zuriel
    Sep 7 at 2:27










  • Yeah, it's weird. The open code is more deterministic (it is basically just a restricted version of mathematica).
    – spaceisdarkgreen
    Sep 7 at 2:28













  • 1




    Wolfram alpha is complicated and it's hard to say. Sometimes when you feel it 'should' know the exact answer, if you go to open code, it will give it to you. In this case, it gives me the exact answer when I just rephrase the question: wolframalpha.com/input/…
    – spaceisdarkgreen
    Sep 7 at 2:24










  • @spaceisdarkgreen, this is interesting: our questions are exactly equivalent (and WolframAlpha knows it!) but in one case one only gets approximations while in another case one gets a precise answer.
    – Zuriel
    Sep 7 at 2:27










  • Yeah, it's weird. The open code is more deterministic (it is basically just a restricted version of mathematica).
    – spaceisdarkgreen
    Sep 7 at 2:28








1




1




Wolfram alpha is complicated and it's hard to say. Sometimes when you feel it 'should' know the exact answer, if you go to open code, it will give it to you. In this case, it gives me the exact answer when I just rephrase the question: wolframalpha.com/input/…
– spaceisdarkgreen
Sep 7 at 2:24




Wolfram alpha is complicated and it's hard to say. Sometimes when you feel it 'should' know the exact answer, if you go to open code, it will give it to you. In this case, it gives me the exact answer when I just rephrase the question: wolframalpha.com/input/…
– spaceisdarkgreen
Sep 7 at 2:24












@spaceisdarkgreen, this is interesting: our questions are exactly equivalent (and WolframAlpha knows it!) but in one case one only gets approximations while in another case one gets a precise answer.
– Zuriel
Sep 7 at 2:27




@spaceisdarkgreen, this is interesting: our questions are exactly equivalent (and WolframAlpha knows it!) but in one case one only gets approximations while in another case one gets a precise answer.
– Zuriel
Sep 7 at 2:27












Yeah, it's weird. The open code is more deterministic (it is basically just a restricted version of mathematica).
– spaceisdarkgreen
Sep 7 at 2:28





Yeah, it's weird. The open code is more deterministic (it is basically just a restricted version of mathematica).
– spaceisdarkgreen
Sep 7 at 2:28











2 Answers
2






active

oldest

votes

















up vote
3
down vote













The input




arc length of e^x between 1 and 2




invokes an additional step where Wolfram Alpha needs to parse the meaning of "arc length," and it formulates an integral of the function $e^x$ over a suitable interval. When you open the code that Wolfram Alpha generates--in essence, its interpretation of your input--you will find that it invokes NIntegrate rather than Integrate, which explains why your output does not contain the symbolic computation in closed form, only the numeric output.



This also explains why if you use the word "Integrate" in your input, Wolfram Alpha will parse that as you wanting the output of some Integrate expression.



Generally speaking, if I were to use Wolfram Alpha, I would attempt to phrase my input in the Wolfram language as much as possible. The natural language processing capabilities are impressive, but as you can see, they do not--indeed, cannot--lend themselves to a precise level of control, nor an unambiguous input.






share|cite|improve this answer




















  • Thank you so much! Your answer is very clear and helpful.
    – Zuriel
    Sep 8 at 1:18

















up vote
0
down vote













What is "amazing" is that, typing in Wolfram Alpha




integrate sqrt(1+e^(2x))




we properly obtain
$$sqrte^2 x+1-tanh ^-1left(sqrte^2 x+1right)$$



and typing




integrate sqrt(1+e^(2x)) from x=1 to x=2




we properly obtain
$$-sqrt1+e^2+sqrt1+e^4+tanh ^-1left(sqrt1+e^2right)-tanh
^-1left(sqrt1+e^4right)approx 4.7852 +0. times 10^-6 ,i$$






share|cite|improve this answer




















  • What is the "$0.times 10^-6i$" part? The result is obviously a real number.
    – Zuriel
    Sep 8 at 1:18











  • @Zuriel. This is what WA returns as an apptoximation of the result ! Type integrate sqrt(1+e^(2x)) from x=1 to x=2 to see it.
    – Claude Leibovici
    Sep 8 at 1:57











  • Thank you! I do not see the point of approximating a real number by an expression with an imaginary that is zero.
    – Zuriel
    Sep 8 at 2:37






  • 1




    @Zuriel $tanh^-1(sqrt1+e^2)$ and $tanh^-1(sqrt1+e^4)$ are presumably numerically evaluated independently of one another and then combined. Notice when $x>1$ the $tanh^-1(x)$ has an imaginary part of $pi/2$.
    – spaceisdarkgreen
    Sep 8 at 7:19











  • @spaceisdarkgreen, that's true. On the other hand, it should be obvious to WA (at least it is obvious to me) that "integrate sqrt(1+e^(2x)) from x=1 to x=2" yields a real number.
    – Zuriel
    Sep 8 at 14:09










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: "69"
;
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: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2908206%2fwhen-does-wolframalpha-refuse-to-give-the-precise-value%23new-answer', 'question_page');

);

Post as a guest






























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote













The input




arc length of e^x between 1 and 2




invokes an additional step where Wolfram Alpha needs to parse the meaning of "arc length," and it formulates an integral of the function $e^x$ over a suitable interval. When you open the code that Wolfram Alpha generates--in essence, its interpretation of your input--you will find that it invokes NIntegrate rather than Integrate, which explains why your output does not contain the symbolic computation in closed form, only the numeric output.



This also explains why if you use the word "Integrate" in your input, Wolfram Alpha will parse that as you wanting the output of some Integrate expression.



Generally speaking, if I were to use Wolfram Alpha, I would attempt to phrase my input in the Wolfram language as much as possible. The natural language processing capabilities are impressive, but as you can see, they do not--indeed, cannot--lend themselves to a precise level of control, nor an unambiguous input.






share|cite|improve this answer




















  • Thank you so much! Your answer is very clear and helpful.
    – Zuriel
    Sep 8 at 1:18














up vote
3
down vote













The input




arc length of e^x between 1 and 2




invokes an additional step where Wolfram Alpha needs to parse the meaning of "arc length," and it formulates an integral of the function $e^x$ over a suitable interval. When you open the code that Wolfram Alpha generates--in essence, its interpretation of your input--you will find that it invokes NIntegrate rather than Integrate, which explains why your output does not contain the symbolic computation in closed form, only the numeric output.



This also explains why if you use the word "Integrate" in your input, Wolfram Alpha will parse that as you wanting the output of some Integrate expression.



Generally speaking, if I were to use Wolfram Alpha, I would attempt to phrase my input in the Wolfram language as much as possible. The natural language processing capabilities are impressive, but as you can see, they do not--indeed, cannot--lend themselves to a precise level of control, nor an unambiguous input.






share|cite|improve this answer




















  • Thank you so much! Your answer is very clear and helpful.
    – Zuriel
    Sep 8 at 1:18












up vote
3
down vote










up vote
3
down vote









The input




arc length of e^x between 1 and 2




invokes an additional step where Wolfram Alpha needs to parse the meaning of "arc length," and it formulates an integral of the function $e^x$ over a suitable interval. When you open the code that Wolfram Alpha generates--in essence, its interpretation of your input--you will find that it invokes NIntegrate rather than Integrate, which explains why your output does not contain the symbolic computation in closed form, only the numeric output.



This also explains why if you use the word "Integrate" in your input, Wolfram Alpha will parse that as you wanting the output of some Integrate expression.



Generally speaking, if I were to use Wolfram Alpha, I would attempt to phrase my input in the Wolfram language as much as possible. The natural language processing capabilities are impressive, but as you can see, they do not--indeed, cannot--lend themselves to a precise level of control, nor an unambiguous input.






share|cite|improve this answer












The input




arc length of e^x between 1 and 2




invokes an additional step where Wolfram Alpha needs to parse the meaning of "arc length," and it formulates an integral of the function $e^x$ over a suitable interval. When you open the code that Wolfram Alpha generates--in essence, its interpretation of your input--you will find that it invokes NIntegrate rather than Integrate, which explains why your output does not contain the symbolic computation in closed form, only the numeric output.



This also explains why if you use the word "Integrate" in your input, Wolfram Alpha will parse that as you wanting the output of some Integrate expression.



Generally speaking, if I were to use Wolfram Alpha, I would attempt to phrase my input in the Wolfram language as much as possible. The natural language processing capabilities are impressive, but as you can see, they do not--indeed, cannot--lend themselves to a precise level of control, nor an unambiguous input.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Sep 7 at 5:19









heropup

60.5k65896




60.5k65896











  • Thank you so much! Your answer is very clear and helpful.
    – Zuriel
    Sep 8 at 1:18
















  • Thank you so much! Your answer is very clear and helpful.
    – Zuriel
    Sep 8 at 1:18















Thank you so much! Your answer is very clear and helpful.
– Zuriel
Sep 8 at 1:18




Thank you so much! Your answer is very clear and helpful.
– Zuriel
Sep 8 at 1:18










up vote
0
down vote













What is "amazing" is that, typing in Wolfram Alpha




integrate sqrt(1+e^(2x))




we properly obtain
$$sqrte^2 x+1-tanh ^-1left(sqrte^2 x+1right)$$



and typing




integrate sqrt(1+e^(2x)) from x=1 to x=2




we properly obtain
$$-sqrt1+e^2+sqrt1+e^4+tanh ^-1left(sqrt1+e^2right)-tanh
^-1left(sqrt1+e^4right)approx 4.7852 +0. times 10^-6 ,i$$






share|cite|improve this answer




















  • What is the "$0.times 10^-6i$" part? The result is obviously a real number.
    – Zuriel
    Sep 8 at 1:18











  • @Zuriel. This is what WA returns as an apptoximation of the result ! Type integrate sqrt(1+e^(2x)) from x=1 to x=2 to see it.
    – Claude Leibovici
    Sep 8 at 1:57











  • Thank you! I do not see the point of approximating a real number by an expression with an imaginary that is zero.
    – Zuriel
    Sep 8 at 2:37






  • 1




    @Zuriel $tanh^-1(sqrt1+e^2)$ and $tanh^-1(sqrt1+e^4)$ are presumably numerically evaluated independently of one another and then combined. Notice when $x>1$ the $tanh^-1(x)$ has an imaginary part of $pi/2$.
    – spaceisdarkgreen
    Sep 8 at 7:19











  • @spaceisdarkgreen, that's true. On the other hand, it should be obvious to WA (at least it is obvious to me) that "integrate sqrt(1+e^(2x)) from x=1 to x=2" yields a real number.
    – Zuriel
    Sep 8 at 14:09














up vote
0
down vote













What is "amazing" is that, typing in Wolfram Alpha




integrate sqrt(1+e^(2x))




we properly obtain
$$sqrte^2 x+1-tanh ^-1left(sqrte^2 x+1right)$$



and typing




integrate sqrt(1+e^(2x)) from x=1 to x=2




we properly obtain
$$-sqrt1+e^2+sqrt1+e^4+tanh ^-1left(sqrt1+e^2right)-tanh
^-1left(sqrt1+e^4right)approx 4.7852 +0. times 10^-6 ,i$$






share|cite|improve this answer




















  • What is the "$0.times 10^-6i$" part? The result is obviously a real number.
    – Zuriel
    Sep 8 at 1:18











  • @Zuriel. This is what WA returns as an apptoximation of the result ! Type integrate sqrt(1+e^(2x)) from x=1 to x=2 to see it.
    – Claude Leibovici
    Sep 8 at 1:57











  • Thank you! I do not see the point of approximating a real number by an expression with an imaginary that is zero.
    – Zuriel
    Sep 8 at 2:37






  • 1




    @Zuriel $tanh^-1(sqrt1+e^2)$ and $tanh^-1(sqrt1+e^4)$ are presumably numerically evaluated independently of one another and then combined. Notice when $x>1$ the $tanh^-1(x)$ has an imaginary part of $pi/2$.
    – spaceisdarkgreen
    Sep 8 at 7:19











  • @spaceisdarkgreen, that's true. On the other hand, it should be obvious to WA (at least it is obvious to me) that "integrate sqrt(1+e^(2x)) from x=1 to x=2" yields a real number.
    – Zuriel
    Sep 8 at 14:09












up vote
0
down vote










up vote
0
down vote









What is "amazing" is that, typing in Wolfram Alpha




integrate sqrt(1+e^(2x))




we properly obtain
$$sqrte^2 x+1-tanh ^-1left(sqrte^2 x+1right)$$



and typing




integrate sqrt(1+e^(2x)) from x=1 to x=2




we properly obtain
$$-sqrt1+e^2+sqrt1+e^4+tanh ^-1left(sqrt1+e^2right)-tanh
^-1left(sqrt1+e^4right)approx 4.7852 +0. times 10^-6 ,i$$






share|cite|improve this answer












What is "amazing" is that, typing in Wolfram Alpha




integrate sqrt(1+e^(2x))




we properly obtain
$$sqrte^2 x+1-tanh ^-1left(sqrte^2 x+1right)$$



and typing




integrate sqrt(1+e^(2x)) from x=1 to x=2




we properly obtain
$$-sqrt1+e^2+sqrt1+e^4+tanh ^-1left(sqrt1+e^2right)-tanh
^-1left(sqrt1+e^4right)approx 4.7852 +0. times 10^-6 ,i$$







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Sep 7 at 3:11









Claude Leibovici

113k1155127




113k1155127











  • What is the "$0.times 10^-6i$" part? The result is obviously a real number.
    – Zuriel
    Sep 8 at 1:18











  • @Zuriel. This is what WA returns as an apptoximation of the result ! Type integrate sqrt(1+e^(2x)) from x=1 to x=2 to see it.
    – Claude Leibovici
    Sep 8 at 1:57











  • Thank you! I do not see the point of approximating a real number by an expression with an imaginary that is zero.
    – Zuriel
    Sep 8 at 2:37






  • 1




    @Zuriel $tanh^-1(sqrt1+e^2)$ and $tanh^-1(sqrt1+e^4)$ are presumably numerically evaluated independently of one another and then combined. Notice when $x>1$ the $tanh^-1(x)$ has an imaginary part of $pi/2$.
    – spaceisdarkgreen
    Sep 8 at 7:19











  • @spaceisdarkgreen, that's true. On the other hand, it should be obvious to WA (at least it is obvious to me) that "integrate sqrt(1+e^(2x)) from x=1 to x=2" yields a real number.
    – Zuriel
    Sep 8 at 14:09
















  • What is the "$0.times 10^-6i$" part? The result is obviously a real number.
    – Zuriel
    Sep 8 at 1:18











  • @Zuriel. This is what WA returns as an apptoximation of the result ! Type integrate sqrt(1+e^(2x)) from x=1 to x=2 to see it.
    – Claude Leibovici
    Sep 8 at 1:57











  • Thank you! I do not see the point of approximating a real number by an expression with an imaginary that is zero.
    – Zuriel
    Sep 8 at 2:37






  • 1




    @Zuriel $tanh^-1(sqrt1+e^2)$ and $tanh^-1(sqrt1+e^4)$ are presumably numerically evaluated independently of one another and then combined. Notice when $x>1$ the $tanh^-1(x)$ has an imaginary part of $pi/2$.
    – spaceisdarkgreen
    Sep 8 at 7:19











  • @spaceisdarkgreen, that's true. On the other hand, it should be obvious to WA (at least it is obvious to me) that "integrate sqrt(1+e^(2x)) from x=1 to x=2" yields a real number.
    – Zuriel
    Sep 8 at 14:09















What is the "$0.times 10^-6i$" part? The result is obviously a real number.
– Zuriel
Sep 8 at 1:18





What is the "$0.times 10^-6i$" part? The result is obviously a real number.
– Zuriel
Sep 8 at 1:18













@Zuriel. This is what WA returns as an apptoximation of the result ! Type integrate sqrt(1+e^(2x)) from x=1 to x=2 to see it.
– Claude Leibovici
Sep 8 at 1:57





@Zuriel. This is what WA returns as an apptoximation of the result ! Type integrate sqrt(1+e^(2x)) from x=1 to x=2 to see it.
– Claude Leibovici
Sep 8 at 1:57













Thank you! I do not see the point of approximating a real number by an expression with an imaginary that is zero.
– Zuriel
Sep 8 at 2:37




Thank you! I do not see the point of approximating a real number by an expression with an imaginary that is zero.
– Zuriel
Sep 8 at 2:37




1




1




@Zuriel $tanh^-1(sqrt1+e^2)$ and $tanh^-1(sqrt1+e^4)$ are presumably numerically evaluated independently of one another and then combined. Notice when $x>1$ the $tanh^-1(x)$ has an imaginary part of $pi/2$.
– spaceisdarkgreen
Sep 8 at 7:19





@Zuriel $tanh^-1(sqrt1+e^2)$ and $tanh^-1(sqrt1+e^4)$ are presumably numerically evaluated independently of one another and then combined. Notice when $x>1$ the $tanh^-1(x)$ has an imaginary part of $pi/2$.
– spaceisdarkgreen
Sep 8 at 7:19













@spaceisdarkgreen, that's true. On the other hand, it should be obvious to WA (at least it is obvious to me) that "integrate sqrt(1+e^(2x)) from x=1 to x=2" yields a real number.
– Zuriel
Sep 8 at 14:09




@spaceisdarkgreen, that's true. On the other hand, it should be obvious to WA (at least it is obvious to me) that "integrate sqrt(1+e^(2x)) from x=1 to x=2" yields a real number.
– Zuriel
Sep 8 at 14:09

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2908206%2fwhen-does-wolframalpha-refuse-to-give-the-precise-value%23new-answer', 'question_page');

);

Post as a guest