Skip to content Skip to navigation

OpenStax_CNX

You are here: Home » Content » Exercises for Basic Mathematical Operations

Navigation

Recently Viewed

This feature requires Javascript to be enabled.
Download
x

Download module as:

  • PDF
  • EPUB (what's this?)

    What is an EPUB file?

    EPUB is an electronic book format that can be read on a variety of mobile devices.

    Downloading to a reading device

    For detailed instructions on how to download this content's EPUB to your specific device, click the "(what's this?)" link.

  • More downloads ...
Reuse / Edit
x

Module:

Add to a lens
x

Add module to:

Add to Favorites
x

Add module to:

 

Exercises for Basic Mathematical Operations

Module by: Darryl Morrell. E-mail the author

Summary: This module has exercises on using mathematical operations in m-file scripting environments.

Exercise 1

Figure 1 shows a Sharp GP2D12 infrared distance sensor and a BasicX-24 microprocessor.

Figure 1: The infrared distance sensor and microprocessor.
Distance Sensor and Processor
Distance Sensor and Processor (IRProcessor.png)
The distance sensor uses a beam of infrared light to measure the distance from the sensor to an object; the sensor provides an output voltage that has a fairly complicated relationship to this distance. The BasicX processor converts the voltage from the sensor into a number between zero and one. Let us denote this number as xx, and the distance (measured in inches) between the sensor and object as dd. The relationship between xx and dd is
d=34.63x5.1622.54 d 34.63 x 5.162 2.54
(1)
Compute the value of dd for the following values of xx:
  • x=0.10x0.10
  • x=0.15x0.15
  • x=0.20x0.20

Exercise 2

The terminal velocity reached by a sky diver depends on many factors, including their weight, their body position as they fall, and the density of the air through which they fall. The terminal velocity is given by

V t =2mgrA C d V t 2 m g r A C d
(2)
where
  • mm is the sky diver's mass
  • gg is Earth's gravitational constant
  • rr is the atmospheric density
  • AA is the sky diver's effective area
  • C d C d is the sky diver's coefficient of drag
Compute the terminal velocity of the sky diver for each of the following values of mm:
  • m=40 kgm40 kg
  • m=80 kgm80 kg
  • m=120 kgm120 kg
Use the following values for the other variables:
  • g=9.8g9.8
  • r=1.2r1.2
  • A=0.5A0.5
  • C d =1 C d 1

Content actions

Download module as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

Reuse / Edit:

Reuse or edit module (?)

Check out and edit

If you have permission to edit this content, using the "Reuse / Edit" action will allow you to check the content out into your Personal Workspace or a shared Workgroup and then make your edits.

Derive a copy

If you don't have permission to edit the content, you can still use "Reuse / Edit" to adapt the content by creating a derived copy of it and then editing and publishing the copy.