Is there a way to know which symbolic expression mathematica usedGiven a symbolic expression how to find if starts with a minus or not?(Symbolic) LinearSolve is slower/different after upgrading to Mathematica 9Symbolic matrice or vectors in Mathematica?How to define the symbolic expression $V = frac1N sum_i=1^N ( y_i(g) - z_i)^2$ in Mathematica?Root: Simplifying symbolic expressionHow can I find the formal derivative of a polynomial w.r.t. to its coefficientsSymbolic Integration gives wrong answerSymbolic manipulation of expression with undefined functionIs it possible to get a symbolic a concise expression for my function?Trying to apply Jensen's inequality to a complicated symbolic expression
Machine learning and operations research projects
Do I have a right to cancel a purchase of foreign currency in the UK?
How to memorize multiple pieces?
Is "I do not want you to go nowhere" a case of "DOUBLE-NEGATIVES" as claimed by Grammarly?
How is angular momentum conserved for the orbiting body if the centripetal force disappears?
Are neural networks prone to catastrophic forgetting?
Why weren't bootable game disks ever common on the IBM PC?
What was the definition of "set" that resulted in Russell's Paradox
How can I calculate the sum of 2 random dice out of a 3d6 pool in AnyDice?
What prevents someone from claiming to be the murderer in order to get the real murderer off?
How to ask for a LinkedIn endorsement?
Is Trump personally blocking people on Twitter?
Using Newton's shell theorem to accelerate a spaceship
As the Dungeon Master, how do I handle a player that insists on a specific class when I already know that choice will cause issues?
Why didn't Nick Fury expose the villain's identity and plans?
How would my creatures handle groups without a strong concept of numbers?
Does Lufthansa weigh your carry on luggage?
How to evolve human-like eyes that can stare at the sun without protection?
Mathematica notebook opening off the screen
For a hashing function like MD5, how similar can two plaintext strings be and still generate the same hash?
Confirming the Identity of a (Friendly) Reviewer After the Reviews
Credit score and financing new car
Shortest hex dumping program
Does throwing a penny at a train stop the train?
Is there a way to know which symbolic expression mathematica used
Given a symbolic expression how to find if starts with a minus or not?(Symbolic) LinearSolve is slower/different after upgrading to Mathematica 9Symbolic matrice or vectors in Mathematica?How to define the symbolic expression $V = frac1N sum_i=1^N ( y_i(g) - z_i)^2$ in Mathematica?Root: Simplifying symbolic expressionHow can I find the formal derivative of a polynomial w.r.t. to its coefficientsSymbolic Integration gives wrong answerSymbolic manipulation of expression with undefined functionIs it possible to get a symbolic a concise expression for my function?Trying to apply Jensen's inequality to a complicated symbolic expression
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
$begingroup$
Take the following symbolic sum:
Sum[(-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n, n, 1, Infinity]
Mathematica answers me: $- fracpi4$
It is great, I have an exact expression for this complicated sum. But I would like to know how mathematica knows this result.
Is there a way to ask him which function he used to compute it ?
symbolic
$endgroup$
add a comment |
$begingroup$
Take the following symbolic sum:
Sum[(-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n, n, 1, Infinity]
Mathematica answers me: $- fracpi4$
It is great, I have an exact expression for this complicated sum. But I would like to know how mathematica knows this result.
Is there a way to ask him which function he used to compute it ?
symbolic
$endgroup$
add a comment |
$begingroup$
Take the following symbolic sum:
Sum[(-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n, n, 1, Infinity]
Mathematica answers me: $- fracpi4$
It is great, I have an exact expression for this complicated sum. But I would like to know how mathematica knows this result.
Is there a way to ask him which function he used to compute it ?
symbolic
$endgroup$
Take the following symbolic sum:
Sum[(-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n, n, 1, Infinity]
Mathematica answers me: $- fracpi4$
It is great, I have an exact expression for this complicated sum. But I would like to know how mathematica knows this result.
Is there a way to ask him which function he used to compute it ?
symbolic
symbolic
asked 8 hours ago
StarBucKStarBucK
8653 silver badges13 bronze badges
8653 silver badges13 bronze badges
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
You can use a Wolfram|Alpha query and then look at the Series Representation
results.
In Mathematica, the easiest way to do this is start your input with ==
and it will change it to a spikey input symbol.
==Sum[(-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n, n, 1, Infinity]
Result:
$endgroup$
add a comment |
$begingroup$
In general, symbolic sums are evaluated by using a combination of internal methods and it is usually difficult to give insight into the evaluation process.
However, this sum is evaluated by using a representation in terms of HypergeometricPFQ (strictly speaking, this is a Hypergeometric0F1).
This may be seen by using the (undocumented) Method option setting "InactivePFQ" as shown below.
In[1]:= Sum[(-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n, n, 1, Infinity,
Method -> "InactivePFQ"] // InputForm
Out[1]//InputForm=
-(Pi^2*Inactive[HypergeometricPFQ][, 3/2, -Pi^2/16])/8
In[2]:= Activate[%] // FullSimplify // InputForm
Out[2]//InputForm=
-Pi/4
In[3]:= N[%]
Out[3]= -0.785398
In[4]:= NSum[(-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n, n, 1, Infinity]
Out[4]= -0.785398
The representation in terms of HypergeometricPFQ can be understood by defining a sequence corresponding to the first argument of Sum as follows (the sequence has been shifted so that it starts at 0, rather than 1).
a[n_] = (-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n /. n -> n + 1;
The factor of-Pi^2/8 in the answer from Sum is the zeroth term of this sequence.
In[6]:= a[0] // InputForm
Out[6]//InputForm=
-Pi^2/8
The arguments of HypergeometricPFQ in this case can be understood by computing the ratio of the adjacent terms of a[n].
In[7]:= DiscreteRatio[a[n], n] // InputForm
Out[7]//InputForm=
-Pi^2/(8*(1 + n)*(3 + 2*n))
In[8]:=
Simplify[% == -(Pi^2/16)*(1/((n + 1)*(n + 3/2)))]
Out[8]= True
The factor of (n+1) in the denominator of the above comes from the definition of Hypergoemetric0F1 and can be ignored.
Hope this helps in understanding the result from Sum.
$endgroup$
add a comment |
Your Answer
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',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f201870%2fis-there-a-way-to-know-which-symbolic-expression-mathematica-used%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
You can use a Wolfram|Alpha query and then look at the Series Representation
results.
In Mathematica, the easiest way to do this is start your input with ==
and it will change it to a spikey input symbol.
==Sum[(-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n, n, 1, Infinity]
Result:
$endgroup$
add a comment |
$begingroup$
You can use a Wolfram|Alpha query and then look at the Series Representation
results.
In Mathematica, the easiest way to do this is start your input with ==
and it will change it to a spikey input symbol.
==Sum[(-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n, n, 1, Infinity]
Result:
$endgroup$
add a comment |
$begingroup$
You can use a Wolfram|Alpha query and then look at the Series Representation
results.
In Mathematica, the easiest way to do this is start your input with ==
and it will change it to a spikey input symbol.
==Sum[(-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n, n, 1, Infinity]
Result:
$endgroup$
You can use a Wolfram|Alpha query and then look at the Series Representation
results.
In Mathematica, the easiest way to do this is start your input with ==
and it will change it to a spikey input symbol.
==Sum[(-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n, n, 1, Infinity]
Result:
answered 5 hours ago
kickertkickert
1,0351 silver badge18 bronze badges
1,0351 silver badge18 bronze badges
add a comment |
add a comment |
$begingroup$
In general, symbolic sums are evaluated by using a combination of internal methods and it is usually difficult to give insight into the evaluation process.
However, this sum is evaluated by using a representation in terms of HypergeometricPFQ (strictly speaking, this is a Hypergeometric0F1).
This may be seen by using the (undocumented) Method option setting "InactivePFQ" as shown below.
In[1]:= Sum[(-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n, n, 1, Infinity,
Method -> "InactivePFQ"] // InputForm
Out[1]//InputForm=
-(Pi^2*Inactive[HypergeometricPFQ][, 3/2, -Pi^2/16])/8
In[2]:= Activate[%] // FullSimplify // InputForm
Out[2]//InputForm=
-Pi/4
In[3]:= N[%]
Out[3]= -0.785398
In[4]:= NSum[(-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n, n, 1, Infinity]
Out[4]= -0.785398
The representation in terms of HypergeometricPFQ can be understood by defining a sequence corresponding to the first argument of Sum as follows (the sequence has been shifted so that it starts at 0, rather than 1).
a[n_] = (-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n /. n -> n + 1;
The factor of-Pi^2/8 in the answer from Sum is the zeroth term of this sequence.
In[6]:= a[0] // InputForm
Out[6]//InputForm=
-Pi^2/8
The arguments of HypergeometricPFQ in this case can be understood by computing the ratio of the adjacent terms of a[n].
In[7]:= DiscreteRatio[a[n], n] // InputForm
Out[7]//InputForm=
-Pi^2/(8*(1 + n)*(3 + 2*n))
In[8]:=
Simplify[% == -(Pi^2/16)*(1/((n + 1)*(n + 3/2)))]
Out[8]= True
The factor of (n+1) in the denominator of the above comes from the definition of Hypergoemetric0F1 and can be ignored.
Hope this helps in understanding the result from Sum.
$endgroup$
add a comment |
$begingroup$
In general, symbolic sums are evaluated by using a combination of internal methods and it is usually difficult to give insight into the evaluation process.
However, this sum is evaluated by using a representation in terms of HypergeometricPFQ (strictly speaking, this is a Hypergeometric0F1).
This may be seen by using the (undocumented) Method option setting "InactivePFQ" as shown below.
In[1]:= Sum[(-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n, n, 1, Infinity,
Method -> "InactivePFQ"] // InputForm
Out[1]//InputForm=
-(Pi^2*Inactive[HypergeometricPFQ][, 3/2, -Pi^2/16])/8
In[2]:= Activate[%] // FullSimplify // InputForm
Out[2]//InputForm=
-Pi/4
In[3]:= N[%]
Out[3]= -0.785398
In[4]:= NSum[(-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n, n, 1, Infinity]
Out[4]= -0.785398
The representation in terms of HypergeometricPFQ can be understood by defining a sequence corresponding to the first argument of Sum as follows (the sequence has been shifted so that it starts at 0, rather than 1).
a[n_] = (-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n /. n -> n + 1;
The factor of-Pi^2/8 in the answer from Sum is the zeroth term of this sequence.
In[6]:= a[0] // InputForm
Out[6]//InputForm=
-Pi^2/8
The arguments of HypergeometricPFQ in this case can be understood by computing the ratio of the adjacent terms of a[n].
In[7]:= DiscreteRatio[a[n], n] // InputForm
Out[7]//InputForm=
-Pi^2/(8*(1 + n)*(3 + 2*n))
In[8]:=
Simplify[% == -(Pi^2/16)*(1/((n + 1)*(n + 3/2)))]
Out[8]= True
The factor of (n+1) in the denominator of the above comes from the definition of Hypergoemetric0F1 and can be ignored.
Hope this helps in understanding the result from Sum.
$endgroup$
add a comment |
$begingroup$
In general, symbolic sums are evaluated by using a combination of internal methods and it is usually difficult to give insight into the evaluation process.
However, this sum is evaluated by using a representation in terms of HypergeometricPFQ (strictly speaking, this is a Hypergeometric0F1).
This may be seen by using the (undocumented) Method option setting "InactivePFQ" as shown below.
In[1]:= Sum[(-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n, n, 1, Infinity,
Method -> "InactivePFQ"] // InputForm
Out[1]//InputForm=
-(Pi^2*Inactive[HypergeometricPFQ][, 3/2, -Pi^2/16])/8
In[2]:= Activate[%] // FullSimplify // InputForm
Out[2]//InputForm=
-Pi/4
In[3]:= N[%]
Out[3]= -0.785398
In[4]:= NSum[(-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n, n, 1, Infinity]
Out[4]= -0.785398
The representation in terms of HypergeometricPFQ can be understood by defining a sequence corresponding to the first argument of Sum as follows (the sequence has been shifted so that it starts at 0, rather than 1).
a[n_] = (-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n /. n -> n + 1;
The factor of-Pi^2/8 in the answer from Sum is the zeroth term of this sequence.
In[6]:= a[0] // InputForm
Out[6]//InputForm=
-Pi^2/8
The arguments of HypergeometricPFQ in this case can be understood by computing the ratio of the adjacent terms of a[n].
In[7]:= DiscreteRatio[a[n], n] // InputForm
Out[7]//InputForm=
-Pi^2/(8*(1 + n)*(3 + 2*n))
In[8]:=
Simplify[% == -(Pi^2/16)*(1/((n + 1)*(n + 3/2)))]
Out[8]= True
The factor of (n+1) in the denominator of the above comes from the definition of Hypergoemetric0F1 and can be ignored.
Hope this helps in understanding the result from Sum.
$endgroup$
In general, symbolic sums are evaluated by using a combination of internal methods and it is usually difficult to give insight into the evaluation process.
However, this sum is evaluated by using a representation in terms of HypergeometricPFQ (strictly speaking, this is a Hypergeometric0F1).
This may be seen by using the (undocumented) Method option setting "InactivePFQ" as shown below.
In[1]:= Sum[(-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n, n, 1, Infinity,
Method -> "InactivePFQ"] // InputForm
Out[1]//InputForm=
-(Pi^2*Inactive[HypergeometricPFQ][, 3/2, -Pi^2/16])/8
In[2]:= Activate[%] // FullSimplify // InputForm
Out[2]//InputForm=
-Pi/4
In[3]:= N[%]
Out[3]= -0.785398
In[4]:= NSum[(-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n, n, 1, Infinity]
Out[4]= -0.785398
The representation in terms of HypergeometricPFQ can be understood by defining a sequence corresponding to the first argument of Sum as follows (the sequence has been shifted so that it starts at 0, rather than 1).
a[n_] = (-1)^n/Factorial[2*n]*(Pi/2)^(2*n)*n /. n -> n + 1;
The factor of-Pi^2/8 in the answer from Sum is the zeroth term of this sequence.
In[6]:= a[0] // InputForm
Out[6]//InputForm=
-Pi^2/8
The arguments of HypergeometricPFQ in this case can be understood by computing the ratio of the adjacent terms of a[n].
In[7]:= DiscreteRatio[a[n], n] // InputForm
Out[7]//InputForm=
-Pi^2/(8*(1 + n)*(3 + 2*n))
In[8]:=
Simplify[% == -(Pi^2/16)*(1/((n + 1)*(n + 3/2)))]
Out[8]= True
The factor of (n+1) in the denominator of the above comes from the definition of Hypergoemetric0F1 and can be ignored.
Hope this helps in understanding the result from Sum.
edited 3 hours ago
Community♦
1
1
answered 3 hours ago
Devendra KapadiaDevendra Kapadia
1,1596 silver badges9 bronze badges
1,1596 silver badges9 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Mathematica Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f201870%2fis-there-a-way-to-know-which-symbolic-expression-mathematica-used%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown