{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Operators-and-Expressions

# Operators-and-Expressions - Symbolic versus Numerical...

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 Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Symbolic versus Numerical Computation Operators Expressions in Mathematics and MATLAB Operators &amp;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

{[ snackBarMessage ]}

### Page1 / 10

Operators-and-Expressions - Symbolic versus Numerical...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online