Just a question for Mac users:

Slides:



Advertisements
Similar presentations
Image Processing … computing with and about data, … where "data" includes the values and relative locations of the colors that make up an image.
Advertisements

Lesson 5-6 Example Example 2 Find 129 ÷ 9. Show the remainder. 1.Rewrite the problem in vertical format.
HOW TO DIVIDE FRACTIONS
5-4 Dividing Polynomials Long Division Today’s Objective: I can divide polynomials.
FUNDAMENTALS OF PROGRAMMING SM1204 Semester A 2011.
Chapter 6 Color Image Processing Chapter 6 Color Image Processing.
Microsoft® Small Basic The Math Object Estimated time to complete this lesson: 1 hour.
FUNDAMENTALS OF PROGRAMMING SM1204 SEMESTER A 2012.
Agenda  Commenting  Inputting Data from Keyboard (scanf)  Arithmetic Operators  ( ) * / + - %  Order of Operations  Mixing Different Numeric Data.
Polynomial Division and the Remainder Theorem Section 9.4.
Ch 11.5 Dividing Polynomials
2-D Shapes, Color, and simple animation. 7 Basic Shapes Ellipse :: ellipse() Arc :: arc() Line :: line() Point :: point() Rectangle :: rect() Triangle.
Dividing Polynomials – Part 2 Honors Math – Grade 8.
Animation Pages Function Function Definition Calling a function Parameters Return type and return statement.
Dividing Polynomials Day #2 Advanced Math Topics Mrs. Mongold.
6.3 Dividing Polynomials (Day 1)
Help the Poor Math Student  Vocabulary Dividend: number being divided Divisor: number you are dividing by Quotient: is number you get when you divide.
Multiplying Polynomials (x + 2)(x + 3). Multiplying Polynomials (x – 1)(x +4)
Graphics Primitives in Processing 1/14/2010. size(x, y) ; Sets the initial size of the screen Units are in pixels –Pixel == picture element –Small dots.
My Book of Divisibility. THE 2’s Example: 30, 42, 24, 76, 98, Must be an even number Number must end in a 0, 2, 4, 6, or 8.
CHAPTER 4 Negative Numbers. ADDITION AND SUBTRACTION USING NEGATIVE NUMBERS A number line is very useful when you have to do additions or subtractions.
Test Review. General Info. All tests will be comprehensive. You will be tested more on your understanding of code as opposed to your ability to write.
Holt Algebra Dividing Polynomials 6-3 Dividing Polynomials Holt Algebra 2 Warm Up Warm Up Lesson Presentation Lesson Presentation Lesson Quiz Lesson.
Dividing Polynomials 6-3 Warm Up Lesson Presentation Lesson Quiz
Dividing Polynomials 6-3 Warm Up Lesson Presentation Lesson Quiz
Dividing Polynomials 3-3 Warm Up Lesson Presentation Lesson Quiz
Warm Up Divide using long division ÷ ÷
Processing Lecture.3 Loop and animation
Dividing Polynomials.
Some of Chap 17.
Chapter 14, Translate & Rotate
More about Polynomials
Aim: How do we divide a polynomial by a binomial?
5th Grade Math Vocab Operations (Terms 1-10).
Lesson One: The Beginning Chapter 1: Pixels Learning Processing Daniel Shiffman Presentation by Donald W. Smith Graphics from
20 minutes maximum exhibits
Chapter 7 Functions.
Chapter 9 Arrays.
Chapter 6 Loops (iteration).
Chapter 7 Functions.
Dividing Polynomials 3-3 Warm Up Lesson Presentation Lesson Quiz
Objective Use long division and synthetic division to divide polynomials.
Dividing Polynomials 6-3 Warm Up Lesson Presentation Lesson Quiz
HOW TO DIVIDE FRACTIONS
Review # 2 Math 8.
Chapter 10 Algorithms.
Introduction to Java, and DrJava part 1
Coding Concepts (Sub- Programs)
Short Division by Mary S. Roland.
Chapter 5, Conditionals Brief Notes
Chapter 10 Algorithms.
More programming with "Processing"
Long Division.
Dividing Polynomials 6-3 Warm Up Lesson Presentation Lesson Quiz
More Maths Programming Guides.
Dividing Fractions.
Dividing Polynomials 3-3 Warm Up Lesson Presentation Lesson Quiz
Dividing Polynomials 6-3 Warm Up Lesson Presentation Lesson Quiz
Color Image Processing
Short Division.
Dividing Polynomials 6-3 Warm Up Lesson Presentation Lesson Quiz
Processing Environment
divide dividend divisor inverse operations quotient
Dividing Integers ÷ = + ÷ = + ÷ = + ÷ =.
Practice Problems ax2 + bx + c
Dividing Polynomials 6-3 Warm Up Lesson Presentation Lesson Quiz
Chapter 13, Math A few Examples.
Dividing whole number by a decimal
Chapter 9 Arrays.
Presentation transcript:

Just a question for Mac users: How do you get HELP> Reference?

Chapter 13, Math A few Examples

Modulo The modulo operator calculates the remainder when one number is divided by another. e.g. 17 modulo 6 = 5 17 % 6 = 5   Modulo applies to integers and floats: int a = 5 % 4; // Sets 'a' to 1 int b = 125 % 100; // Sets 'b' to 25 float c = 285.5 % 140.0; // Sets 'c' to 5.5 float d = 30.0 % 33.0; // Sets 'd' to 30.0 Note that when the divisor is greater than the dividend, the remainder constitutes the value of the entire dividend.

Uses in Processing Some of the ways in which it can be used in programming include: -Keeping a number within a limit -Cycling through an array of images

One of our favs, the moving car… With if() condition Try modulo instead of if() int x = 0; void draw() { background(255); rect(x, 20, 10, 5); x = x + 1; if(x>width) { x = 0; } println(x+1);   x = (x+1) % width;   Note how it works: 1 % 100 = 1 2 % 100 = 2 … 98 % 100 = 98 99 % 100 = 99 100 % 100 = 0

Uses to cycle through array Examine example 13-1 Each of the 4 numbers in the array will be set to a random grayscale color. Then it starts back to the first number in the array.

Uses to make decision First use for to subtract 20 px from size of rectangle Then use conditional to change stroke based on even or odd number. int size = 200; size(200,200); background(255); noFill(); strokeWeight(3); rectMode(CENTER); for (int i = 1; i<11; i++) { rect(100,100, size, size ); size = size - 20; }

Example from Chap. 15 Open the slide show example in 15-3 Use my pictures from class website or your own.