Lecture5 - Engineering Analysis ENG 3420 Fall 2009 Dan C....

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 Lecture 5 Lecture 5 Last time: Applications of Laplace Transform for solving differential equations. Example. Today: Internal representations of numbers and characters in a computer. Arrays in Matlab Matlab program for solving a quadratic equation Next Time Roundoff and truncation errors More on Matlab
Background image of page 2
3 Insight not numbers!! Engineering requires a quantitative analysis (ultimately some numbers) but the purpose of engineering analysis is to gain insight not numbers!! Engineering analysis is based on concepts from several areas of math and statistics: Calculus (integration, differentiation, series) Complex analysis Differential equations Linear algebra Probability and statistics The purpose of this class is not to teach you Matlab, but to teach you how to use Matlab for solving engineering problems. Matlab is just a tool, an instrument. What good is to have a piano without being taught how to play…. One must be familiar with the software tools but understand the math behind each method.
Background image of page 3

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

View Full DocumentRight Arrow Icon
4 A 32-bit word can be used to represent : 1. a signed integer 2. a floating point number 3. a string of characters 4. a machine instruction b 0 b 1 b 31 b 30 b 31 is the sign bit: 0 à positive integer 1 à negative integer Magnitude of the signed integer = b 30 x 2 30 + b 29 x 2 29 +……. .+ . b 2 x 2 2 + . b 1 x 2 1 + . b 0 x 2 0 b 12 b 0 b 1 b 31 b 30 b 23 b 22 b 21 Exponent b 31 is the sign bit: 0 à positive integer 1 à negative integer Significant/Mantissa b 24 Floating point number = (-1) sign x Significant x 2 Exponent 1 2 3 ASCII Character ASCII Character ASCII Character ASCII Character Addressing Information 4 Opcode 8 bit 8 bit 8 bit 8 bit 7 bit 24 bit 24 bit
Background image of page 4
5 Two’s complement representation of signed integers The 2’s complement representation of a positive integer is the binary representation of the integer. For example: (0000 0000 0000 0000 0000 0000 0000 0010) 2 = 2 10 negative integer is obtained by subtracting the binary represntaton of the integer from a large power of two (specifically, from 2 N for an N -bit two's complement) and the andding 1 Example: N=32 the 2’s complement of (-2) (1111 1111 1111 1111 1111 1111 1111 1111) 2 - (0000 0000 0000 0000 0000 0000 0000 0010) 2 = (1111 1111 1111 1111 1111 1111 1111 1101) 2 (1111 1111 1111 1111 1111 1111 1111 1101) 2 +(0000 0000 0000 0000 0000 0000 0000 0001) 2 = (1111 1111 1111 1111 1111 1111 1111 1110) 2
Background image of page 5

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

View Full DocumentRight Arrow Icon
6 Two’s complement representations of integers (0000 0000 0000 0000 0000 0000 0000 0000) 2 = 0 10 (0000 0000 0000 0000 0000 0000 0000 0001)
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/17/2012 for the course EGN 3420 taught by Professor Staff during the Spring '08 term at University of Central Florida.

Page1 / 26

Lecture5 - Engineering Analysis ENG 3420 Fall 2009 Dan C....

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online