MATLAB: What is the concept behind symbolic toolbox

symbolic toolbox

Using normal command we can not calculate factorial(200), it gives inf, but using symbolic toolbox we are able to calculate factorial (sym(200)),
My question is how symbolic toolbox is able to calculate whereas normally we cant, what is the concept behind this

Best Answer

MATLAB uses hardware instructions to calculate most of the basic operations; those hardware instructions work on fixed-length binary numbers, such as hardware addition, hardware division, and so on.
The symbolic toolbox does not use fixed length binary numbers. The symbolic toolbox uses chains of blocks to represent numbers. Instead of using hardware instructions to do the basic operations, it calculates everything in software, using slower libraries that handle the chains of data.
Related Question