9 Using Equation Networks

Size: px
Start display at page:

Download "9 Using Equation Networks"

Transcription

1 9 Using Equation Networks In this chapter Introduction to Equation Networks 244 Equation format 247 Using register address lists 254 Setting up an enable contact 255 Equations displayed within the Network Editor 256

2 ProWORX NxT User s Guide Introduction to Equation Networks An Equation Network provides an easy way to program complex math functions, with values stored in register locations. Equations in an Equation Network are presented in a regular, left-to-right format, technically known as infix notation. You program Equation Networks and set its enable contact and output coil(s) in the Equation Network Editor. Equation Networks were introduced in Quantum Rev. 2 controllers; not all controllers support Equation Networks. The easiest way to see if your controller supports Equation Networks is by trying to create a new one if your controller doesn t support it, the Equation Network option on the Insert menu won t be available. To create a new Equation Network: 1. In the main Network Editor, move to the logic network where you want the new Equation Network. Each Equation Network takes up an entire network s worth of logic. 2. Click Edit, then from the Insert menu, click Equation Network. The Equation Network Editor display appears and a blank Equation Network is inserted into your logic. To edit an existing Equation Network: 1. In the main Network Editor, move the cursor to the top row of the Equation Network you want to edit. 2. From the Edit menu, click Edit Equation Network. (When the cursor is on an Equation Network, this option replaces Edit Instruction in the Edit menu.) - Or - Double-click anywhere in the Equation Network. 244 Introduction to Equation Networks

3 The Equation Network Editor display The Equation Network Editor display looks like this: Chapter 9 Using Equation Networks Each element of an equation takes up a certain amount of space, measured in nodes. This text tells you how much space you have left. These buttons switch between four different panels in the Equation Network Editor: Coils (shown), Operators, Functions, and Symbols. You select an enable contact and its register address in this panel. The equation appears in this editor. You can type the equation in directly, if you wish. Click for a list of previously-used addresses. Click to view the Descriptor Summary. The register addresses for the Equation Network s output coils are set in the Coils panel. While you can type in the equation from the keyboard, three list panels. For example, the Operators, Functions and Symbols panels let you insert items directly into your equation. To add an item from a list panel to your Equation Network: 1. Select the list panel from which you want to add an item. 2. Move the equation cursor to where you want to add the item. 3. In the list box, double-click the item you want to add. If any text within the equation is selected, the new item will replace it. - Or - Drag the item from the panel onto the equation or address box. The Equation Network Editor display 245

4 ProWORX NxT User s Guide Coils panel You set addresses for the output coils in the Coils panel. There are five possible output coils for an Equation Network: Solved OK is set when the equation is being solved without errors. Result<0 is set when the equation result is less than zero. Result=0 is set when the equation result is equal to zero. Result>0 is set when the equation result is greater than zero. Error is set when errors have occurred while solving the equation. While online, if the Error coil receives power, an error message will appear under the coil describing the error. To change an address for one of the output coils: From the Equation Network Editor, click the appropriate text box in the output coils panel and type the register address for that coil. You can enter either the direct address (in X:Y numeric format) or a symbolic address. You can also insert addresses from the Symbols list panel, Used Register Address table and the Descriptor Summary. If you don't want to use a particular output coil, leave the address for that coil blank (or erase one already typed in). That coil will not be included in the Equation Network. Operators list panel The Operators list panel contains a list of mathematical operators recognized by the Equation Network Editor. This includes operators for addition, multiplication, exponentiation, boolean, and comparison operations. You can insert an item from the Operators panel directly into your equation. For a complete list of operators and their meanings, see Mathematical operations in equation networks on page The Equation Network Editor display

5 Equation format Functions list panel Chapter 9 Using Equation Networks The Functions list panel contains a list of standard math functions you can include in your equation. Each of these functions takes one argument enclosed in brackets following the function name. The argument can be any valid value or expression. For example, COS(# ) returns the cosine of 35 plus the number stored at address You can insert a function from the Functions panel directly into your equation. For a complete list of functions, see Mathematical functions in equation networks on page 253. Symbols list panel The Symbols list panel contains a list of all previously-defined symbols for use in an Equation Network. You can insert an item from the Symbols panel directly into your equation, an output coil address box or the enable contact address box. For more information on symbols, see Symbolic addressing on page 179. ProWORX NxT expects equation elements to appear in a specific format. Operations and functions each have their own format. Also, for each value, you must specify what kind of value it is (register address, constant or symbol) and its data type (signed integer, unsigned integer, etc.). Equation values and data types Each value can refer to a constant, register address or symbol. The Equation Network Editor determines which one it is based on the following format: Format Meaning Example Default (no # sign or single quotes) Register address Prefixed by # Constant #123 Enclosed in single quotes Symbol HEIGHT Equation values and data types 247

6 ProWORX NxT User s Guide The actual data type of a value is determined by its suffix, as shown in the following table: Suffix Meaning Example None 16-bit signed integer #38 U 16-bit unsigned integer 40001U L Long (32-bit) signed integer #-123L UL Long (32-bit) unsigned integer HEIGHT UL F 32-bit floating point (real) #+1.45E-4F Typically, you d first indicate the register address where the calculated result is to be stored, followed by an equal sign (the assignment operator ), followed by the calculation itself. For example: = 40002U + COS(40003UL) * #+1.35E-4F / 'HEIGHT'L 40002U is an address of a 16-bit unsigned integer. COS(40003UL) calculates the cosine of a long (32-bit) unsigned integer value stored at address #+1.35E-4F is the floating point value of , given in exponential notation. HEIGHT L is a symbol of the name HEIGHT, representing the address of a long (32-bit) signed integer = indicates that the result of the calculation is to be stored in register address as a 16-bit signed integer. Everything to the right of the assignment operator also constitutes an expression. An expression is any part of an equation that can be evaluated to a single value. This can be a single constant or register address, or a complete mathematical operation. For example, #35 is an expression, as are LOG(#10) and 40002U + COS(40003UL). Complex expressions can contain other expressions within them, as in #3 * (40002U + COS(40003UL)). For the most part, any operator or function can be performed on any expression, no matter how complex. It is good programming practice to enclose all expressions in parentheses, even when they re not actually needed. This makes the equation easier to read and ensures that operations in an equation are solved in the correct order. 248 Equation values and data types

7 Exponential notation Chapter 9 Using Equation Networks Floating point numbers are normally specified in exponential notation, as in: +1.35E-4 This represents 1.35 times 10 to the -4th power, or 1.35 times Thus, we would shift the decimal place four places to the left to get The -4 part is called the exponent (note the preceding E ) and can be a positive or negative number. In the Equation Network Editor, you must also indicate: That these numbers are constants; and Their data types. For example, integers or floating point numbers. The default data type is unsigned 16-bit integer. So, since the above value is a fraction (and therefore must be a floating point number), it would have to appear as #+1.35E-4F. With no data type suffix, numbers in exponential notation are assumed to be integers. For example, #+1.35E+2 represents the unsigned 16-bit integer value 135. Exponential notation is particularly useful for very large integers. Mathematical operations in equation networks The following table lists the mathematical operations you can include in your equation. Assignment operator The assignment operator = is used to assign a storage place for the results of the equation. All equations will use the assignment operator. The format is: ADDRESS = EXPRESSION Where ADDRESS is a valid register address and EXPRESSION is a valid value or expression assigned to the address. = Assignment. Mathematical operations in equation networks 249

8 ProWORX NxT User s Guide Unary operators Unary means single, so unary operators are used on only one value. The unary operator is placed just before the value or expression to which it is applied. For example, - (30002) returns -1 times the number stored at address Exponentiation operator Takes values to a specified power **3 returns the (integer) value stored at 40001, taken to the third power. Arithmetic operators These require two values, one before and one after the operator. These values can be any valid expression. For example, #4 * results in four multiplied by the value stored at address Negation. The result is -1 times the value. ~ Ones complement. This works on the binary representation of a value: all 1s are changed to 0s and vice versa. ** Exponentiation. * Multiplication / Division + Addition - Subtraction 250 Mathematical operations in equation networks

9 Chapter 9 Using Equation Networks Bitwise operators Bitwise operators work on binary (base 2) representations of values. In the case of AND, OR and XOR, the computer applies the operator to each digit in the two values: 010 XOR 011 (2 XOR 3 in decimal numbers) results in 001 (1 in decimal). In the case of shifting operators, the computer shifts all digits in the binary representation of the number the given number of places to the left or right. Digits on one side of the number are lost, and zeros fill in the blanks on the other side. For example, for 8-bit numbers, 77 << 2 means shifted left two digits. The binary result is , or 52 decimal Relational operators These operators describe a comparison between two values or expressions. The result is always true (1) or false (0). For example, #35 <= #42 evaluates to 1 (true). Relational operators are used in Conditional expressions. & AND. The single bit result of an AND operation is only true (1) if both bits are set to 1. OR. The single bit result of an OR operation is true (1) if either bit is set to 1. The result is false (0) only if both bits are set to 0. ^ XOR, short for exclusive or. The single bit result of an XOR operation is false (0) if both bits are the same, true (1) otherwise. << Left shift. The result of 40001<<#2 is the binary representation of the number stored at shifted left two (#2) places. Zeros are added on the right to fill in the gap. >> Right shift. The result of 40001>>#2 is the binary representation of the number stored at shifted right two (#2) places. Zeros are added on the left to fill in the gap. < Less than. <= Less than or equal to. = Equal to. <> Not equal to. => Greater than or equal to. > Greater than. Mathematical operations in equation networks 251

10 ProWORX NxT User s Guide Conditional operators See page252 for details. Parentheses Used to set precedence in solving equations. To make sure certain operations are solved before others, enclose those operations in parentheses.? : Used in a conditional expression. ( ) Conditional expressions In Equation Networks, conditional expressions take the following form: EXPR1 RELOP (EXPR2)? (EXPR3) : EXPR4 EXPR1 through EXPR4 can be any address, value or expression. If EXPR2 or EXPR3 are not single values or addresses, they must be enclosed in brackets. RELOP can be any relational operator, such as > (greater than) or <> (not equal to). When solving a conditional expression, the computer first compares EXPR1 and EXPR2, based on the relational operator. If the comparison is true, the value of the conditional expression is the result of EXPR3. If the comparison is false, the value of the conditional expression is EXPR4. It is especially good programming practice to enclose all expressions within a conditional expression in parentheses, even when they re not actually needed. This makes the equation easier to read and ensures that operations are solved in the correct order. 252 Mathematical operations in equation networks

11 Mathematical functions in equation networks Chapter 9 Using Equation Networks The following table lists the pre-defined math functions you can include in your equation. Each of these functions takes one argument enclosed in brackets following the function name. The argument can be any valid value or expression. For example, COS(# ) returns the cosine of 35 plus the number stored at address In this table, X refers to a function s argument (as in COS(X) ). ABS(X) ARCCOS(X) ARCSIN(X) ARCTAN(X) COS(X) COSD(X) EXP(X) FIX(X) FLOAT(X) Absolute value of X (i.e. negative numbers become positive). Arc cosine of X radians. Arc sine of X radians. Arc tangent of X radians Cosine of X radians. Cosine of X degrees. Calculates e (approximately ) to the Xth power. Converts floating point number X to an integer. Converts integer X to a floating point number. LN(X) Natural (base e) logarithm of X. LOG(X) Common (base 10) logarithm of X. SIN(X) SIND(X) Sine of X radians. Sine of X degrees. SQRT(X) Square root of X. TAN(X) TAND(X) Tangent of X radians. Tangent of X degrees. Mathematical functions in equation networks 253

12 ProWORX NxT User s Guide Using register address lists Click the Used to bring up a list of previously-used addresses register addresses that have been used elsewhere in your logic database. Click the Summary to bring up the Descriptor Summary display for the address currently selected. This includes addresses for output coils and the enable contact. If the cursor does not highlight a register address, the Descriptor Summary will jump to address Addresses from both tables can be inserted directly into the equation. To insert an address from the Previously-Used Address table or Descriptor Summary: 1. Move the cursor to the spot in the equation (or to a coil address box) where you want to insert the address. 2. Click Used or Summary. The appropriate table appears. 3. Navigate through the table until you find the address you want to add to the equation. 4. Double-click that address. The address is inserted at the current cursor position. If any text was selected, it will be overwritten. 254 Mathematical functions in equation networks

13 Chapter 9 Using Equation Networks Setting up an enable contact An Equation Network s enable contact, when set, activates the Equation Network. If an enable contact passes current, the Equation Network will be solved. You change settings for the enable contact in the Enable Editor display. To select a type for the enable contact: Select the symbol of the enable contact that corresponds with your chosen type. An enable contact can be a normally-open contact( ), normally-closed contact ( ), horizontal short ( ), or a horizontal open ( ). To select a register address for the enable contact: In the Enable Contact address field, type the direct address (in X:Y numeric format) or symbolic address for the enable contact coil. This field is only available if the enable contact type is a normally-open or normally closed contact. - Or - Insert an address into the Enable Contact address field from the Symbols list panel, Used-Register Address table, or the Descriptor Summary. Setting up an enable contact 255

14 ProWORX NxT User s Guide Equations displayed within the Network Editor When you scroll to an Equation Network from the main Network Editor, the display will show the text of the equation you created, along with any input or output coils. There are several things to keep in mind when viewing Equation Networks from the main Network Editor: Blocking: Blocking operations on Equation Networks are limited to single cells or full network blocks. The only blocking operation not allowed is a block save saved blocks cannot have Equation Networks. Cursor movement: You can only move the cursor onto the input contact or output coils of an Equation Network. Cut and Paste: You can Copy part of the Equation Network into the clipboard, but you cannot Paste into it. Similarly, the Cut operation will copy material into the clipboard, but will not delete anything. The Equation Network Editor must be used for modifying Equation Networks. Display menu: Tables and lists created using commands from the Display menu will include items used in Equation Networks. Find, Locate Coil and Global searches: All search operations will find (and replace) searched-for items within Equation Networks. The search result tables will show Eqn for any addresses that are part of the actual equation of an Equation Network. Instruction Speed buttons: These have no effect when viewing Equation Networks. Online mode: Power flow is shown using settings from the Network Display setup dialog box. Any contact or coil receiving power will show power flow. If the enable contact passes power, the equation box will also change to show power flow. Forcing an Equation Network output coil on or off affects how power is passed through that coil; however, the power flow of the output coil itself is still displayed based on the status of the Equation Network. For example, Result>0 will still show power if an Equation Network s Result is greater than 0. This may make for some strange visual effects, such as an output coil that seems to be passing flow but doesn't affect anything that follows. 256 Equations displayed within the Network Editor

15 Chapter 9 Using Equation Networks The following Network Editor features are disabled when you move the cursor onto an Equation Network: Assembly Register (AR) operations that modify parts of an Equation Network. Functions that force discrete variables will work as usual. Insert Row/Column Delete Element/Row/Column Drag and drop operations from side panels. Equations displayed within the Network Editor 257

16

10 Using the PCFL Editor In this chapter

10 Using the PCFL Editor In this chapter 10 Using the PCFL Editor In this chapter Introduction to the PCFL editor 260 Editing PCFL registers 261 Customizing the PCFL configuration file 272 ProWORX NxT User s Guide Introduction to the PCFL editor

More information

PROGRAMMING WITH MATLAB DR. AHMET AKBULUT

PROGRAMMING WITH MATLAB DR. AHMET AKBULUT PROGRAMMING WITH MATLAB DR. AHMET AKBULUT OVERVIEW WEEK 1 What is MATLAB? A powerful software tool: Scientific and engineering computations Signal processing Data analysis and visualization Physical system

More information

Ordinary Differential Equation Solver Language (ODESL) Reference Manual

Ordinary Differential Equation Solver Language (ODESL) Reference Manual Ordinary Differential Equation Solver Language (ODESL) Reference Manual Rui Chen 11/03/2010 1. Introduction ODESL is a computer language specifically designed to solve ordinary differential equations (ODE

More information

Graphing Calculator Tutorial

Graphing Calculator Tutorial Graphing Calculator Tutorial This tutorial is designed as an interactive activity. The best way to learn the calculator functions will be to work the examples on your own calculator as you read the tutorial.

More information

Operators Functions Order of Operations Mixed Mode Arithmetic VOID Data. Syntax and type conventions Using the Script window interface

Operators Functions Order of Operations Mixed Mode Arithmetic VOID Data. Syntax and type conventions Using the Script window interface Introduction Syntax Operators Functions Order of Operations Mixed Mode Arithmetic VOID Data Introduction Map Layer Mathematics Algebraic statements are used to perform the basic mathematical operations

More information

Functions and Inverses ID1050 Quantitative & Qualitative Reasoning

Functions and Inverses ID1050 Quantitative & Qualitative Reasoning Functions and Inverses ID1050 Quantitative & Qualitative Reasoning Function and Inverse Function Gun Analogy Functions take a number, perform an operation on it, and return another number. The inverse

More information

Expressions. Eric McCreath

Expressions. Eric McCreath Expressions Eric McCreath 2 Expressions on integers There is the standard set of interger operators in c. We have: y = 4 + 7; // add y = 7-3; // subtract y = 3 * x; // multiply y = x / 3; // integer divide

More information

Expressions and operators

Expressions and operators Mathematical operators and expressions The five basic binary mathematical operators are Operator Operation Example + Addition a = b + c - Subtraction a = b c * Multiplication a = b * c / Division a = b

More information

Data Types and Basic Calculation

Data Types and Basic Calculation Data Types and Basic Calculation Intrinsic Data Types Fortran supports five intrinsic data types: 1. INTEGER for exact whole numbers e.g., 1, 100, 534, -18, -654321, etc. 2. REAL for approximate, fractional

More information

Arithmetic. 2.2.l Basic Arithmetic Operations. 2.2 Arithmetic 37

Arithmetic. 2.2.l Basic Arithmetic Operations. 2.2 Arithmetic 37 2.2 Arithmetic 37 This is particularly important when programs are written by more than one person. It may be obvious to you that cv stands for can volume and not current velocity, but will it be obvious

More information

Goals for This Lecture:

Goals for This Lecture: Goals for This Lecture: Understand integer arithmetic Understand mixed-mode arithmetic Understand the hierarchy of arithmetic operations Introduce the use of intrinsic functions Real Arithmetic Valid expressions

More information

2 Making Decisions. Store the value 3 in memory location y

2 Making Decisions. Store the value 3 in memory location y 2.1 Aims 2 Making Decisions By the end of this worksheet, you will be able to: Do arithmetic Start to use FORTRAN intrinsic functions Begin to understand program flow and logic Know how to test for zero

More information

Chapter 4: Basic C Operators

Chapter 4: Basic C Operators Chapter 4: Basic C Operators In this chapter, you will learn about: Arithmetic operators Unary operators Binary operators Assignment operators Equalities and relational operators Logical operators Conditional

More information

Lesson #3. Variables, Operators, and Expressions. 3. Variables, Operators and Expressions - Copyright Denis Hamelin - Ryerson University

Lesson #3. Variables, Operators, and Expressions. 3. Variables, Operators and Expressions - Copyright Denis Hamelin - Ryerson University Lesson #3 Variables, Operators, and Expressions Variables We already know the three main types of variables in C: int, char, and double. There is also the float type which is similar to double with only

More information

Introduction to Programming

Introduction to Programming Introduction to Programming Department of Computer Science and Information Systems Tingting Han (afternoon), Steve Maybank (evening) tingting@dcs.bbk.ac.uk sjmaybank@dcs.bbk.ac.uk Autumn 2017 Week 4: More

More information

Graphing Calculator Scientific Calculator Version 2.0

Graphing Calculator Scientific Calculator Version 2.0 Graphing Calculator Scientific Calculator Version 2.0 www.infinitysw.com/ets March 14, 2017 1 Table of Contents Table of Contents 1 Overview 3 2 Navigation 4 3 Using the Calculator 5 Display 5 Performing

More information

ANSI C Programming Simple Programs

ANSI C Programming Simple Programs ANSI C Programming Simple Programs /* This program computes the distance between two points */ #include #include #include main() { /* Declare and initialize variables */ double

More information

Bits, Words, and Integers

Bits, Words, and Integers Computer Science 52 Bits, Words, and Integers Spring Semester, 2017 In this document, we look at how bits are organized into meaningful data. In particular, we will see the details of how integers are

More information

LinReg 2.06 Manual. DePauw University: Physics Department 120 Physics I and 130 Physics II

LinReg 2.06 Manual. DePauw University: Physics Department 120 Physics I and 130 Physics II LinReg 2.06 Manual DePauw University: Physics Department 120 Physics I and 130 Physics II Updated March 23 rd, 2011 1 About LinReg: LinReg is a program used extensively in DePauw s physics laboratory classes.

More information

Custom Variables (Virtual Variables)

Custom Variables (Virtual Variables) Page 1 of 7 Custom Variables (Virtual Variables) Allocate not only allows you to select standard variables, but also allows you to create your own unique demographic variables. You may create new variables

More information

Introduction to Engineering gii

Introduction to Engineering gii 25.108 Introduction to Engineering gii Dr. Jay Weitzen Lecture Notes I: Introduction to Matlab from Gilat Book MATLAB - Lecture # 1 Starting with MATLAB / Chapter 1 Topics Covered: 1. Introduction. 2.

More information

Chapter 3: Operators, Expressions and Type Conversion

Chapter 3: Operators, Expressions and Type Conversion 101 Chapter 3 Operators, Expressions and Type Conversion Chapter 3: Operators, Expressions and Type Conversion Objectives To use basic arithmetic operators. To use increment and decrement operators. To

More information

Week 2: Console I/O and Operators Arithmetic Operators. Integer Division. Arithmetic Operators. Gaddis: Chapter 3 (2.14,3.1-6,3.9-10,5.

Week 2: Console I/O and Operators Arithmetic Operators. Integer Division. Arithmetic Operators. Gaddis: Chapter 3 (2.14,3.1-6,3.9-10,5. Week 2: Console I/O and Operators Gaddis: Chapter 3 (2.14,3.1-6,3.9-10,5.1) CS 1428 Fall 2014 Jill Seaman 1 2.14 Arithmetic Operators An operator is a symbol that tells the computer to perform specific

More information

TECH TIP VISION Calibration and Data Acquisition Software

TECH TIP VISION Calibration and Data Acquisition Software TECH TIP VISION Calibration and Data Acquisition Software May 2016 Using Calculated Channels in VISION Calculated channels are data items created in a Recorder file whose values are calculated from other

More information

Sketchify Tutorial Properties and Variables. sketchify.sf.net Željko Obrenović

Sketchify Tutorial Properties and Variables. sketchify.sf.net Željko Obrenović Sketchify Tutorial Properties and Variables sketchify.sf.net Željko Obrenović z.obrenovic@tue.nl Properties and Variables Properties of active regions and sketches can be given directly, or indirectly

More information

Operators. Java operators are classified into three categories:

Operators. Java operators are classified into three categories: Operators Operators are symbols that perform arithmetic and logical operations on operands and provide a meaningful result. Operands are data values (variables or constants) which are involved in operations.

More information

Programming in QBasic

Programming in QBasic Programming in QBasic Second lecture Constants In QBASIC: Constants In QBASIC division into three types: 1. Numeric Constants: there are two types of numeric constants: Real: the numbers used may be written

More information

1. Math symbols Operation Symbol Example Order

1. Math symbols Operation Symbol Example Order Excel 2 Microsoft Excel 2013 Mercer County Library System Brian M. Hughes, County Executive Excel s Order of Calculation 1. Math symbols Operation Symbol Example Order Parentheses ( ) =(4+2)*8 1st Exponents

More information

EXCEL 98 TUTORIAL Chemistry C2407 fall 1998 Andy Eng, Columbia University 1998

EXCEL 98 TUTORIAL Chemistry C2407 fall 1998 Andy Eng, Columbia University 1998 Created on 09/02/98 11:58 PM 1 EXCEL 98 TUTORIAL Chemistry C2407 fall 1998 Andy Eng, Columbia University 1998 Note for Excel 97 users: All features of Excel 98 for Macintosh are available in Excel 97 for

More information

Introduction to Python, Cplex and Gurobi

Introduction to Python, Cplex and Gurobi Introduction to Python, Cplex and Gurobi Introduction Python is a widely used, high level programming language designed by Guido van Rossum and released on 1991. Two stable releases: Python 2.7 Python

More information

CSI31 Lecture 5. Topics: 3.1 Numeric Data Types 3.2 Using the Math Library 3.3 Accumulating Results: Factorial

CSI31 Lecture 5. Topics: 3.1 Numeric Data Types 3.2 Using the Math Library 3.3 Accumulating Results: Factorial CSI31 Lecture 5 Topics: 3.1 Numeric Data Types 3.2 Using the Math Library 3.3 Accumulating Results: Factorial 1 3.1 Numberic Data Types When computers were first developed, they were seen primarily as

More information

The Mathcad Workspace 7

The Mathcad Workspace 7 For information on system requirements and how to install Mathcad on your computer, refer to Chapter 1, Welcome to Mathcad. When you start Mathcad, you ll see a window like that shown in Figure 2-1. By

More information

The Very Basics of the R Interpreter

The Very Basics of the R Interpreter Chapter 2 The Very Basics of the R Interpreter OK, the computer is fired up. We have R installed. It is time to get started. 1. Start R by double-clicking on the R desktop icon. 2. Alternatively, open

More information

Operators and Expression. Dr Muhamad Zaini Yunos JKBR, FKMP

Operators and Expression. Dr Muhamad Zaini Yunos JKBR, FKMP Operators and Expression Dr Muhamad Zaini Yunos JKBR, FKMP Arithmetic operators Unary operators Relational operators Logical operators Assignment operators Conditional operators Comma operators Operators

More information

Introduction to the workbook and spreadsheet

Introduction to the workbook and spreadsheet Excel Tutorial To make the most of this tutorial I suggest you follow through it while sitting in front of a computer with Microsoft Excel running. This will allow you to try things out as you follow along.

More information

CT 229 Java Syntax Continued

CT 229 Java Syntax Continued CT 229 Java Syntax Continued 06/10/2006 CT229 Lab Assignments Due Date for current lab assignment : Oct 8 th Before submission make sure that the name of each.java file matches the name given in the assignment

More information

FSA Geometry EOC Practice Test Guide

FSA Geometry EOC Practice Test Guide FSA Geometry EOC Practice Test Guide This guide serves as a walkthrough of the Florida Standards Assessments (FSA) Geometry End-of- Course (EOC) practice test. By reviewing the steps listed below, you

More information

XQ: An XML Query Language Language Reference Manual

XQ: An XML Query Language Language Reference Manual XQ: An XML Query Language Language Reference Manual Kin Ng kn2006@columbia.edu 1. Introduction XQ is a query language for XML documents. This language enables programmers to express queries in a few simple

More information

Long (or LONGMATH ) floating-point (or integer) variables (length up to 1 million, limited by machine memory, range: approx. ±10 1,000,000.

Long (or LONGMATH ) floating-point (or integer) variables (length up to 1 million, limited by machine memory, range: approx. ±10 1,000,000. QuickCalc User Guide. Number Representation, Assignment, and Conversion Variables Constants Usage Double (or DOUBLE ) floating-point variables (approx. 16 significant digits, range: approx. ±10 308 The

More information

C++ Programming: From Problem Analysis to Program Design, Third Edition

C++ Programming: From Problem Analysis to Program Design, Third Edition C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 2: Basic Elements of C++ Objectives (continued) Become familiar with the use of increment and decrement operators Examine

More information

Chapter 4. Operations on Data

Chapter 4. Operations on Data Chapter 4 Operations on Data 1 OBJECTIVES After reading this chapter, the reader should be able to: List the three categories of operations performed on data. Perform unary and binary logic operations

More information

Dr Richard Greenaway

Dr Richard Greenaway SCHOOL OF PHYSICS, ASTRONOMY & MATHEMATICS 4PAM1008 MATLAB 3 Creating, Organising & Processing Data Dr Richard Greenaway 3 Creating, Organising & Processing Data In this Workshop the matrix type is introduced

More information

Grade 8 FSA Mathematics Practice Test Guide

Grade 8 FSA Mathematics Practice Test Guide Grade 8 FSA Mathematics Practice Test Guide This guide serves as a walkthrough of the Grade 8 Florida Standards Assessments (FSA) Mathematics practice test. By reviewing the steps listed below, you will

More information

Teacher Activity: page 1/9 Mathematical Expressions in Microsoft Word

Teacher Activity: page 1/9 Mathematical Expressions in Microsoft Word Teacher Activity: page 1/9 Mathematical Expressions in Microsoft Word These instructions assume that you are familiar with using MS Word for ordinary word processing *. If you are not comfortable entering

More information

Transform data - Compute Variables

Transform data - Compute Variables Transform data - Compute Variables Contents TRANSFORM DATA - COMPUTE VARIABLES... 1 Recode Variables... 3 Transform data - Compute Variables With MAXQDA Stats you can perform calculations on a selected

More information

cast int( x float( x str( x hex( int string int oct( int string int bin( int string int chr( int int ord( ch

cast int( x float( x str( x hex( int string int oct( int string int bin( int string int chr( int int ord( ch More About Values Casts To cast is to take a value of one type and return the corresponding value of some other type (or an error, if the cast is impossible) int(x) casts a string, float, or boolean x

More information

Intermediate Excel 2016

Intermediate Excel 2016 Intermediate Excel 2016 Relative & Absolute Referencing Relative Referencing When you copy a formula to another cell, Excel automatically adjusts the cell reference to refer to different cells relative

More information

AMS 27L LAB #1 Winter 2009

AMS 27L LAB #1 Winter 2009 AMS 27L LAB #1 Winter 2009 Introduction to MATLAB Objectives: 1. To introduce the use of the MATLAB software package 2. To learn elementary mathematics in MATLAB Getting Started: Log onto your machine

More information

Chapter 1 Introduction to MATLAB

Chapter 1 Introduction to MATLAB Chapter 1 Introduction to MATLAB 1.1 What is MATLAB? MATLAB = MATrix LABoratory, the language of technical computing, modeling and simulation, data analysis and processing, visualization and graphics,

More information

Excel Simple Worksheets (with Functions)

Excel Simple Worksheets (with Functions) Excel 2007 Simple Worksheets (with Functions) Contents The Excel 2007 Window 4 Navigating in Excel... 7 Entering Data 8 Working with Ranges of Cells... 9 Selecting Ranges of Cells 9 Copy and Moving Cell

More information

1/31/2017. Expressions are Used to Perform Calculations. ECE 120: Introduction to Computing. Five Arithmetic Operators on Numeric Types

1/31/2017. Expressions are Used to Perform Calculations. ECE 120: Introduction to Computing. Five Arithmetic Operators on Numeric Types University of Illinois at Urbana-Champaign Dept. of Electrical and Computer Engineering ECE 120: Introduction to Computing Expressions are Used to Perform Calculations Let s talk in more detail starting

More information

9/2/2016. Expressions are Used to Perform Calculations. ECE 120: Introduction to Computing. Five Arithmetic Operators on Numeric Types

9/2/2016. Expressions are Used to Perform Calculations. ECE 120: Introduction to Computing. Five Arithmetic Operators on Numeric Types University of Illinois at Urbana-Champaign Dept. of Electrical and Computer Engineering ECE 120: Introduction to Computing Expressions are Used to Perform Calculations Let s talk in more detail starting

More information

INTRODUCTION... 1 UNDERSTANDING CELLS... 2 CELL CONTENT... 4

INTRODUCTION... 1 UNDERSTANDING CELLS... 2 CELL CONTENT... 4 Introduction to Microsoft Excel 2016 INTRODUCTION... 1 The Excel 2016 Environment... 1 Worksheet Views... 2 UNDERSTANDING CELLS... 2 Select a Cell Range... 3 CELL CONTENT... 4 Enter and Edit Data... 4

More information

Maths Functions User Manual

Maths Functions User Manual Professional Electronics for Automotive and Motorsport 6 Repton Close Basildon Essex SS13 1LE United Kingdom +44 (0) 1268 904124 info@liferacing.com www.liferacing.com Maths Functions User Manual Document

More information

3.1. Chapter 3: The cin Object. Expressions and Interactivity

3.1. Chapter 3: The cin Object. Expressions and Interactivity Chapter 3: Expressions and Interactivity 3.1 The cin Object Copyright 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-1 The cin Object Standard input stream object, normally the keyboard,

More information

Cell to Cell mouse arrow Type Tab Enter Scroll Bars Page Up Page Down Crtl + Home Crtl + End Value Label Formula Note:

Cell to Cell mouse arrow Type Tab Enter Scroll Bars Page Up Page Down Crtl + Home Crtl + End Value Label Formula Note: 1 of 1 NOTE: IT IS RECOMMENDED THAT YOU READ THE ACCOMPANYING DOCUMENT CALLED INTRO TO EXCEL LAYOUT 2007 TO FULLY GRASP THE BASICS OF EXCEL Introduction A spreadsheet application allows you to enter data

More information

Basic operators, Arithmetic, Relational, Bitwise, Logical, Assignment, Conditional operators. JAVA Standard Edition

Basic operators, Arithmetic, Relational, Bitwise, Logical, Assignment, Conditional operators. JAVA Standard Edition Basic operators, Arithmetic, Relational, Bitwise, Logical, Assignment, Conditional operators JAVA Standard Edition Java - Basic Operators Java provides a rich set of operators to manipulate variables.

More information

Introduction. Following are the types of operators: Unary requires a single operand Binary requires two operands Ternary requires three operands

Introduction. Following are the types of operators: Unary requires a single operand Binary requires two operands Ternary requires three operands Introduction Operators are the symbols which operates on value or a variable. It tells the compiler to perform certain mathematical or logical manipulations. Can be of following categories: Unary requires

More information

Basic stuff -- assignments, arithmetic and functions

Basic stuff -- assignments, arithmetic and functions Basic stuff -- assignments, arithmetic and functions Most of the time, you will be using Maple as a kind of super-calculator. It is possible to write programs in Maple -- we will do this very occasionally,

More information

Types and Expressions. Chapter 3

Types and Expressions. Chapter 3 Types and Expressions Chapter 3 Chapter Contents 3.1 Introductory Example: Einstein's Equation 3.2 Primitive Types and Reference Types 3.3 Numeric Types and Expressions 3.4 Assignment Expressions 3.5 Java's

More information

Introduction to MATLAB. Computational Probability and Statistics CIS 2033 Section 003

Introduction to MATLAB. Computational Probability and Statistics CIS 2033 Section 003 Introduction to MATLAB Computational Probability and Statistics CIS 2033 Section 003 About MATLAB MATLAB (MATrix LABoratory) is a high level language made for: Numerical Computation (Technical computing)

More information

LAB 1 General MATLAB Information 1

LAB 1 General MATLAB Information 1 LAB 1 General MATLAB Information 1 General: To enter a matrix: > type the entries between square brackets, [...] > enter it by rows with elements separated by a space or comma > rows are terminated by

More information

2/5/2018. Expressions are Used to Perform Calculations. ECE 220: Computer Systems & Programming. Our Class Focuses on Four Types of Operator in C

2/5/2018. Expressions are Used to Perform Calculations. ECE 220: Computer Systems & Programming. Our Class Focuses on Four Types of Operator in C University of Illinois at Urbana-Champaign Dept. of Electrical and Computer Engineering ECE 220: Computer Systems & Programming Expressions and Operators in C (Partially a Review) Expressions are Used

More information

Matlab Programming Introduction 1 2

Matlab Programming Introduction 1 2 Matlab Programming Introduction 1 2 Mili I. Shah August 10, 2009 1 Matlab, An Introduction with Applications, 2 nd ed. by Amos Gilat 2 Matlab Guide, 2 nd ed. by D. J. Higham and N. J. Higham Starting Matlab

More information

Welcome. Please Sign-In

Welcome. Please Sign-In Welcome Please Sign-In Day 1 Session 1 Self-Evaluation Topics to be covered: Equations Systems of Equations Solving Inequalities Absolute Value Equations Equations Equations An equation says two things

More information

Chapter 3. Computer Science & Engineering 155E Computer Science I: Systems Engineering Focus. Existing Information.

Chapter 3. Computer Science & Engineering 155E Computer Science I: Systems Engineering Focus. Existing Information. Chapter 3 Computer Science & Engineering 155E Computer Science I: Systems Engineering Focus Lecture 03 - Introduction To Functions Christopher M. Bourke cbourke@cse.unl.edu 3.1 Building Programs from Existing

More information

GO - OPERATORS. This tutorial will explain the arithmetic, relational, logical, bitwise, assignment and other operators one by one.

GO - OPERATORS. This tutorial will explain the arithmetic, relational, logical, bitwise, assignment and other operators one by one. http://www.tutorialspoint.com/go/go_operators.htm GO - OPERATORS Copyright tutorialspoint.com An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations.

More information

Numerical Data. CS 180 Sunil Prabhakar Department of Computer Science Purdue University

Numerical Data. CS 180 Sunil Prabhakar Department of Computer Science Purdue University Numerical Data CS 180 Sunil Prabhakar Department of Computer Science Purdue University Problem Write a program to compute the area and perimeter of a circle given its radius. Requires that we perform operations

More information

By the end of this section you should: Understand what the variables are and why they are used. Use C++ built in data types to create program

By the end of this section you should: Understand what the variables are and why they are used. Use C++ built in data types to create program 1 By the end of this section you should: Understand what the variables are and why they are used. Use C++ built in data types to create program variables. Apply C++ syntax rules to declare variables, initialize

More information

FAQ No. 53. ihost: Logic Points. Roles and Privileges. Adding and removing logic points. Accessing and using the Logic Editor

FAQ No. 53. ihost: Logic Points. Roles and Privileges. Adding and removing logic points. Accessing and using the Logic Editor ihost: Logic Points In addition to displaying values reported by a unit, ihost supports adding additional logic points to a unit and calculating the value based on a custom logic expression. On calculation

More information

Math 2 Coordinate Geometry Part 2 Lines & Systems of Equations

Math 2 Coordinate Geometry Part 2 Lines & Systems of Equations Name: Math 2 Coordinate Geometry Part 2 Lines & Systems of Equations Date: USING TWO POINTS TO FIND THE SLOPE - REVIEW In mathematics, the slope of a line is often called m. We can find the slope if we

More information

Introduction to Computers and Programming. Numeric Values

Introduction to Computers and Programming. Numeric Values Introduction to Computers and Programming Prof. I. K. Lundqvist Lecture 5 Reading: B pp. 47-71 Sept 1 003 Numeric Values Storing the value of 5 10 using ASCII: 00110010 00110101 Binary notation: 00000000

More information

Fundamentals: Expressions and Assignment

Fundamentals: Expressions and Assignment Fundamentals: Expressions and Assignment A typical Python program is made up of one or more statements, which are executed, or run, by a Python console (also known as a shell) for their side effects e.g,

More information

CCBC Math 081 Order of Operations Section 1.7. Step 2: Exponents and Roots Simplify any numbers being raised to a power and any numbers under the

CCBC Math 081 Order of Operations Section 1.7. Step 2: Exponents and Roots Simplify any numbers being raised to a power and any numbers under the CCBC Math 081 Order of Operations 1.7 1.7 Order of Operations Now you know how to perform all the operations addition, subtraction, multiplication, division, exponents, and roots. But what if we have a

More information

Engineering Problem Solving with C++, Etter/Ingber

Engineering Problem Solving with C++, Etter/Ingber Engineering Problem Solving with C++, Etter/Ingber Chapter 2 Simple C++ Programs C++, Second Edition, J. Ingber 1 Simple C++ Programs Program Structure Constants and Variables C++ Operators Standard Input

More information

TI-84+ GC 3: Order of Operations, Additional Parentheses, Roots and Absolute Value

TI-84+ GC 3: Order of Operations, Additional Parentheses, Roots and Absolute Value Rev 6--11 Name Date TI-84+ GC : Order of Operations, Additional Parentheses, Roots and Absolute Value Objectives: Review the order of operations Observe that the GC uses the order of operations Use parentheses

More information

Introduction to Computer Programming in Python Dr. William C. Bulko. Data Types

Introduction to Computer Programming in Python Dr. William C. Bulko. Data Types Introduction to Computer Programming in Python Dr William C Bulko Data Types 2017 What is a data type? A data type is the kind of value represented by a constant or stored by a variable So far, you have

More information

More Programming Constructs -- Introduction

More Programming Constructs -- Introduction More Programming Constructs -- Introduction We can now examine some additional programming concepts and constructs Chapter 5 focuses on: internal data representation conversions between one data type and

More information

Computer Science & Engineering 150A Problem Solving Using Computers

Computer Science & Engineering 150A Problem Solving Using Computers Computer Science & Engineering 150A Problem Solving Using Computers Lecture 03 - Stephen Scott (Adapted from Christopher M. Bourke) 1 / 41 Fall 2009 Chapter 3 3.1 Building Programs from Existing Information

More information

MathPad Plus v Basics

MathPad Plus v Basics MathPad Plus v 1.0.1 Basics Basic Process MathPad Plus is an onscreen math worksheet. It allows students to work through addition, subtraction, multiplication and division problems including the use of

More information

BITWISE OPERATORS. There are a number of ways to manipulate binary values. Just as you can with

BITWISE OPERATORS. There are a number of ways to manipulate binary values. Just as you can with BITWISE OPERATORS There are a number of ways to manipulate binary values. Just as you can with decimal numbers, you can perform standard mathematical operations - addition, subtraction, multiplication,

More information

Functions in Excel. Structure of a function: Basic Mathematical Functions. Arithmetic operators: Comparison Operators:

Functions in Excel. Structure of a function: Basic Mathematical Functions. Arithmetic operators: Comparison Operators: Page1 Functions in Excel Formulas (functions) are equations that perform calculations on values in your spreadsheet. A formula always starts with an equal sign (=). Example: =5+2*7 This formula multiples

More information

Computer Science & Engineering 150A Problem Solving Using Computers. Chapter 3. Existing Information. Notes. Notes. Notes. Lecture 03 - Functions

Computer Science & Engineering 150A Problem Solving Using Computers. Chapter 3. Existing Information. Notes. Notes. Notes. Lecture 03 - Functions Computer Science & Engineering 150A Problem Solving Using Computers Lecture 03 - Functions Stephen Scott (Adapted from Christopher M. Bourke) Fall 2009 1 / 1 cbourke@cse.unl.edu Chapter 3 3.1 Building

More information

Excel Tool: Calculations with Data Sets

Excel Tool: Calculations with Data Sets Excel Tool: Calculations with Data Sets The best thing about Excel for the scientist is that it makes it very easy to work with data sets. In this assignment, we learn how to do basic calculations that

More information

ME 142 Engineering Computation I. Unit 1.2 Excel Functions

ME 142 Engineering Computation I. Unit 1.2 Excel Functions ME 142 Engineering Computation I Unit 1.2 Excel Functions TOA Make sure to submit TOA If not submitted, will receive score of 0 Common Questions from 1.1 & 1.2 Named Cell PP 1.1.2 Name cell B2 Payrate

More information

PART 1 PROGRAMMING WITH MATHLAB

PART 1 PROGRAMMING WITH MATHLAB PART 1 PROGRAMMING WITH MATHLAB Presenter: Dr. Zalilah Sharer 2018 School of Chemical and Energy Engineering Universiti Teknologi Malaysia 23 September 2018 Programming with MATHLAB MATLAB Environment

More information

Built-in Types of Data

Built-in Types of Data Built-in Types of Data Types A data type is set of values and a set of operations defined on those values Python supports several built-in data types: int (for integers), float (for floating-point numbers),

More information

Math 171 Proficiency Packet on Integers

Math 171 Proficiency Packet on Integers Math 171 Proficiency Packet on Integers Section 1: Integers For many of man's purposes the set of whole numbers W = { 0, 1, 2, } is inadequate. It became necessary to invent negative numbers and extend

More information

The Absolute Value Symbol

The Absolute Value Symbol Section 1 3: Absolute Value and Powers The Absolute Value Symbol The symbol for absolute value is a pair of vertical lines. These absolute value brackets act like the parenthesis that we use in order of

More information

Learning the Language - V

Learning the Language - V Learning the Language - V Fundamentals We now have locations to store things so we need a way to get things into those storage locations To do that, we use assignment statements Deja Moo: The feeling that

More information

Dr Richard Greenaway

Dr Richard Greenaway SCHOOL OF PHYSICS, ASTRONOMY & MATHEMATICS 4PAM1008 MATLAB 2 Basic MATLAB Operation Dr Richard Greenaway 2 Basic MATLAB Operation 2.1 Overview 2.1.1 The Command Line In this Workshop you will learn how

More information

Chapter 2. Outline. Simple C++ Programs

Chapter 2. Outline. Simple C++ Programs Chapter 2 Simple C++ Programs Outline Objectives 1. Building C++ Solutions with IDEs: Dev-cpp, Xcode 2. C++ Program Structure 3. Constant and Variables 4. C++ Operators 5. Standard Input and Output 6.

More information

Lecture #15 March 3, 2004 A Worked Problem in Floating Point

Lecture #15 March 3, 2004 A Worked Problem in Floating Point Lecture #15 March 3, 2004 A Worked Problem in Floating Point In this lecture we will use the floating point capabilities of the ARM to compute the square root of a single-precision number in register F0

More information

>>> * *(25**0.16) *10*(25**0.16)

>>> * *(25**0.16) *10*(25**0.16) #An Interactive Session in the Python Shell. #When you type a statement in the Python Shell, #the statement is executed immediately. If the #the statement is an expression, its value is #displayed. #Lines

More information

To start using Matlab, you only need be concerned with the command window for now.

To start using Matlab, you only need be concerned with the command window for now. Getting Started Current folder window Atop the current folder window, you can see the address field which tells you where you are currently located. In programming, think of it as your current directory,

More information

Put the Graphs for Each Health Plan on the Same Graph

Put the Graphs for Each Health Plan on the Same Graph At the conclusion of the technology assignment on graphing the total annual cost, you had a graph of each of health insurance plans you are examining. In this technology assignment, you ll combine those

More information

Quick Reference Guide

Quick Reference Guide SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD mikroelektronika Development tools - Books - Compilers Quick Reference Quick Reference Guide with EXAMPLES for Basic language This reference guide

More information

Program Structure and Format

Program Structure and Format Program Structure and Format PROGRAM program-name IMPLICIT NONE specification part execution part subprogram part END PROGRAM program-name Comments Comments should be used liberally to improve readability.

More information

EXCEL 2007 TIP SHEET. Dialog Box Launcher these allow you to access additional features associated with a specific Group of buttons within a Ribbon.

EXCEL 2007 TIP SHEET. Dialog Box Launcher these allow you to access additional features associated with a specific Group of buttons within a Ribbon. EXCEL 2007 TIP SHEET GLOSSARY AutoSum a function in Excel that adds the contents of a specified range of Cells; the AutoSum button appears on the Home ribbon as a. Dialog Box Launcher these allow you to

More information

Lecture- 5. Introduction to Microsoft Excel

Lecture- 5. Introduction to Microsoft Excel Lecture- 5 Introduction to Microsoft Excel The Microsoft Excel Window Microsoft Excel is an electronic spreadsheet. You can use it to organize your data into rows and columns. You can also use it to perform

More information