Symbolic calculation in two variables.

In summary, a computer handles symbolic expressions by matching and applying pre-programmed formulas, evaluating sub expressions containing only numbers, and isolating common factors. It also applies rules such as $\binom{n+1}{k} = \binom{n}{k-1} + \binom{n}{k}$ to simplify the expression. Ultimately, it will search all possible implication steps until it reaches a simplified result, in this case, 0.
  • #1
caffeinemachine
Gold Member
MHB
816
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
  • #2
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.
 

FAQ: Symbolic calculation in two variables.

What is symbolic calculation in two variables?

Symbolic calculation in two variables is a mathematical process that involves manipulating algebraic expressions containing two variables. This allows for solving equations and simplifying expressions without assigning specific values to the variables.

What is the purpose of using symbolic calculation in two variables?

The purpose of using symbolic calculation in two variables is to solve complex equations and expressions without having to manually calculate values for the variables. This can be especially useful in fields such as physics and engineering where equations may contain multiple variables.

How is symbolic calculation in two variables different from numerical calculation?

Unlike numerical calculation, which involves substituting specific values for variables and obtaining a numerical result, symbolic calculation in two variables involves working with algebraic expressions and manipulating them using mathematical rules and operations.

What is an example of symbolic calculation in two variables?

An example of symbolic calculation in two variables would be solving the equation y = mx + b for one of the variables, such as x. This would involve manipulating the equation using algebraic rules to isolate x on one side of the equation.

Can symbolic calculation in two variables be used for real-world applications?

Yes, symbolic calculation in two variables can be used for real-world applications. It can be used in fields such as physics, engineering, and economics to solve equations and simplify expressions, making complex calculations more efficient and accurate.

Back
Top