Advanced features of the Calculate signal tool

Similar documents
(created by professor Marina Tanasyuk) FUNCTIONS

Using Free Functions

The Math Class. Using various math class methods. Formatting the values.

9. Elementary Algebraic and Transcendental Scalar Functions

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

Choose the correct answer below. 2. Convert the angle to a decimal in degrees.

Scheme Quick Reference

Sketchpad Graphics Language Reference Manual. Zhongyu Wang, zw2259 Yichen Liu, yl2904 Yan Peng, yp2321

Math 2250 MATLAB TUTORIAL Fall 2005

Scheme Quick Reference

Arithmetic and Logic Blocks

XQ: An XML Query Language Language Reference Manual

Functions. Systems Programming Concepts

50 MATHCOUNTS LECTURES (6) OPERATIONS WITH DECIMALS

2.3: FUNCTIONS. abs( x)

Outline. Data and Operations. Data Types. Integral Types

CSE 341 Section Handout #6 Cheat Sheet

CT 229 Java Syntax Continued

Imelda C. Go, South Carolina Department of Education, Columbia, SC

Ch 3.4 The Integers and Division

Introduction to Programming in C Department of Computer Science and Engineering. Lecture No. #06 Loops: Operators

Basic types and definitions. Chapter 3 of Thompson

Learning the Language - V

Mathcad Lecture #3 In-class Worksheet Functions

Seleniet XPATH Locator QuickRef

2.Simplification & Approximation

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

Matrices. Matrices on the TI Creating, Storing, and Displaying Matrices Using Mathematical Functions with Matrices...

Python Lists: Example 1: >>> items=["apple", "orange",100,25.5] >>> items[0] 'apple' >>> 3*items[:2]

C Functions. 5.2 Program Modules in C

Section A Arithmetic ( 5) Exercise A

Decimals Outcomes. Represent Q Using Decomposition

Function Example. Function Definition. C Programming. Syntax. A small program(subroutine) that performs a particular task. Modular programming design

Chapter 7: Programming in MATLAB

6-1 (Function). (Function) !*+!"#!, Function Description Example. natural logarithm of x (base e) rounds x to smallest integer not less than x

Getting started with RAPTOR [Adapted from by Dr. Wayne Brown]

Standard Value Calculation with CAPP (PP-BD-CAP)

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

Functions. Def. Let A and B be sets. A function f from A to B is an assignment of exactly one element of B to each element of A.

Solutions to First Exam, Math 170, Section 002 Spring 2012

Using the um-fpu with the Javelin Stamp

Unit 7 Number System and Bases. 7.1 Number System. 7.2 Binary Numbers. 7.3 Adding and Subtracting Binary Numbers. 7.4 Multiplying Binary Numbers

CS61B Lecture #14: Integers. Last modified: Wed Sep 27 15:44: CS61B: Lecture #14 1

3.4 System Dynamics Tool: Nova Tutorial 2. Introduction to Computational Science: Modeling and Simulation for the Sciences

17. [Exploring Numbers]

Chapter 6 Primitive types

Lecture 1: What is MATLAB?

Julia Calculator ( Introduction)

BIL 104E Introduction to Scientific and Engineering Computing. Lecture 4

Java Classes: Math, Integer A C S L E C T U R E 8

Object-Based Programming. Programming with Objects

Chapter 2: Math, Angle, and Test Operations

C++, How to Program. Spring 2016 CISC1600 Yanjun Li 1

1 Elementary number theory

36 Modular Arithmetic

Programming and Data Structure Tutorial sheet: 1 Topics: Data Handling, Operators and Expressions, Input and Output Operations.

Floating Point Representation in Computers

may be sent to:

CS-211 Fall 2017 Test 1 Version Practice For Test on Oct. 2, Name:

Unit 2: Accentuate the Negative Name:

Page 1. Kobrin/Losquadro Math 8. Unit 10 - Types of Numbers Test Review. Questions 1 and 2 refer to the following:

Number System. Introduction. Natural Numbers (N) Whole Numbers (W) Integers (Z) Prime Numbers (P) Face Value. Place Value

Excel 2010 Functions. 4/18/2011 Archdiocese of Chicago Mike Riley

Introduction to Programming with RAPTOR

MYSQL NUMERIC FUNCTIONS

COMP 250 Fall heaps 2 Nov. 3, 2017

Secondary Math 3- Honors. 7-4 Inverse Trigonometric Functions

SPARK-PL: Introduction

Chapter Two MIPS Arithmetic

CS Programming I: Primitives and Expressions

*.lsp Commands: + - * / setq setvar getvar getpoint defun command getstring appload vlide

Chapter 3. built in functions help feature elementary math functions data analysis functions random number functions computational limits

Scheme Tutorial. Introduction. The Structure of Scheme Programs. Syntax

Data types, variables, constants

Methods: A Deeper Look

Functions. How is this definition written in symbolic logic notation?

Built-in Types of Data

MATLAB Operators, control flow and scripting. Edited by Péter Vass

Functions 2/1/2017. Exercises. Exercises. Exercises. and the following mathematical appetizer is about. Functions. Functions

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

The Math Class (Outsource: Math Class Supplement) Random Numbers. Lab 06 Math Class

add and subtract whole numbers with more than 4 digits, including using formal written methods (columnar addition and subtraction)

CS61B Lecture #14: Integers

Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial

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

Chapter 4 Section 2 Operations on Decimals

Math Interim Mini-Tests. 3rd Grade Mini-Tests

C Programs: Simple Statements and Expressions

Bits, Words, and Integers

Introduction to Programming and 4Algorithms Abstract Types. Uwe R. Zimmer - The Australian National University

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

Fundamentals of Programming & Procedural Programming

CHAPTER 8. Copyright Cengage Learning. All rights reserved.

Variable and Data Type 2

Graphics calculator instructions

1. Variables 2. Arithmetic 3. Input and output 4. Problem solving: first do it by hand 5. Strings 6. Chapter summary

Representation of Numbers

Arithmetic and Bitwise Operations on Binary Data

UNIT 6 OPERATIONS WITH DECIMALS

7COM1023 Programming Paradigms

Transcription:

Advanced features of the Calculate signal tool Case study: how to us the advanced features of the Calculate signal tool? 1 The calculate signal tool The calculate signal tool is one of the most useful tools provided in NOVA. It provides the means to perform calculations. The tool can be used in the Analysis view, on previously measured data, or in the Setup view, where it can be added to a procedure and executed during a measurement. The use of the calculate signal tool is explained in the NOVA User Manual, available from the Help menu. The tool provides a dialog, shown in Figure 1. Figure 1 The dialog provided by the Calculate signal tool The example shown in Figure 1 shows how the tool can be used to calculate the absorbance in the context of a spectroelectrochemical measurement. 1 Page

NOVA Technical note 21 The calculate signal can be used to calculate a single value of an array of values based on a mathematical expression typed in the Expression field of the tool. The editor provides a number of default Functions (like 10LOG, ABS, etc ) and Trigonometric functions (like COS, SIN, etc ), which can be used in conjunction with user defined parameters to build the expression. The calculate signal tool provides additional functions, not shown in the editor, for advanced users. This technical note illustrates some of these advanced functions. Two groups are available: Mathematical operators Logical operators 2 Advanced mathematical operators The following advanced mathematical operators are available in the in calculate signal tool: 1. CEIL(): this operator returns the smallest value that is not less than the argument and is equal to an integer. CEIL(3.2) and CEIL(3.8) both return 4. 2. FLOOR(): this operator return the largest values that is not the greater than the argument and is equal to an integer. FLOOR(3.2) and FLOOR(3.8) both return 3. 3. ROUND(): this operator rounds the argument to the nearest integer. ROUND(3.2) returns 3 and ROUND(3.8) returns 4. 4. FPART(): this operator returns the fractional part of the argument. FPART(3.2) and FPART(3.8) return 0.2 and 0.8, respectively. 5. %: this operator returns the modulo (the rest of the integral division of the specified arguments) of the specified arguments. 22%3 return 1 and 25%5 returns 0. To use these advanced mathematical operators, simply type them directly in the Expression field, as shown in Figure 2. 2 Page

Figure 2 Using the ROUND() operator on the expression shown in Figure 1 3 Advanced logical operators Logical operators can be used to test if a given relationship between two arguments is true or false. The logical operators provided in NOVA will return 1 when the test is true or 0 when the test is false. The following advanced logical operators are available in the in calculate signal tool: 1. ==: this operator tests if the arguments provided are mathematically equal. 2==2 will return 1 (true) and 2==3 will return 0 (false). 2.!=: this operator tests if the arguments provided are mathematically not equal. 2!=2 returns 0 (false) and 2!=3 returns 1 (true). 3. >, >=: this operator tests if one of the arguments is larger (larger or equal) than the other argument. 2>3 returns 0 (false), 3>2 returns 1 (true), 3>=3 returns 1 (true). 3 Page

NOVA Technical note 21 4. <, <=: this operator tests if one of the arguments is smaller (smaller or equal) than the other argument. 2<3 returns 1 (true), 3<2 returns 0 (false), 3<=3 returns 1 (true). 5. &&: this operator can be used to specify an AND operator between two logical expressions. The AND condition will return 1 only when both expressions are true. (2==2)&&(2<=3) returns 1 (both are true), (2==2)&&(2>=3) returns 0 (one is false), (2>=3)&&(3<=2) returns 0 (both are false). 6. : this operator can be used to specify an OR operator between two logical expressions. The OR condition will return 1 when at least one of the expressions is true. (2==2) (2<=3) returns 1 (both are true), (2==2) (2>=3) returns 1 (one is true), (2>=3) (3<=2) returns 0 (both are false). 7.!: this operator can be used to negate the result of a logical expression. Negating a 1 (true) will result in a 0 (false). This NOT operator can be used in combination with the other logical operators. 2!>3 returns 1 (true) and 3!>2 returns 0 (false). To use these advanced mathematical operators, simply type them directly in the Expression field, as shown in Figure 3. 4 Page

Figure 3 Using the >= logical operator on the expression shown in Figure 2 The expression shown in Figure 3 will return 1 (true) for all the rounded absorbance values larger or equal to 1, and 0 (false), for all the other rounded absorbance values. 5 Page