MHB Symbolic calculation in two variables.

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 'Derivation of equations of stress tensor transformation'
Hello ! I derived equations of stress tensor 2D transformation. Some details: I have plane ABCD in two cases (see top on the pic) and I know tensor components for case 1 only. Only plane ABCD rotate in two cases (top of the picture) but not coordinate system. Coordinate system rotates only on the bottom of picture. I want to obtain expression that connects tensor for case 1 and tensor for case 2. My attempt: Are these equations correct? Is there more easier expression for stress tensor...
Back
Top