Symbolic calculation in two variables.

  • Context: MHB 
  • Thread starter Thread starter caffeinemachine
  • Start date Start date
  • Tags Tags
    Calculation Variables
Click For Summary
SUMMARY

The discussion focuses on symbolic calculation in two variables, specifically evaluating 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}$. Both SAGE and Mathematica, when using full_simplify() and FullSimplify[] respectively, confirm that this expression simplifies to 0. The discussion explains that computers handle such expressions by applying pre-programmed formulas, isolating common factors, and evaluating sub-expressions, ultimately preferring simpler results.

PREREQUISITES
  • Understanding of combinatorial notation, specifically binomial coefficients.
  • Familiarity with symbolic computation tools such as SAGE and Mathematica.
  • Knowledge of simplification techniques in algebra.
  • Basic grasp of algorithmic approaches to symbolic manipulation.
NEXT STEPS
  • Research the implementation of full_simplify() in SAGE and FullSimplify[] in Mathematica.
  • Explore the algorithms used in symbolic computation for simplifying expressions.
  • Learn about the properties of binomial coefficients and their applications in combinatorics.
  • Investigate common factor isolation techniques in algebraic simplification.
USEFUL FOR

Mathematicians, computer scientists, and students interested in symbolic computation and algebraic simplification techniques.

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.
 

Similar threads

  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 25 ·
Replies
25
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 26 ·
Replies
26
Views
963
Replies
1
Views
2K
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
759
  • · Replies 3 ·
Replies
3
Views
2K
Replies
8
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K