When does WolframAlpha refuse to give the precise value?

Clash 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:

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
add a comment |Â
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:

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
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
add a comment |Â
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:

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
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:

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
calculus soft-question wolfram-alpha arc-length
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
add a comment |Â
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
add a comment |Â
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.
Thank you so much! Your answer is very clear and helpful.
â Zuriel
Sep 8 at 1:18
add a comment |Â
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$$
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
 |Â
show 2 more comments
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.
Thank you so much! Your answer is very clear and helpful.
â Zuriel
Sep 8 at 1:18
add a comment |Â
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.
Thank you so much! Your answer is very clear and helpful.
â Zuriel
Sep 8 at 1:18
add a comment |Â
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.
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.
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
add a comment |Â
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
add a comment |Â
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$$
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
 |Â
show 2 more comments
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$$
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
 |Â
show 2 more comments
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$$
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$$
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
 |Â
show 2 more comments
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
 |Â
show 2 more comments
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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