Mathematical Principles for Scientific Computing and Visualization