MHB Symbolic calculation in two variables.

Click For Summary
The expression $\binom{n+1}{k}2^{-n-1} - \binom{n}{k}2^{-n} + \binom{n}{k}*2^{-n-1} - \binom{n}{k-1}2^{-n-1}$ simplifies to zero, as verified by both SAGE and Mathematica using their respective simplification functions. Computers handle such symbolic calculations by applying pre-programmed formulas and algorithms that prioritize simpler results while exploring all possible implications. Key techniques include isolating common factors, evaluating numerical sub-expressions, and utilizing combinatorial identities like $\binom{n+1}{k} = \binom{n}{k-1} + \binom{n}{k}$. The process can be replicated manually, demonstrating the underlying logic used by computational tools. Ultimately, the expression's simplification confirms its identity as zero.
caffeinemachine
Gold Member
MHB
Messages
799
Reaction score
15
The following is identically 0 which can be readily checked by a simple hand calculation.

$\binom{n+1}{k}2^{-n-1} - \binom{n}{k}2^{-n} + \binom{n}{k}*2^{-n-1} - \binom{n}{k-1}2^{-n-1}$

If you enter this in SAGE or Mathematica, using the appropriate script, and use full_simplify() and FullSimplify[] respectively, you will find that both of these softwares show you the result 0.

Can somebody tell me how does a computer handle such expressions symbolically?
 
Physics news on Phys.org
caffeinemachine said:
The following is identically 0 which can be readily checked by a simple hand calculation.

$\binom{n+1}{k}2^{-n-1} - \binom{n}{k}2^{-n} + \binom{n}{k}*2^{-n-1} - \binom{n}{k-1}2^{-n-1}$

If you enter this in SAGE or Mathematica, using the appropriate script, and use full_simplify() and FullSimplify[] respectively, you will find that both of these softwares show you the result 0.

Can somebody tell me how does a computer handle such expressions symbolically?

A computer program matches and applies a long list of pre-programmed formulas.
It can brute force the possible implication steps and see where it gets.
Its algorithms will prefer simpler results over complicated results, although it will ultimately search all of them (until it times out).

In your current problem the following rules apply:
  1. Isolate a common factor. In your case $2^{-n-1}$ and $\binom{n}{k}$ can be isolated.
  2. Evaluate sub expressions containing only numbers.
  3. Apply $\binom {n+1} k = \binom n {k-1} + \binom n k$.

When we apply them exhaustively the result zero rolls out.
Your problem is simple enough that you can still do this by hand as well, emulating what the computer will do.
 
Thread 'How to define a vector field?'
Hello! In one book I saw that function ##V## of 3 variables ##V_x, V_y, V_z## (vector field in 3D) can be decomposed in a Taylor series without higher-order terms (partial derivative of second power and higher) at point ##(0,0,0)## such way: I think so: higher-order terms can be neglected because partial derivative of second power and higher are equal to 0. Is this true? And how to define vector field correctly for this case? (In the book I found nothing and my attempt was wrong...

Similar threads

  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 25 ·
Replies
25
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 26 ·
Replies
26
Views
810
Replies
1
Views
2K
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
605
  • · Replies 3 ·
Replies
3
Views
2K
Replies
8
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K