Logarithms. Strings of bits There is only one possible zero-length sequence of bits There are two possible “sequences” of a single bit: 0, 1 There are.

Slides:



Advertisements
Similar presentations
Unit 6. For x  0 and 0  a  1, y = log a x if and only if x = a y. The function given by f (x) = log a x is called the logarithmic function with base.
Advertisements

Searching. 2 Searching an array of integers If an array is not sorted, there is no better algorithm than linear search for finding an element in it static.
Searching. 2 Searching an array of integers If an array is not sorted, there is no better algorithm than linear search for finding an element in it static.
Searching. Searching an array of integers If an array is not sorted, there is no better algorithm than linear search for finding an element in it static.
Properties of Logarithms
Computer Science 210 Computer Organization Floating Point Representation.
Doubling & Halving with Multiplication. Doubling and halving works because of the relationship between multiplication and division. Since multiplication.
Searching Also: Logarithms. 2 Searching an array of integers If an array is not sorted, there is no better algorithm than linear search for finding an.
8/2/2013 Logarithms 1 = 2 log a x Properties of Logarithms Examples 1. log a x 2 = log a (x x) Coincidence ? log b x r = r log b x Power Rule for Logarithms.
Solving Proportions, Using Exponents. Proportions Many chemistry problems deal with changing one variable and measuring the effect on another variable.
Simple Data Type Representation and conversion of numbers
LOGS EQUAL THE The inverse of an exponential function is a logarithmic function. Logarithmic Function x = log a y read: “x equals log base a of y”
Searching Also: Logarithms. 2 Searching an array of integers If an array is not sorted, there is no better algorithm than linear search for finding an.
Section 4.1 Logarithms and their Properties. Suppose you have $100 in an account paying 5% compounded annually. –Create an equation for the balance B.
Academy Algebra II/Trig 6.6: Solve Exponential and Logarithmic Equations Unit 8 Test ( ): Friday 3/22.
New Mexico Computer Science for All Author: Ed Angel Title: Bits and Bytes.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
16. Binary Numbers Programming in C++ Computer Science Dept Va Tech August, 1999 © Barnette ND, McQuain WD, Keenan MA 1 Binary Number System Base.
Essential Question: What is the relationship between a logarithm and an exponent?
Math 3 - Module 6 Honors Topics.
Multiplication and other Math Concepts Math The more you use math, the more you realize how all the parts of math are connected to each other like pieces.

 Many things in life can be modeled by exponential relations  Relationship is not linear, but does follow a pattern (e.g. doubling every time, tripling.
Jeopardy $100 Facts About Logarithms Exponentials to Logs Evaluating Logs Expanding Logs Condensing Logs $200 $300 $400 $300 $200 $100 $400 $300 $200 $100.
More on Logarithmic Functions 9.6
NATURAL LOGARITHMS. The Constant: e e is a constant very similar to π. Π = … e = … Because it is a fixed number we can find e 2.
Objective: To graph logarithmic functions, to convert between exponential and logarithmic equations, and find common and natural logarithms using a calculator.
Logarithm Basics. The logarithm base a of b is the exponent you put on a to get b: i.e. Logs give you exponents! Definition of Logarithm a > 0 and b >
Solving Logarithmic Equations
3.3 Day 1 Properties of logarithms –Use the product rule. –Use the quotient rule. –Use the power rule. –Expand logarithmic expressions. Pg. 407 # 2-36.
Exponent, n Power, Power,64164 Copy the table and discuss any patterns you see. Use the patterns to complete the table. Write non integers.
Exponents – Logarithms xy -31/8 -2¼ ½ xy 1/8-3 ¼-2 ½ The function on the right is the inverse of the function on the left.
Logarithmic Properties Exponential Function y = b x Logarithmic Function x = b y y = log b x Exponential Form Logarithmic Form.
Jeopardy $100 Facts About Logarithms Exponentials to Logs Evaluating Logs Expanding Logs Condensing Logs $200 $300 $200 $100 $300 $200 $100 $400 $300 $200.
Logarithms Common Logarithms Integer Logarithms Negative Logarithms Log of a Product Log of a Quotient Log of an Exponential Natural Logarithms.
Copyright©amberpasillas2010. Exponents give us many shortcuts for multiplying and dividing quickly. Each of the key rules for exponents has an importance.
Solving Logarithmic Equations I.. Relationship between Exponential and Logarithmic Equations. A) Logs and Exponentials are INVERSES of each other. 1) That.
FractionsDecimalsPowers Answer  This is how you add fractions.
Goals:  Understand logarithms as the inverse of exponents  Convert between exponential and logarithmic forms  Evaluate logarithmic functions.
LOGARITHMIC FUNCTIONS. LOG FUNCTIONS Exact Values Find the exact value of log 3 81 log 3 81 = x 3 x = 81 3 x = 3 4 x = 4 1.Set the equation equal to.
WHAT IS BINARY? Binary is a number system that only uses two digits: 1 and 0. Any information that processed by a computer it is put into sequence of.
Nat 4/5 Computing Science Lesson 1: Binary
Solving Exponential Equations
Solving Logarithmic Equations
Chapter 3 Data Storage.
Number Systems.
Logarithmic Functions and Their Graphs
Logarithmic Functions
Solving Logarithmic Equations
6.4 Logarithmic & Exponential Equations
Logs – Solve USING EXPONENTIATION
Solving Exponential Equations
Change of Base.
Unit 8 [7-3 in text] Logarithmic Functions
Chapter 3 Exponents and Logarithms
Write in digits eight hundred and four thousand.
Properties of Logarithms
Ch 3.3: Properties of Logarithms
Chapter 2: Number Systems
Logarithms.
Objectives Use properties to simplify logarithmic expressions.
3.4 Exponential and Logarithmic Equations
Number Systems Rayat Shikshan Sanstha’s
Storing Integers and Fractions
Exponential and Logarithmic Functions
Searching.
Number Systems Rayat Shikshan Sanstha’s
x/÷ Numbers Year 3-4 – Multiply and divide a multiple of 10
Logarithmic Functions
Presentation transcript:

Logarithms

Strings of bits There is only one possible zero-length sequence of bits There are two possible “sequences” of a single bit: 0, 1 There are four sequences of two bits: 00 01, There are eight sequences of three bits: , , , Each time you add a bit, you double the number of possible sequences Add 0 to the end of each existing sequence, and do the same for 1 “Taking the logarithm” is the inverse of exponentiation 2 0 = = = = 8, etc. log 2 1 = 0 log 2 2 = 1 log 2 4 = 2 log 2 8 = 3, etc.

Logarithms In computer science, we almost always work with logarithms base 2, because we work with bits log 2 n (or we can just write log n ) tells us how many bits we need to represent n possibilities Example: To represent 10 digits, we need log 10 = bits Since we can’t have fractional bits, we need 4 bits, with some bit patterns not used: 0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111, 1000, 1001, and not 1010, 1011, 1100, 1101, 1110, 1111 Logarithms also tell us how many times we can cut a positive integer in half before reaching 1 Example: 16/2=8, 8/2=4, 4/2=2, 2/2=1, and log 16 = 4 Example: 10/2=5, 5/2=2.5, 2.5/2=1.25, and log 10 = 3.322

Relationships Logarithms of the same number to different bases differ by a constant factor log 2 (2) = log 10 (2) = log 2 (2)/log 10 (2) = log 2 (3) = log 10 (3) = log 2 (3)/log 10 (3) = log 2 (4) = log 10 (4) = log 2 (4)/log 10 (4) = log 2 (5) = log 10 (5) = log 2 (5)/log 10 (5) = log 2 (6) = log 10 (6) = log 2 (6)/log 10 (6) = log 2 (7) = log 10 (7) = log 2 (7)/log 10 (7) = log 2 (8) = log 10 (8) = log 2 (8)/log 10 (8) = log 2 (9) = log 10 (9) = log 2 (9)/log 10 (9) = log 2 (10)= log 10 (10) = log 2 (10)/log 10 (10)= 3.322

Review Logarithms are exponents if b x = a, then log b a = x if 10 3 = 1000, then log = 3 if 2 8 = 256, then log = 8 If we start with x=1 and multipy x by 2 eight times, we get 256 If we start with x=256 and divide x by 2 eight times, we get 1 log 2 is how many times we halve a number to get 1 log 2 is the number of bits required to represent a number in binary (fractions are rounded up) In computer science we usually use log to mean log 2

The End