Do-more Technical Training Instruction Set (Math).

Slides:



Advertisements
Similar presentations
Introduction to C Programming
Advertisements

Section 1.1 Expressions & Formulas August 24, 2010.
PEMDAS Order of operations.
IS means = sign Writing Equations: “2 more than twice a number is 5”
Java Programming, 3e Concepts and Techniques Chapter 3 Section 63 – Manipulating Data Using Methods – Day 2.
Objective A: To Evaluate Exponential Expressions
CIS 234: Order of Operations, Shortcut & Other Operators Dr. Ralph D. Westfall February, 2004.
CS 3850 Lecture 5 Operators. 5.1 Binary Arithmetic Operators Binary arithmetic operators operate on two operands. Register and net (wire) operands are.
Section 1.2 Basic Operations of Algebra. 2 Fundamental Laws of Algebra Commutative Law of addition: Commutative Law of multiplication: Associative Law.
Algebraic Expressions and Integers
Sections 1.4 and 1.5 Order of Operations, Part 1
Lesson 16: Working with Formulas and Functions. Learning Objectives After studying this lesson, you will be able to:  Create formulas to calculate values,
Chapter 2: Sampling and Surveys Section 2.1: Samples, Good and Bad.
Math Vocab By Lexy. Constant term the expression or number that has a fixed value and doesn’t contain variables constant term 5x+6-h2 the constant term.
Symbols and Expressions 1-1. I. Algebraic Expressions  Vocabulary: 1. Variable – letter that represents one or more numbers 2. Algebraic expression –
Chapter 1 Section 3 Copyright © 2011 Pearson Education, Inc.
5.1 Algebraic Expressions. CAN YOU FOLLOW ORDER OF OPERATIONS?
Order of Operations & Evaluating Expressions. Review: Order of Operations Please- Parentheses Excuse- Exponents My- Multiplication Dear- Division Aunt-
Section 3Chapter 1. 1 Copyright © 2012, 2008, 2004 Pearson Education, Inc. Objectives Exponents, Roots, and Order of Operations Use exponents. Find.
JAVA 0. HAFTA Algorithms FOURTH EDITION Robert Sedgewick and Kevin Wayne Princeton University.
Chapter 3 Polynomial and Rational Functions Copyright © 2014, 2010, 2007 Pearson Education, Inc Zeros of Polynomial Functions.
Lesson 11 Reciprocal & Multiplicative Inverse-Order of Operations –Identifying Multiplication & Addition If one fraction is the inverted form of another.
1 Workshop Topics - Outline Workshop 1 - Introduction Workshop 2 - module instantiation Workshop 3 - Lexical conventions Workshop 4 - Value Logic System.
Everyday Math Unit 6 Vocabulary Miss Beasley. 6.1 and 6.2 Reciprocals- pairs of numbers whose product is 1. – Example: 2 is the reciprocal of ½ Division.
Hosted By The Math Institute
SUBTRACTION OF REAL NUMBERS CHAPTER 1 SECTION 7 MTH Algebra.
1 Copyright © 2015, 2011, 2007 Pearson Education, Inc. Chapter 1-1 Basic Concepts Chapter 1.
Algebra 1c 1-1 Symbols and Expressions Terms to Know: Variable: A symbol that represents a number. Algebraic Expression: Is a collection of numbers, operators,
UNIT 2, LESSON 5 DESCARTES LAW OF SIGNS. FINDING POLYNOMIALS WITH GIVEN ZEROS If we are given the zeros of a polynomial, we can generate the polynomial.
Order of Operations Next By: Rebecca Olinger. You all know how to add, subtract, multiply, and divide. Next.
Lesson 4: Working with Formulas and Functions. Learning Objectives After studying this lesson, you will be able to:  Create formulas to calculate values,
Introduction to PLC Operation
INTRODUCTION TO MATLAB Dr. Hugh Blanton ENTC 4347.
COMPUTER PROGRAMMING I SUMMER Apply operators and Boolean expressions.
Operators & Expressions
Chapter 3 Polynomial and Rational Functions Copyright © 2014, 2010, 2007 Pearson Education, Inc Zeros of Polynomial Functions.
PS Algebra I.  when simplifying an expression, this is the procedure you must use: 1) simplify any grouping symbols found within the expression (grouping.
ECE 103 Engineering Programming Chapter 4 Operators Herbert G. Mayer, PSU CS Status 6/19/2015 Initial content copied verbatim from ECE 103 material developed.
Why Repetition? Read 8 real numbers and compute their average REAL X1, X2, X3, X4, X5, X6, X7, X8 REAL SUM, AVG READ *, X1, X2, X3, X4, X5, X6, X7, X8.
CS 161 Introduction to Programming and Problem Solving Chapter 12 C++ Statements Herbert G. Mayer, PSU Status 10/8/2014 Initial content copied verbatim.
Do-more Technical Training Instruction Set (String)
THE ORDER OF OPERATIONS 1-2. VOCABULARY… 1.Order of Operations – a. Work inside grouping symbols ( ) or [ ] b. Simplify any terms with exponents 3 2 c.
Do-more Technical Training Instruction Set (Analog/Process)
OPERATORS IN C CHAPTER 3. Expressions can be built up from literals, variables and operators. The operators define how the variables and literals in the.
Do-more Technical Training Instruction Set (Misc/Data Manipulation)
1 Math Order of Operations Day 1. 2 What Are You Learning? I CAN evaluate expressions using the order of operations.
L131 Assignment Operators Topics Increment and Decrement Operators Assignment Operators Debugging Tips rand( ) math library functions Reading Sections.
ECE 103 Engineering Programming Chapter 4 Operators Herbert G. Mayer, PSU Status 6/10/2016 Initial content copied verbatim from ECE 103 material developed.
Chapter 3 Math Operations. Objectives Use the assignment and arithmetic operators. Use operators in output statements. Explain the problem with division.
CLOSE Please YOUR LAPTOPS, and get out your note-taking materials.
Do-more Technical Training
Simplifying Expressions; Order of Operations
CS1371 Introduction to Computing for Engineers
Order of Operations ÷ + - X.
CLAST Arithmetic by Joyce
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Exponents and Order of Operations
Please Excuse My Dear Aunt Sally
Evaluating Expressions
Chapter 1 Section 4.
PEMDAS MATH MADE EASY.
Sec 1.1 – Order of Operations
Lesson 3: Working with Formulas and Functions
Unit 2 Chapter 3 Real Numbers
Do now ÷ 3 8 –
So which is the correct answer?
Symbols and Expressions
5.03 Apply operators and Boolean expressions
REPETITION Why Repetition?
Presentation transcript:

Do-more Technical Training Instruction Set (Math)

Instruction Set (Math) DEC “Decrement” ▫D▫Decrements the value in location by 1 every scan as long as it has Power Flow ▫P▫Parameters: EElement – location to decrement ▫N▫NOTES: RReal numbers can also be used

INC “Increment” ▫I▫Increments the value in location by 1 every scan as long as it has Power Flow ▫P▫Parameters: EElement – location to decrement ▫N▫NOTES: RReal numbers can also be used

LERP “Linear Interpolation” ▫U▫Uses a table of 2 to 50 input / output data pairs to generate an output by interpolation & extrapolation ▫P▫Parameters: IInput Variable – input location OOutput Variable – generated output location OOutput Behavior when Input is Less Than Lowest Input Point CClamp to Lowest Output Point EExtrapolate using Lowest two Points OOutput Behavior when Input in Greater Than Highest Input Point CClamp to Highest Output Point EExtrapolate using Highest two Points ▫E▫Editing Buttons IInsert – inserts row before current row RRemove – deletes current row MMove Up – moves current row up MMove Down – moves current row down SSort – orders table by increasing value of the “Input Point” column IImport – imports data pairs to fill the table from a CSV file Extrapolate using Highest two Points x Clamp to Highest Output Point Individual Data Point Linear Interpolation between data points Individual Data Point

Instruction Set (Math) MATH “Calculate Expression” ▫P▫Performs complex math in spreadsheet-formula fashion ▫8▫8 levels of nested parentheses ▫T▫Traditional math precedence: PParentheses  EExponents (roots)  MMultiplication/Division  AAddition/Subtraction ““Please Excuse My Dear Aunt Sally” ▫U▫Uses 32-bit math (promotion of bytes, words, dwords) ▫I▫Integer math unless reals are involved, then promotion to real math occurs

MATH “Calculate Expression”

Instruction Set (Math) MATH “Calculate Expression” NOTE: Bit positions that have been vacated by the shift are filled with the sign bit NOTE: Bit positions that have been vacated by the shift are filled with 0 (zero)

Instruction Set (Math) MATH “Calculate Expression” NOTE: Are both D0 & D1 non-zero? Yes: D10=1 No: D10=0 NOTE: Is either D0 or D1 non-zero? Yes: D10=1 No: D10=0 NOTE: Is D0 = 0 (zero)? Yes: D10 = 1 No: D10 = 0 (zero)

Instruction Set (Math) MATH “Calculate Expression”

Instruction Set (Math) MATH “Calculate Expression”

Instruction Set (Math) MATH “Calculate Expression”

Instruction Set (Math) MATH “Calculate Expression” RANDINT & RANDREAL are seeded from the RANDSEED instruction

Instruction Set (Math) MATH “Calculate Expression” If C7 = ON Then D10 = D0 Else D10 = D1

Instruction Set (Math) MATH “Calculate Expression” NOW() Returns the number of seconds since 1970 REF(p1,p2) p1: Memory Block Type (see in Memory Configuration) p2: Index REF(p1,p2) similar to REFWRITE “Write Value Indirectly” instruction

Instruction Set (Math) RANDSEED “Random Number Seed” ▫S▫Sets a seed value that will be used by the RANDINT() “Generate Random Integer” and RANDREAL() “Generate Random Real” functions inside the MATH “Calculate Expression” instruction ▫P▫Parameters: SSeed – location of seed number