7 2 dot products

12
7/17/2019 7 2 Dot Products http://slidepdf.com/reader/full/7-2-dot-products 1/12 | 1 FACULTY OF ENGINEERING COMPUTING AND MATHEMATICS  © 2012 SCHOOL OF COMPUTER SCIENCE AND SOFTWARE ENGINEERING CITS2401 Computer Analysis and Visualisation FACULTY OF ENGINEERING COMPUTING AND MATHEMATICS  © 2012-2013 SCHOOL OF COMPUTER SCIENCE AND SOFTWARE ENGINEERING CITS2401 Computer Analysis and Visualisation Dot Products Week 7

Upload: ali-al-asadi

Post on 08-Jan-2016

216 views

Category:

Documents


0 download

DESCRIPTION

an introduction too dot products on matlab, it is a comprehensive paper on vector analysis

TRANSCRIPT

Page 1: 7 2 Dot Products

7/17/2019 7 2 Dot Products

http://slidepdf.com/reader/full/7-2-dot-products 1/12

| 1

FACULTY OF ENGINEERING COMPUTING AND MATHEMATICS

 © 2012 SCHOOL OF COMPUTER SCIENCE AND SOFTWARE ENGINEERING

CITS2401

Computer Analysis and Visualisation

FACULTY OF ENGINEERING COMPUTING AND MATHEMATICS

 © 2012-2013 SCHOOL OF COMPUTER SCIENCE AND SOFTWARE ENGINEERING

CITS2401

Computer Analysis and Visualisation

Dot Products

Week 7

Page 2: 7 2 Dot Products

7/17/2019 7 2 Dot Products

http://slidepdf.com/reader/full/7-2-dot-products 2/12

| 2CITS2401 Computer Analysis & Visualisation

Dot Products

The dot product

is sometimes

called the scalar

product

the sum of theresults when you

multiply two

vectors together,

element byelement.

Equivalent

statements

Page 3: 7 2 Dot Products

7/17/2019 7 2 Dot Products

http://slidepdf.com/reader/full/7-2-dot-products 3/12

| 3CITS2401 Computer Analysis & Visualisation

Example Calculating the Centre of mass(centre of gravity)

Finding the centre of mass of a structure is important in a

number of engineering applications

The location of the center of mass can be calculated by

dividing the system up into small components.

 xm =  x 1m

1+  x 

2m

2 +  x 

3m

3+ etc...

 ym =   y1m1 +  y2m2  +  y3m3 + etc...

 zm =  z1m

1+  z

2m

2 +  z

3m

3+ etc...

Page 4: 7 2 Dot Products

7/17/2019 7 2 Dot Products

http://slidepdf.com/reader/full/7-2-dot-products 4/12

| 4CITS2401 Computer Analysis & Visualisation

In a rectangular coordinate system

• are the coordinates of the center of mass• m is the total mass of the system

• x1, x2, and x3 etc are the x coordinates of each systemcomponent

• y1, y2, and y3 etc are the y coordinates of each systemcomponent

• z1, z2, and z3 etc are the z coordinates of each systemcomponent

• m1, m2, and m3 etc are the mass of each system component

 x , y, and  z

Page 5: 7 2 Dot Products

7/17/2019 7 2 Dot Products

http://slidepdf.com/reader/full/7-2-dot-products 5/12

| 5CITS2401 Computer Analysis & Visualisation

Example Calculating the Center of mass

1D two mass example

 x   =  x 1m1 +  x 2m2

m

 x=0

 x=x1

 x=x2

m2m1

m =m1+m

2where

Page 6: 7 2 Dot Products

7/17/2019 7 2 Dot Products

http://slidepdf.com/reader/full/7-2-dot-products 6/12

| 6CITS2401 Computer Analysis & Visualisation

In this example…

We’ll find the center of mass of a small collection of thecomponents used in a complex space vehicle

Item x, meters y, meters z meters Mass

Bolt 0.1 2 3 3.50 gram

screw 1 1 1 1.50 gram

nut 1.5 0.2 0.5 0.79 gram

bracket 2 2 4 1.75 gram

Formulate the problem using a dot product

Page 7: 7 2 Dot Products

7/17/2019 7 2 Dot Products

http://slidepdf.com/reader/full/7-2-dot-products 7/12

| 7CITS2401 Computer Analysis & Visualisation

Input and Output

Input

• Location of each component in anx-y-z coordinate system – in meters

• Mass of each component, in grams

Output

• Location of the centre of mass

Page 8: 7 2 Dot Products

7/17/2019 7 2 Dot Products

http://slidepdf.com/reader/full/7-2-dot-products 8/12

| 8

Hand ExampleFind the x coordinate of the centre of mass

Item x, meters Mass,

gram

x * m, gram

meters

Bolt 0.1 x 3.50 = 0.35

screw 1 x 1.50 = 1.50

nut 1.5 x 0.79 = 1.1850

bracket 2 x 1.75 = 3.5

sum 7.54 6.535

Page 9: 7 2 Dot Products

7/17/2019 7 2 Dot Products

http://slidepdf.com/reader/full/7-2-dot-products 9/12

| 9CITS2401 Computer Analysis & Visualisation

We know that…

The x coordinate is equal to

So…

=6.535/7.54 = 0.8667 meters

 x   =

 xi

i=1

4

∑   mi

mTotal

=

 xi

i=1

4

∑   mi

mi

i=1

4

 x 

This is a dot

product

Page 10: 7 2 Dot Products

7/17/2019 7 2 Dot Products

http://slidepdf.com/reader/full/7-2-dot-products 10/12

| 10

Page 11: 7 2 Dot Products

7/17/2019 7 2 Dot Products

http://slidepdf.com/reader/full/7-2-dot-products 11/12

| 11

We could use a plot to evaluate ourresults

Page 12: 7 2 Dot Products

7/17/2019 7 2 Dot Products

http://slidepdf.com/reader/full/7-2-dot-products 12/12

| 12