This preview shows pages 1–4. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: Symbolic versus Numerical Computation Operators Expressions in Mathematics and MATLAB Operators &amp; Expressions Dhavide Aruliah Faculty of Science MATH 2070/2072 Symbolic versus Numerical Computation Operators Expressions in Mathematics and MATLAB Symbolic versus Numerical Computation Operators Expressions in Mathematics and M ATLAB Symbolic versus Numerical Computation Operators Expressions in Mathematics and MATLAB Symbolic versus Numerical computing: I A symbolic computation is a calculation that applies rules of algebra or mathematical identities to manipulate expressions involving symbols/variables into different expressions involving symbols/variables. The result is a symbolic expression . e.g., e 3 2 e 3 = 1 2 e 6 2 e 3 . I A numerical computation is a calculation that strictly involves arithmetic operations or function invocations applied numerical quantities; the result is a number . e.g., e 3 2 e 3 = 20.08049244. Symbolic versus Numerical Computation Operators Expressions in Mathematics and MATLAB Symbolic versus Numerical computing (cont).: I M APLE and M ATHEMATICA are symbolic computation programs (Computer Algebra Systems or CAS) I Programming languages like Fortran and M ATLAB are environments suited for numerical computation I Symbolic computations are exact I Numerical computations are approximate I Which is appropriate depends entirely on the context Symbolic versus Numerical Computation Operators Expressions in Mathematics and MATLAB Arithmetic Operators I Arithmetic operations are the simplest ones we know: (addition, subtraction, multiplication, division, and exponentiation) + Addition Subraction * Multiplication / Division ^ Raising to a power I Arithmetic operators can be used to join together expressions to yield larger mathematical expressions Symbolic versus Numerical Computation Operators Expressions in Mathematics and MATLAB Order of Operations I Expressions are evaluated from left to right in order of 1. exponentiation ( ^ ) first; 2. division ( / ) next; 3. multiplication ( * ) next; 4. subtraction ( ) next; 5. addition ( + ) last I Parentheses are used to supercede this ordering: apply the rules above within the innermost parentheses first and...
View
Full
Document
This note was uploaded on 02/23/2010 for the course MATH 2070 taught by Professor Aruliahdhavidhe during the Spring '10 term at UOIT.
 Spring '10
 aruliahdhavidhe
 Math

Click to edit the document details