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

Size: px
Start display at page:

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

Transcription

1 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 of a new value, an event will be created (routine host datalogging must be enabled for analogues) that may be plotted on Interactive Trends and notified to users just the same as regular points. This feature is currently supported for binary inputs, counter inputs and analogue inputs. Roles and Privileges As you should know not all Users can see all pages, links and menu items. It might be that some of the screen shots shown below do not match with what you see this is nothing to worry about. If you are not able to access some of the pages you would like too then please contact your ihost administration team. Adding and removing logic points Logic points can be added via the UI from 2.38 onwards. This is available via a link on the point settings page. Note, there is currently no support for removing logic points once added. Existing logic points can be enabled / disabled via the settings pages. If additional logic points are required for an ihost on version less than 2.38 then please contact technical support. Accessing and using the Logic Editor The logic expression associated with a logic point may be modified using the built-in Logic Editor. The Logic Editor can be accessed for a single point via the Unit Overview or the input settings page. On the Unit Overview, click the calculator icon shown next to the trend graph icon: On the binary input settings page click the Edit link: The logic expression is always validated on saving changes. Also the interval can be updated which is the period between evaluating a logic expression. The interval must be a minimum of 60 seconds. Nortech Management Ltd, United Kingdom Page 1 of 13

2 For Nexus and Bowden P360 units, the logic evaluation can be triggered on a call. This expression will run independent of whether the call failed or was successful as long as the logs were processed and points were updated. Nortech Management Ltd, United Kingdom Page 2 of 13

3 Logic point types The following point types can be logic points: Type Counter Input Expected Return Type Boolean Unsigned Integer Logic points of one type can reference a logic point of a different type as long as the final return type is correct. Logic symbols A logic point is referenced by its symbol and number. Type Symbol Minimum Point Number Maximum Point Number Example BI BI16 Counter Input CI CI16 AI AI16 Binary Output BO BO16 Analogue Output AO AO16 Logic syntax Logic expressions are case insensitive. Spaces are required between operators and functions. There are no line delimiters and the expression must be evaluated as a single line. Custom functions are not supported i.e. only functions listed in this FAQ may be used. Boolean values can be written as True or False. Real and integral numbers can be used. Hex values can be written using the standard hex notation 0xFF12. Some functions may return Null when a value does not apply or has not yet been recorded. Nortech Management Ltd, United Kingdom Page 3 of 13

4 Arithmetic Operators Operator Description + Addition. Example: LastValue(CI0) + LastValue(CI1) - Subtraction. Example: LastValue(CI0) - LastValue(CI1) * Multiplication. Example: LastValue(CI0) * LastValue(CI1) / Division. Example: LastValue(CI0) / LastValue(CI1) % Modulo. Example: LastValue(CI0) % LastValue(CI1) ^ Power. Example: LastValue(AI0) ^ 2 Comparison Operators Operator Description = Equal to. Example: LastValue(CI0) = LastValue(CI1) <> Not equal to. Example: LastValue(CI0) <> LastValue(CI1) > Greater than. Example: LastValue(AI0) > LastValue(AI1) < Less than. Example: LastValue(AI0) < LastValue(AI1) >= Greater than or equal to. Example: LastValue(AI0) >= LastValue(AI1) <= Less than or equal to. Example: LastValue(AI0) <= LastValue(AI1) Logical Operators If both operands of an expression are boolean, then it is a logical operation. Operator And Or Xor Not Description Returns True if both its operands are True. Example: LastValue(BI0) And LastValue(BI1) Returns True if any of its operands are True. Example: LastValue(BI0) Or LastValue(BI1) Otherwise known as Exclusive Or. Returns True if and only if exactly one of its operands are True. Example: LastValue(BI0) Xor LastValue(BI1) Returns True if operand is False and vice-versa. Example: Not LastValue(BI0) Logical Not operator must always be surrounded in parenthesis where it follows a preceding logical Not operator. Example: False Or Not (Not True) Nortech Management Ltd, United Kingdom Page 4 of 13

5 Bitwise Operators Bitwise operations should only be performed on integers such as Counter Input values or numeric values that have been cast to an integer. Bitwise operations are useful where bit flags are encoded in an integer value. Operator Description And Performs logical And operation on each pair of corresponding bits by multiplying them. Result is 1 if both bits are 1, otherwise it is 0. Example: LastValue(CI0) And LastValue(CI1) will return 4 if first value is 5 and the second value is (decimal 5) And 0110 (decimal 6) = 0100 (decimal 4) Or Performs logical Or operation on each pair of corresponding bits. Result is 1 if either bits are 1, otherwise it is 0. Example: LastValue(CI0) Or LastValue(CI1) will return 7 if first value is 5 and the second value is (decimal 5) Or 0110 (decimal 6) = 0111 (decimal 7) Xor Otherwise known as Exclusive Or. Performs logical exclusive Or on each pair of corresponding bits. Result is 1 if only one bit is 1, otherwise it is 0. Example: LastValue(CI0) Xor LastValue(CI1) will return 3 if first value is 5 and the second value is (decimal 5) Xor 0110 (decimal 6) = 0011 (decimal 3) Not Performs logical negation on each bit. Bits that are 0 become 1 and bits that are 1 become 0. Example: Not LastValue(CI0) for a Counter Input (32-bit Unsigned Integer) will return if value is 1. NOT (decimal 1) = (decimal ) Bitwise Not operator must always be surrounded in parenthesis where it follows another operator. For example: 1 - (Not(LastValue(CI0))) For further information, see Nortech Management Ltd, United Kingdom Page 5 of 13

6 Bitwise Shift Operators Bitwise shift operators should only be used on integers such as Counter Input values or numeric values that have been cast to an integer. A binary shift operator shifts all of the bits by moving every bit a specified number of places and the vacant bit positions are filled in. Operator Description << Shifts its first operand left by the number of bits specified by its second operand. Example: LastValue(CI0) << 1 if counter input value is 1 then this will shift the counter input value one bit to the left and the empty position in the least significant bit (most-right bit) is filled with a zero, 1 << 1 = (decimal 1) = (decimal 2) >> Shifts its first operand right by the number of bits specified by its second operand. Example: LastValue(CI0) >> 1 if counter input value is 2 then this will shift the counter input value one bit to the right and the empty position in the most significant bit (most-left bit) is filled with a zero, 2 >> 1 = (decimal 2) = (decimal 1) For further information, see In Operator The In operator returns True if a value exists within an array. Example: LastValue(AI0) In (0, 100) If Last Value of AI0 is either 0 or 100 then return True, otherwise return False. Order of Operations When a logic expression contains multiple operators, the precedence of the operators controls the order in which they are evaluated. The list below summarises the operators in order of precedence from highest to lowest: 1. Power ^ 2. Multiplication, Division and Modulo * / % 3. Addition and Subtraction Bit shift << >> 5. Comparison = <> < > >= <= 6. In 7. Logical and Bitwise Not 8. Logical and Bitwise And 9. Logical and Bitwise Or 10. Logical and Bitwise Xor Precedence can also be controlled by using parenthesis. For example, when writing an expression to calculate the average of 3 values, the expression / 3 would produce an incorrect result of 4. This is due to the higher precedence for the division operator resulting in 3 / 3 being evaluated first. The correct way to write this expression would be ( ) / 3 using the parenthesis to control the evaluation order and providing the correct result of 2. Nortech Management Ltd, United Kingdom Page 6 of 13

7 Where two operators have the same precedence, the operations are evaluated left to right, so 15 / 3 * 4 would be evaluated as (15 / 3) * 4. Examples of evaluation order: Expression Evaluation Order Result 25-4 * (4 * 5) 5 15 * 4-1 (15 * 4) % (15 % 5) % (5 % 3) / 3 * 4 (15 / 3) * * 3 / 4 (15 * 3) / ^ 2 * ((5 ^ 2) * 2) 51 1 ^ * 2 (1 ^ 5) + (2 * 2) * 2 ^ (5 * (2 ^ 2)) 21 True And Not False True And (Not False) True Not False And True (Not False) And True True 2 > 1 And Not False (2 > 1) And (Not False) True < (1 + 1) < (3 + 2) True In (5) (2 + 3) In (5) True 3 In (6) and True (3 In (6)) And True False True And 3 In (6) True And (3 In (6)) False True Or False In (False) True Or (False In (False)) True 2 > 1 And 2 < 3 (2 > 1) And (2 < 3) True True And 2 < 1 And Not False (True And (2 < 1)) And (Not False) False Nortech Management Ltd, United Kingdom Page 7 of 13

8 Logic functions Basic functions Function If(condition, return this value when True, otherwise return this value) Cast(value, type) Date and Time functions Function Days(days) Hours(hours) Minutes(minutes) Seconds(seconds) Milliseconds(milliseconds) Data functions Description A conditional operator chooses a result based on a boolean condition. Example: If(LastValue(AI0) > 90, 100, LastValue(AI0)) If Last Value of AI0 is greater than 90 then return 100, else return the Last Value of AI0. Used to convert a value from one type to another. Example: Cast(LastValue(AI1), uint) This would cast a double to an unsigned integer. Target types supported by this function are: boolean byte sbyte short ushort int uint long ulong single double Description Number of days. Number of hours. Number of minutes. Number of seconds. Number of milliseconds. Function Description Supported Point Types IsAlarm(pointReference) Returns True if point is in an alarm state. Example: IsAlarm(BI0) IsReset(pointReference) Returns True if point is healthy. Example: IsReset(BI0) HasUpdated(pointReference, timespan) Returns True if a point has been updated with in the given time frame. Example: HasUpdated(BI0, Minutes(10)) will Counter Input return True if BI0 has been updated with in the last 10 minutes. HasChanged(pointReference, timespan) Returns True if a point value has changed with in the given time frame. Example: HasChanged(BI0, Minutes(10)) will return True if BI0 has changed with in the last 10 minutes. LastValue(pointReference) Nortech Management Ltd, United Kingdom Page 8 of 13 Returns the current value of an input point. Example: LastValue(AI0) Counter Input

9 Function Description Supported Point Types LastReadValue(pointReference) Returns the current value of an output point. Example: LastReadValue(BO0) Binary Output Analogue Output LastSetValue(pointReference) HasAlarmed(pointReference, timespan) HasReset(pointReference, timespan) Low(pointReference) LowLow(pointReference) High(pointReference) HighHigh(pointReference) MinValue(pointReference, timespan) MaxValue(pointReference, timespan) AvgValue(pointReference, timespan) Returns the last set value of an output point. Example: LastSetValue(BO0) Returns True if a point has changed to an alarm state within the given time frame. Example: HasAlarmed(BI0, Minutes(10)) will return True if BI0 has changed to an alarm state with in the last 10 minutes. Returns True if a point has changed to a reset state within the given time frame. Example: HasReset(BI0, Minutes(10)) will return True if BI0 has changed to a reset state with in the last 10 minutes. Low Threshold. Example: LastValue(AI0) < Low(AI0) will return True if the current value has crossed the L threshold. Low Low Threshold. Example: LastValue(AI0) < LowLow(AI0) will return True if the current value has crossed the LL threshold. High Threshold. Example: LastValue(AI0) > High(AI0) will return True if the current value has crossed the H threshold. High High Threshold. Example: LastValue(AI0) > HighHigh(AI0) will return True if the current value has crossed the HH threshold. Returns the smallest value of all analogue input readings reported within the given time frame. Example: MinValue(AI0, Days(7)) will return 1 if AI0 has reported readings of 1 and 10 with in the last 7 days. Returns the largest value of all analogue input readings reported within the given time frame. Example: MaxValue(AI0, Days(7)) will return 10 if AI0 has reported readings of 1 and 10 with in the last 7 days. Returns the average of all analogue input readings reported within the given time frame. Example: AvgValue(AI0, Days(7)) will return 5.5 if AI0 has reported readings of 1 and 10 with in the last 7 days. Binary Output Analogue Output Nortech Management Ltd, United Kingdom Page 9 of 13

10 Function Description Supported Point Types SumValue(pointReference, timespan) Returns the sum of all analogue input readings reported within the given time frame. Example: SumValue(AI0, Days(7)) will return 11 if AI0 has reported readings of 1 and 10 with in the last 7 days. HasValueAbove(pointReference, limit, timespan) Returns True if an analogue input reading reported within the given time frame is above the given limit. Example: HasValueAbove(AI0, 5.0, Days(7)) will return True if AI0 has reported readings of 1 and 10 with in the last 7 days. HasValueBelow(pointReference, limit, timespan) Mathematical functions Returns True if an analogue input reading reported within the given time frame is below the given limit. Example: HasValueBelow(AI0, 5.0, Days(7)) will return True if AI0 has reported readings of 1 and 10 with in the last 7 days. All double values in the examples shown below have been rounded to 3 decimal places. Function Description Supported Parameter Types Abs(value) Returns the absolute value of a given number. Example: Abs(LastValue(AI0)) will return 5 if AI0 value is -5. Integer Acos(d) The inverse of cosine. Returns the angle in radians of the given cosine. Convert radians to degrees by multiplying by 180/PI Example: Acos(LastValue(AI0)) will return 0 if AI0 value is 1. Asin(d) The inverse of sine. Returns an angle in radians of the given sine. Convert radians to degrees by multiplying by 180/PI. Example: Asin(LastValue(AI0)) will return if AI0 value is 1. Atan(d) The inverse of tangent. Returns an angle in radians of the given tangent. Convert radians to degrees by multiplying by 180/PI Example: Atan(LastValue(AI0)) will return if AI0 value is 1. Atan2(y, x) Returns an angle in radians of the given tangent. This tangent is a quotient of 2 numbers. Convert radians to degrees by multiplying by 180/PI Example: Atan2(LastValue(AI0), LastValue(AI1)) will return if AI0 value is 5 and AI1 value is 1. Ceiling(d) Rounds the given value up to the nearest whole number. Example: Ceiling(LastValue(AI0)) returns 2 if value is 1.5 Cos(d) Returns the cosine of the given angle (in radians). Convert degrees to radians by dividing by 180/PI Example: Cos(LastValue(AI0)) will return if AI0 value is 10. Nortech Management Ltd, United Kingdom Page 10 of 13

11 Function Description Supported Parameter Types Cosh(value) Returns the hyperbolic cosine of the given angle (in radians). Convert degrees to radians by dividing by 180/PI Example: Cosh(LastValue(AI0)) will return if AI0 value is 1. Exp(d) Computes values of the exponential function. Returns raised to the given power. Example: Exp(LastValue(CI0)) returns if value is 2. Floor(d) Rounds the given value down to the nearest whole number. Example: Floor(LastValue(AI0)) returns 1 if value is 1.5 IEEERemainder(x, y) Returns the remainder of x divided by y. Example: IEEERemainder(LastValue(CI0), 2) returns 1 if first value is 5. Log(d) Returns the logarithm of the given value. Example: Log(LastValue(CI0)) returns if value is 2. Log10(d) Returns the base 10 logarithm of the given value. Example: Log10(LastValue(CI0)) returns if value is 2. Max(val1, val2) Returns the largest value of the 2 given values. Example: Max(LastValue(AI0), LastValue(AI1)) returns 5 if first value is 1 and second value is 5. Min(val1, val2) Returns the smallest value of the 2 given values. Example: Min(LastValue(AI0), LastValue(AI1)) returns 1 if first value is 1 and second value is 5. Pow(x, y) Returns x raised to the power of y. Example: Pow(LastValue(AI0), 2) returns 100 if value is 10. Round(a) Rounds a given value to the nearest whole number. Example: Round(LastValue(AI0)) returns 2 if value is 1.5 Sign(value) Returns -1 if the given value is negative, 1 if positive and 0 if value is zero. Example: Sign(LastValue(AI0)) returns 1 if value is 20 Sin(a) Returns the sine of the given angle (in radians). Convert degrees to radians by dividing by 180/PI Example: Sin(LastValue(AI0)) will return if AI0 value is 10. Sinh(value) Returns the hyperbolic sine of the given angle (in radians). Convert degrees to radians by dividing by 180/PI Example: Sinh(LastValue(AI0)) will return if AI0 value is 1. Sqrt(d) Returns the square root of the given value. Example: Sqrt(LastValue(AI0)) returns 12 if value is 144. Tan(a) Returns the tangent of the given angle (in radians). Convert degrees to radians by dividing by 180/PI Example: Tan(LastValue(AI0)) will return if AI0 value is 10. Tanh(value) Returns the hyperbolic tangent of the given angle (in radians). Convert degrees to radians by dividing by 180/PI Example: Tanh(LastValue(AI0)) will return if AI0 value is 1. Integer Integer Integer Nortech Management Ltd, United Kingdom Page 11 of 13

12 Array functions Function Description Supported Parameter Types Array(value1, value2, ) Count(values) Round(values, digits) First(values) Last(values) Average(values) Min(values) Max(values) Between(values, lower, upper) Creates an array from the passed values. Example: Array(LastValue(AI0), LastValue(AI1)) Returns the number of items in the given array. Example: Count(Array(LastValue(AI0), LastValue(AI1))) will return 2. Rounds all values in the given array to the nearest decimal place. Number of decimal places is represented by digits. Example: Round(Array(LastValue(AI0), LastValue(AI1)), 2) will round each value in the array to 2 decimal places. Returns the first item in the given array. Example: First(Array(LastValue(AI0), LastValue(AI1))) will return the value for AI0. Returns the last item in the given array. Example: Last(Array(LastValue(AI0), LastValue(AI1))) will return the value for AI1. Returns the average of all values in the given array. Example: Average(Array(LastValue(AI0), LastValue(AI1))) will return 3 if AI0 value is 1 and AI1 value is 5. Returns the smallest value in the given array. Example: Min(Array(LastValue(AI0), LastValue(AI1))) will return 1 if AI0 value is 1 and AI1 value is 5. Returns the largest value in the given array. Example: Max(Array(LastValue(AI0), LastValue(AI1))) will return 5 if AI0 value is 1 and AI1 value is 5. Returns all values between the lower and upper values. Example: Between(Array(LastValue(AI0), LastValue(AI1)), 4.0, 20.0) will return one value of 4 if AI0 value is 1 and AI1 value is 4. Boolean Integer (all parameters must be of the same type) Array Array of or Integer, Integer Array Array Array of or Integer Array of or Integer Array of or Integer Array Lower/Upper must be of same type as Array. Outside(values, lower, upper) Returns all values outside of the lower and upper values. Example: Outside(Array(LastValue(AI0), LastValue(AI1)), 4.0, 20.0) will return one value of 1 if AI0 value is 1 and AI1 value is 4. Array Lower/Upper must be of same type as Array. Nortech Management Ltd, United Kingdom Page 12 of 13

13 Examples Input aggregation Average 3 phase voltage: (LastValue(AI0) + LastValue(AI1) + LastValue(AI2)) / 3 HV voltage using tapping ratio of 4.5: (LastValue(AI0) + LastValue(AI1) + LastValue(AI2)) / 3 * 4.5 Alarm if analogue over threshold Alarm if analogue over HH threshold: LastValue(AI0) > HighHigh(AI0) Combinational binary logic (e.g. Any Alarm point) IsAlarm (BI0) Or IsAlarm (BI1) Or IsAlarm(BI2) Bitwise operator on analogue value (truncating to unsigned integer value) Cast(LastValue(AI0), uint) And 2 Nortech Management Ltd, United Kingdom Page 13 of 13

Limnor Studio User s Guide

Limnor Studio User s Guide L i m n o r S t u d i o U s e r G u i d e - P a r t I I I 1 Limnor Studio User s Guide Part III Expressions Contents 1 Introduction to Expressions... 3 1.1 What are expressions... 3 1.2 Create and edit

More information

Arithmetic and Bitwise Operations on Binary Data

Arithmetic and Bitwise Operations on Binary Data Arithmetic and Bitwise Operations on Binary Data CSCI 2400: Computer Architecture ECE 3217: Computer Architecture and Organization Instructor: David Ferry Slides adapted from Bryant & O Hallaron s slides

More information

Lecture 14. Daily Puzzle. Math in C. Rearrange the letters of eleven plus two to make this mathematical statement true. Eleven plus two =?

Lecture 14. Daily Puzzle. Math in C. Rearrange the letters of eleven plus two to make this mathematical statement true. Eleven plus two =? Lecture 14 Math in C Daily Puzzle Rearrange the letters of eleven plus two to make this mathematical statement true. Eleven plus two =? Daily Puzzle SOLUTION Eleven plus two = twelve plus one Announcements

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

Review: Exam 1. Your First C++ Program. Declaration Statements. Tells the compiler. Examples of declaration statements

Review: Exam 1. Your First C++ Program. Declaration Statements. Tells the compiler. Examples of declaration statements Review: Exam 1 9/20/06 CS150 Introduction to Computer Science 1 1 Your First C++ Program 1 //*********************************************************** 2 // File name: hello.cpp 3 // Author: Shereen Khoja

More information

Arithmetic and Logic Blocks

Arithmetic and Logic Blocks Arithmetic and Logic Blocks The Addition Block The block performs addition and subtractions on its inputs. This block can add or subtract scalar, vector, or matrix inputs. We can specify the operation

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

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

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

9 Using Equation Networks

9 Using Equation Networks 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

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

JAVA OPERATORS GENERAL

JAVA OPERATORS GENERAL JAVA OPERATORS GENERAL Java provides a rich set of operators to manipulate variables. We can divide all the Java operators into the following groups: Arithmetic Operators Relational Operators Bitwise Operators

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

Outline. Data and Operations. Data Types. Integral Types

Outline. Data and Operations. Data Types. Integral Types Outline Data and Operations Data Types Arithmetic Operations Strings Variables Declaration Statements Named Constant Assignment Statements Intrinsic (Built-in) Functions Data and Operations Data and Operations

More information

Operators and Expressions in C & C++ Mahesh Jangid Assistant Professor Manipal University, Jaipur

Operators and Expressions in C & C++ Mahesh Jangid Assistant Professor Manipal University, Jaipur Operators and Expressions in C & C++ Mahesh Jangid Assistant Professor Manipal University, Jaipur Operators and Expressions 8/24/2012 Dept of CS&E 2 Arithmetic operators Relational operators Logical operators

More information

Chapter 4 Section 2 Operations on Decimals

Chapter 4 Section 2 Operations on Decimals Chapter 4 Section 2 Operations on Decimals Addition and subtraction of decimals To add decimals, write the numbers so that the decimal points are on a vertical line. Add as you would with whole numbers.

More information

Le L c e t c ur u e e 2 To T p o i p c i s c t o o b e b e co c v o e v r e ed e Variables Operators

Le L c e t c ur u e e 2 To T p o i p c i s c t o o b e b e co c v o e v r e ed e Variables Operators Course Name: Advanced Java Lecture 2 Topics to be covered Variables Operators Variables -Introduction A variables can be considered as a name given to the location in memory where values are stored. One

More information

Arithmetic and Bitwise Operations on Binary Data

Arithmetic and Bitwise Operations on Binary Data Arithmetic and Bitwise Operations on Binary Data CSCI 224 / ECE 317: Computer Architecture Instructor: Prof. Jason Fritts Slides adapted from Bryant & O Hallaron s slides 1 Boolean Algebra Developed by

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

Beginning C Programming for Engineers

Beginning C Programming for Engineers Beginning Programming for Engineers R. Lindsay Todd Lecture 6: Bit Operations R. Lindsay Todd () Beginning Programming for Engineers Beg 6 1 / 32 Outline Outline 1 Place Value Octal Hexadecimal Binary

More information

A complex expression to evaluate we need to reduce it to a series of simple expressions. E.g * 7 =>2+ 35 => 37. E.g.

A complex expression to evaluate we need to reduce it to a series of simple expressions. E.g * 7 =>2+ 35 => 37. E.g. 1.3a Expressions Expressions An Expression is a sequence of operands and operators that reduces to a single value. An operator is a syntactical token that requires an action be taken An operand is an object

More information

(Type your answer in radians. Round to the nearest hundredth as needed.)

(Type your answer in radians. Round to the nearest hundredth as needed.) 1. Find the exact value of the following expression within the interval (Simplify your answer. Type an exact answer, using as needed. Use integers or fractions for any numbers in the expression. Type N

More information

Java provides a rich set of operators to manipulate variables. We can divide all the Java operators into the following groups:

Java provides a rich set of operators to manipulate variables. We can divide all the Java operators into the following groups: Basic Operators Java provides a rich set of operators to manipulate variables. We can divide all the Java operators into the following groups: Arithmetic Operators Relational Operators Bitwise Operators

More information

Chapter 3 : Computer Science. Class XI ( As per CBSE Board) Data Handling. Visit : python.mykvs.in for regular updates

Chapter 3 : Computer Science. Class XI ( As per CBSE Board) Data Handling. Visit : python.mykvs.in for regular updates Chapter 3 : Computer Science Class XI ( As per CBSE Board) Data Handling Introduction Most of the computer programming language support data type, variables,operator and expression like fundamentals.python

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 Pascal language This reference guide

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

Using the um-fpu with the Javelin Stamp

Using the um-fpu with the Javelin Stamp Using the um-fpu with the Javelin Stamp Introduction The um-fpu is a 32-bit floating point coprocessor that can be easily interfaced with the Javelin Stamp to provide support for 32-bit IEEE 754 floating

More information

SOFTWARE DEVELOPMENT 1. Operators 2018W A. Ferscha (Institute of Pervasive Computing, JKU Linz)

SOFTWARE DEVELOPMENT 1. Operators 2018W A. Ferscha (Institute of Pervasive Computing, JKU Linz) SOFTWARE DEVELOPMENT 1 Operators 2018W (Institute of Pervasive Computing, JKU Linz) OPERATORS Operators are required to form expressions. Depending on the number of operands they take, they are called:

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

How to Design Programs Languages

How to Design Programs Languages How to Design Programs Languages Version 4.1 August 12, 2008 The languages documented in this manual are provided by DrScheme to be used with the How to Design Programs book. 1 Contents 1 Beginning Student

More information

Single row numeric functions

Single row numeric functions Single row numeric functions Oracle provides a lot of standard numeric functions for single rows. Here is a list of all the single row numeric functions (in version 10.2). Function Description ABS(n) ABS

More information

CIS 110: Introduction to Computer Programming

CIS 110: Introduction to Computer Programming CIS 110: Introduction to Computer Programming Lecture 3 Express Yourself ( 2.1) 9/16/2011 CIS 110 (11fa) - University of Pennsylvania 1 Outline 1. Data representation and types 2. Expressions 9/16/2011

More information

Expression and Operator

Expression and Operator Expression and Operator Examples: Two types: Expressions and Operators 3 + 5; x; x=0; x=x+1; printf("%d",x); Function calls The expressions formed by data and operators An expression in C usually has a

More information

Floating-Point Data Representation and Manipulation 198:231 Introduction to Computer Organization Lecture 3

Floating-Point Data Representation and Manipulation 198:231 Introduction to Computer Organization Lecture 3 Floating-Point Data Representation and Manipulation 198:231 Introduction to Computer Organization Instructor: Nicole Hynes nicole.hynes@rutgers.edu 1 Fixed Point Numbers Fixed point number: integer part

More information

Exploring Little Numbers

Exploring Little Numbers Exploring Little Numbers Chapter 1 Exploring Little Numbers We manipulate numbers all the time and in this chapter we propose you a little journey into the way integers are mapped to their binary representations.

More information

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

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

Number Systems CHAPTER Positional Number Systems

Number Systems CHAPTER Positional Number Systems CHAPTER 2 Number Systems Inside computers, information is encoded as patterns of bits because it is easy to construct electronic circuits that exhibit the two alternative states, 0 and 1. The meaning of

More information

Macro Programming Reference Guide. Copyright 2005 Scott Martinez

Macro Programming Reference Guide. Copyright 2005 Scott Martinez Macro Programming Reference Guide Copyright 2005 Scott Martinez Section 1. Section 2. Section 3. Section 4. Section 5. Section 6. Section 7. What is macro programming What are Variables What are Expressions

More information

Operators in C. Staff Incharge: S.Sasirekha

Operators in C. Staff Incharge: S.Sasirekha Operators in C Staff Incharge: S.Sasirekha Operators An operator is a symbol which helps the user to command the computer to do a certain mathematical or logical manipulations. Operators are used in C

More information

Logic, Words, and Integers

Logic, Words, and Integers Computer Science 52 Logic, Words, and Integers 1 Words and Data The basic unit of information in a computer is the bit; it is simply a quantity that takes one of two values, 0 or 1. A sequence of k bits

More information

CT 229. Java Syntax 26/09/2006 CT229

CT 229. Java Syntax 26/09/2006 CT229 CT 229 Java Syntax 26/09/2006 CT229 Lab Assignments Assignment Due Date: Oct 1 st Before submission make sure that the name of each.java file matches the name given in the assignment sheet!!!! Remember:

More information

Unit 3. Operators. School of Science and Technology INTRODUCTION

Unit 3. Operators. School of Science and Technology INTRODUCTION INTRODUCTION Operators Unit 3 In the previous units (unit 1 and 2) you have learned about the basics of computer programming, different data types, constants, keywords and basic structure of a C program.

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

The Arithmetic Operators. Unary Operators. Relational Operators. Examples of use of ++ and

The Arithmetic Operators. Unary Operators. Relational Operators. Examples of use of ++ and The Arithmetic Operators The arithmetic operators refer to the standard mathematical operators: addition, subtraction, multiplication, division and modulus. Op. Use Description + x + y adds x and y x y

More information

The Arithmetic Operators

The Arithmetic Operators The Arithmetic Operators The arithmetic operators refer to the standard mathematical operators: addition, subtraction, multiplication, division and modulus. Examples: Op. Use Description + x + y adds x

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

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

JUN / 04 VERSION 7.0

JUN / 04 VERSION 7.0 JUN / 04 VERSION 7.0 PVI EWEXEME www.smar.com Specifications and information are subject to change without notice. Up-to-date address information is available on our website. web: www.smar.com/contactus.asp

More information

Computer Organisation CS303

Computer Organisation CS303 Computer Organisation CS303 Module Period Assignments 1 Day 1 to Day 6 1. Write a program to evaluate the arithmetic statement: X=(A-B + C * (D * E-F))/G + H*K a. Using a general register computer with

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

Binary Values. CSE 410 Lecture 02

Binary Values. CSE 410 Lecture 02 Binary Values CSE 410 Lecture 02 Lecture Outline Binary Decimal, Binary, and Hexadecimal Integers Why Place Value Representation Boolean Algebra 2 First: Why Binary? Electronic implementation Easy to store

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

4. Number Representations

4. Number Representations Educational Objectives You have a good understanding how a computer represents numbers. You can transform integers in binary representation and perform computations. You understand how the value range

More information

COMP 122/L Lecture 2. Kyle Dewey

COMP 122/L Lecture 2. Kyle Dewey COMP 122/L Lecture 2 Kyle Dewey Outline Operations on binary values AND, OR, XOR, NOT Bit shifting (left, two forms of right) Addition Subtraction Twos complement Bitwise Operations Bitwise AND Similar

More information

Script started on Thu 25 Aug :00:40 PM CDT

Script started on Thu 25 Aug :00:40 PM CDT Script started on Thu 25 Aug 2016 02:00:40 PM CDT < M A T L A B (R) > Copyright 1984-2014 The MathWorks, Inc. R2014a (8.3.0.532) 64-bit (glnxa64) February 11, 2014 To get started, type one of these: helpwin,

More information

Computers Programming Course 6. Iulian Năstac

Computers Programming Course 6. Iulian Năstac Computers Programming Course 6 Iulian Năstac Recap from previous course Data types four basic arithmetic type specifiers: char int float double void optional specifiers: signed, unsigned short long 2 Recap

More information

Computer Architecture and System Software Lecture 02: Overview of Computer Systems & Start of Chapter 2

Computer Architecture and System Software Lecture 02: Overview of Computer Systems & Start of Chapter 2 Computer Architecture and System Software Lecture 02: Overview of Computer Systems & Start of Chapter 2 Instructor: Rob Bergen Applied Computer Science University of Winnipeg Announcements Website is up

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

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

Expressions. Operands. Operators

Expressions. Operands. Operators Página 1 de 6 Expressions The Assembler incorporates constant expressions. Expressions can consist of operands, operators and functions. All expressions are internally 32 bits in AVRASM, and 64 bits in

More information

2.1. Unit 2. Integer Operations (Arithmetic, Overflow, Bitwise Logic, Shifting)

2.1. Unit 2. Integer Operations (Arithmetic, Overflow, Bitwise Logic, Shifting) 2.1 Unit 2 Integer Operations (Arithmetic, Overflow, Bitwise Logic, Shifting) 2.2 Skills & Outcomes You should know and be able to apply the following skills with confidence Perform addition & subtraction

More information

carry in carry 1101 carry carry

carry in carry 1101 carry carry Chapter Binary arithmetic Arithmetic is the process of applying a mathematical operator (such as negation or addition) to one or more operands (the values being operated upon). Binary arithmetic works

More information

Chapter 03: Computer Arithmetic. Lesson 09: Arithmetic using floating point numbers

Chapter 03: Computer Arithmetic. Lesson 09: Arithmetic using floating point numbers Chapter 03: Computer Arithmetic Lesson 09: Arithmetic using floating point numbers Objective To understand arithmetic operations in case of floating point numbers 2 Multiplication of Floating Point Numbers

More information

But first, encode deck of cards. Integer Representation. Two possible representations. Two better representations WELLESLEY CS 240 9/8/15

But first, encode deck of cards. Integer Representation. Two possible representations. Two better representations WELLESLEY CS 240 9/8/15 Integer Representation Representation of integers: unsigned and signed Sign extension Arithmetic and shifting Casting But first, encode deck of cards. cards in suits How do we encode suits, face cards?

More information

Primitive Data Types: Intro

Primitive Data Types: Intro Primitive Data Types: Intro Primitive data types represent single values and are built into a language Java primitive numeric data types: 1. Integral types (a) byte (b) int (c) short (d) long 2. Real types

More information

Objectives. Introduce the core C# language features class Main types variables basic input and output operators arrays control constructs comments

Objectives. Introduce the core C# language features class Main types variables basic input and output operators arrays control constructs comments Basics Objectives Introduce the core C# language features class Main types variables basic input and output operators arrays control constructs comments 2 Class Keyword class used to define new type specify

More information

UNIT 3 OPERATORS. [Marks- 12]

UNIT 3 OPERATORS. [Marks- 12] 1 UNIT 3 OPERATORS [Marks- 12] SYLLABUS 2 INTRODUCTION C supports a rich set of operators such as +, -, *,,

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

EE292: Fundamentals of ECE

EE292: Fundamentals of ECE EE292: Fundamentals of ECE Fall 2012 TTh 10:00-11:15 SEB 1242 Lecture 22 121115 http://www.ee.unlv.edu/~b1morris/ee292/ 2 Outline Review Binary Number Representation Binary Arithmetic Combinatorial Logic

More information

Arithmetic Operators. Portability: Printing Numbers

Arithmetic Operators. Portability: Printing Numbers Arithmetic Operators Normal binary arithmetic operators: + - * / Modulus or remainder operator: % x%y is the remainder when x is divided by y well defined only when x > 0 and y > 0 Unary operators: - +

More information

Unit-2 (Operators) ANAND KR.SRIVASTAVA

Unit-2 (Operators) ANAND KR.SRIVASTAVA Unit-2 (Operators) ANAND KR.SRIVASTAVA 1 Operators in C ( use of operators in C ) Operators are the symbol, to perform some operation ( calculation, manipulation). Set of Operations are used in completion

More information

Rui Wang, Assistant professor Dept. of Information and Communication Tongji University.

Rui Wang, Assistant professor Dept. of Information and Communication Tongji University. Data Representation ti and Arithmetic for Computers Rui Wang, Assistant professor Dept. of Information and Communication Tongji University it Email: ruiwang@tongji.edu.cn Questions What do you know about

More information

Number Systems and Computer Arithmetic

Number Systems and Computer Arithmetic Number Systems and Computer Arithmetic Counting to four billion two fingers at a time What do all those bits mean now? bits (011011011100010...01) instruction R-format I-format... integer data number text

More information

Introduction to Programming with Python: overview

Introduction to Programming with Python: overview Introduction to Programming with Python: overview 1 Some influential ones: FORTRAN science / engineering Languages COBOL business data LISP logic and AI BASIC a simple language 2 Programming basics code

More information

Here n is a variable name. The value of that variable is 176.

Here n is a variable name. The value of that variable is 176. UNIT II DATA, EXPRESSIONS, STATEMENTS 9 Python interpreter and interactive mode; values and types: int, float, boolean, string, and list; variables, expressions, statements, tuple assignment, precedence

More information

Introduction to C Language

Introduction to C Language Introduction to C Language Instructor: Professor I. Charles Ume ME 6405 Introduction to Mechatronics Fall 2006 Instructor: Professor Charles Ume Introduction to C Language History of C Language In 1972,

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

CS313D: ADVANCED PROGRAMMING LANGUAGE

CS313D: ADVANCED PROGRAMMING LANGUAGE CS313D: ADVANCED PROGRAMMING LANGUAGE Computer Science department Lecture 2 : C# Language Basics Lecture Contents 2 The C# language First program Variables and constants Input/output Expressions and casting

More information

Bits, Bytes and Integers

Bits, Bytes and Integers Bits, Bytes and Integers Computer Systems Organization (Spring 2016) CSCI-UA 201, Section 2 Instructor: Joanna Klukowska Slides adapted from Randal E. Bryant and David R. O Hallaron (CMU) Mohamed Zahran

More information

Language Basics. /* The NUMBER GAME - User tries to guess a number between 1 and 10 */ /* Generate a random number between 1 and 10 */

Language Basics. /* The NUMBER GAME - User tries to guess a number between 1 and 10 */ /* Generate a random number between 1 and 10 */ Overview Language Basics This chapter describes the basic elements of Rexx. It discusses the simple components that make up the language. These include script structure, elements of the language, operators,

More information

Introduction to Programming with Python

Introduction to Programming with Python Introduction to Programming with Python 1 Languages Some influential ones: FORTRAN science / engineering COBOL business data LISP logic and AI BASIC a simple language 2 Programming basics code or source

More information

Informatics Ingeniería en Electrónica y Automática Industrial

Informatics Ingeniería en Electrónica y Automática Industrial Informatics Ingeniería en Electrónica y Automática Industrial Operators and expressions in C Operators and expressions in C Numerical expressions and operators Arithmetical operators Relational and logical

More information

Methods: A Deeper Look

Methods: A Deeper Look 1 2 7 Methods: A Deeper Look OBJECTIVES In this chapter you will learn: How static methods and variables are associated with an entire class rather than specific instances of the class. How to use random-number

More information

MATHEMATICAL / NUMERICAL FUNCTIONS

MATHEMATICAL / NUMERICAL FUNCTIONS MATHEMATICAL / NUMERICAL FUNCTIONS Function Definition Syntax Example ABS (Absolute value) ASC It returns the absolute value of a number, turning a negative to a positive (e.g. - 4 to 4) It returns the

More information

Expressions and Precedence. Last updated 12/10/18

Expressions and Precedence. Last updated 12/10/18 Expressions and Precedence Last updated 12/10/18 Expression: Sequence of Operators and Operands that reduce to a single value Simple and Complex Expressions Subject to Precedence and Associativity Six

More information

Advanced Algorithms and Computational Models (module A)

Advanced Algorithms and Computational Models (module A) Advanced Algorithms and Computational Models (module A) Giacomo Fiumara giacomo.fiumara@unime.it 2014-2015 1 / 34 Python's built-in classes A class is immutable if each object of that class has a xed value

More information

UNIT- 3 Introduction to C++

UNIT- 3 Introduction to C++ UNIT- 3 Introduction to C++ C++ Character Sets: Letters A-Z, a-z Digits 0-9 Special Symbols Space + - * / ^ \ ( ) [ ] =!= . $, ; : %! &? _ # = @ White Spaces Blank spaces, horizontal tab, carriage

More information

Prof. Navrati Saxena TA: Rochak Sachan

Prof. Navrati Saxena TA: Rochak Sachan JAVA Prof. Navrati Saxena TA: Rochak Sachan Operators Operator Arithmetic Relational Logical Bitwise 1. Arithmetic Operators are used in mathematical expressions. S.N. 0 Operator Result 1. + Addition 6.

More information

What did we talk about last time? Examples switch statements

What did we talk about last time? Examples switch statements Week 4 - Friday What did we talk about last time? Examples switch statements History of computers Hardware Software development Basic Java syntax Output with System.out.print() Mechanical Calculation

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

COMP Primitive and Class Types. Yi Hong May 14, 2015

COMP Primitive and Class Types. Yi Hong May 14, 2015 COMP 110-001 Primitive and Class Types Yi Hong May 14, 2015 Review What are the two major parts of an object? What is the relationship between class and object? Design a simple class for Student How to

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

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

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

Chapter 3 Basic Data Types. Lecture 3 1

Chapter 3 Basic Data Types. Lecture 3 1 Chapter 3 Basic Data Types Lecture 3 1 Topics Scalar Types in C Integers Bit Operations Floating Point Types Conversions Lecture 4 2 Scalar Types in C The amount of memory available for a variable depends

More information

Operators & Expressions

Operators & Expressions Operators & Expressions Operator An operator is a symbol used to indicate a specific operation on variables in a program. Example : symbol + is an add operator that adds two data items called operands.

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

SECTION 1: INTRODUCTION. ENGR 112 Introduction to Engineering Computing

SECTION 1: INTRODUCTION. ENGR 112 Introduction to Engineering Computing SECTION 1: INTRODUCTION ENGR 112 Introduction to Engineering Computing 2 Course Overview What is Programming? 3 Programming The implementation of algorithms in a particular computer programming language

More information

Honors Precalculus: Solving equations and inequalities graphically and algebraically. Page 1

Honors Precalculus: Solving equations and inequalities graphically and algebraically. Page 1 Solving equations and inequalities graphically and algebraically 1. Plot points on the Cartesian coordinate plane. P.1 2. Represent data graphically using scatter plots, bar graphs, & line graphs. P.1

More information