MATHEMATICAL / NUMERICAL FUNCTIONS

Size: px
Start display at page:

Download "MATHEMATICAL / NUMERICAL FUNCTIONS"

Transcription

1 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 ASCII code for the first character in a string N = ABS (numerical expression) N = The numeric variable. numerical expression = The numeric value whose absolute value we want. ASC(stringexpression$) stringexpression$ = Any string of ABS function. N=ABS(-44) PRINT N 44 of ASC function. PRINT ASC("ry") 144 CDBL CHR$ It converts a numeric expression to a Doubleprecision floating-point value (that is, more digits to the right of the decimal point than a singleprecision number). It is a computer number format that occupies 8 bytes (64 bits) in computer memory and represents a wide, dynamic range of values by using a floating point. It converts an ASCII code into its corresponding character. CDBL(numeric-expression) numeric-expression = Any CHR$(Numeric Variable) Numeric Variable= the ASCII code whose corresponding character has to be found of CDBL function. PRINT 1 / Q. Write a program to see the result of CHR$ function. a = 68 PRINT CHR$(a) D CINT CSNG It rounds off the fractional part of the numeric expression and changes it into an integer. It converts a numeric expression to a singleprecision value.( Singleprecision floating-point format is a computer number format that occupies 4 bytes (32 bits) in computer memory and N = CINT(Numeric Expression) N=Numeric variable. Numerical Expression = The floating point value/the real number that will be converted to an integer. CSNG(numeric-expression) numeric-expression = Any of CINT function. N = CINT(64.6) PRINT N 65 of CSNG function. PRINT CSNG( #)

2 represents a wide dynamic range of values by using a floating point.) EXP It returns the exponential of a number to the base e( ). EXP(X) X is a value. Exponential function raises e to the value X. i.e. e^x of EXP function. PRINT EXP(3) FIX It removes the fractional part of a real number and return the integer portion / factorial part. If number is negative, Fix returns the first negative integer greater than or equal to number. X = INT (Numerical Expression) X = The numeric variable. Numerical Expression = The floating point value/the real number whose integer part we want. of FIX function. X = FIX(64.5) X=FIX(-64.5) HEX$ It returns a hexadecimal string representation of a number. HEX$(numeric-expression&) numeric-expression& is any of HEX$ function. INPUT a b$ = HEX$ (a) PRINT a; "decimal is "; b$ ;" hexadecimal"? decimal is 87 hexadecimal INT (Integer) It returns only the integer portion/factorial part of a real number. If number is negative, Int returns the first negative integer less than or equal to number. Numeric Variable = FIX(Numeric Expression) X = The numeric variable. Numerical Expression = The floating point value/the real number whose integer part we want. of INT function. X = INT(64.5) X=INT(-64.5) LOG It returns the natural logarithm of a numeric LOG(numeric-expression) numeric-expression Any positive numeric

3 MOD (Modulo or Modulus) It returns the integer remainder. A= Numeric-expression1 MOD Numeric-expression2 A=Numeric variable/remainder. of MOD function. x = 9 MOD 3 X=9 MOD 2.6 X=9.6 MOD 3 PRINT x Numeric-expression1= is the numerator Numeric-expression2 = is the divisor OCT$ It returns an octal string representation of a number. Real number numeric expressions are rounded to integers. OCT$(numeric-expression&) of OCT$ function. numeric-expression& is any INPUT a b$ = OCT$ (a) PRINT a; "decimal is "; b$ ; " octal"?64 64 decimal is 100 octal SGN It returns a value indicating the sign of a numeric If expression is positive, it turns + 1. If expression is negative, it turns 1. A=SGN(numeric expression) of SGN function. x = SGN (-12) X= SGN (12) X=SGN (0) PRINT x SPC If expression is zero, it turns 0. It skips a specified number of spaces when used with the PRINT and the LPRINT statement. SPC(n) n is the number of spaces to skip. n must be within the range of 0 through 32,767. of SPC function. PRINT "QBASIC"; SPC(15); "Programming language" QBASIC Programming language SQR (Square Root) It returns the square root of the value represented by the Variable. N = SQR (numerical expression) N = The numeric variable. numerical expression = The numeric value whose square root value we want. of SQR function. N = SQR(64) PRINT N 8

4 TAB It moves the text cursor to a specified print position. TAB(column%) of TAB function. column% is the column number of the new print position. INPUT "My name is"; a$ PRINT TAB(20); a$ My name is? Ria Ria Trigonometric functions COS It is a Trigonometric function which computes the cosine of an angle measured in radians. SIN It is a Trigonometric function which computes the sine of an angle measured in radians A=COS(numeric expression) A= Numeric variable(cosine of the angle) Numeric expression=the angle expressed in radians. To convert degrees to radians use the formula: Radian = degree*(pi/180) where, Pi=3.14 A=SIN(numeric expression) A= Numeric variable(cosine of the angle) Numeric expression=the angle expressed in radians. To convert degrees to radians use the formula: Radian = degree*(pi/180) where, Pi=3.14 of COS function. P = COS(R) PRINT "Cosine of"; a; "degree is "; P Cosine of 30 degree is of SIN function. P = SIN(R) PRINT "Sine of"; a; "degree is "; P Sine of 30 degree is TAN It is a Trigonometric function which computes the tangent of an angle measured in radians. A=TAN(numeric expression) A= Numeric variable(cosine of the angle) Numeric expression=the angle expressed in radians. To convert degrees to radians use the formula: Radian = degree*(pi/180) where, Pi=3.14. Pi is the ratio between circumference and diameter shared by all circles. of TAN function. P = TAN(R) PRINT "Tangent of"; a; "degree is "; P Tangent of 30 degree is ATN It is the inverse Trigonometric function of Tan. The ATN or arctangent function returns the angle in radians of a numerical tangent value. radian_angle = ATN(tangent) of ATN function. P = TAN(R)

5 PRINT "Tangent of"; a; "degree is "; P radian = ATN(P) PRINT " Arctangent="; radian Tangent of 30 degree is Arctangent= RND Function RND It returns a single precision random number between 0 & 1. RND[(n#)] Q. Examples are discussed below. n# is a value that sets how These numbers are decimal RND generates the next numbers. random number. To get integers use INT function. n# RND returns Example n#<0 The same number for any n#. Result=RND(-2) n#>0 The sequence of numbers generated will not change unless RANDOMIZE Result=RND(2) is initiated. n#=0 The last number generated. Result=RND(0) n# is omitted The next random number. Result=RND To get values in a range smaller than 1: FOR x = 1 TO 5 PRINT RND To get values in a range larger than 1: Multiply RND with a number to get return up to but not including the numerical value. To get values starting at a certain number: Add that number to the RND. To get an integer range of numbers: randnum%=int(rnd*max%)+min% To get an closest integer range of numbers: randnum%=cint(rnd*(max%-min%))+min% FOR x = 1 TO 5 PRINT RND * 10 FOR x = 1 TO 5 PRINT RND + 2 PRINT INT(RND * 30 )+ 12 [returns an integer from 12 to 31 ( )] PRINT CINT(RND*(30-12)) + 12 To get different random number results each time a program runs use: RANDOMIZE TIMER Here's a program that rolls two dice and prints the value of each. RANDOMIZE TIMER PRINT (RND * 12) + 2 RANDOMIZE TIMER PRINT INT(RND * 12) + 2

6 RANDOMIZE TIMER INPUT "Press ENTER to roll dice...", A$ PRINT Die1 = INT(RND * 6 + 1) Die2 = INT(RND * 6 + 1) PRINT "Die 1: "; Die1 PRINT "Die 2: "; Die2

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

Phụ lục 2. Bởi: Khoa CNTT ĐHSP KT Hưng Yên. Returns the absolute value of a number.

Phụ lục 2. Bởi: Khoa CNTT ĐHSP KT Hưng Yên. Returns the absolute value of a number. Phụ lục 2 Bởi: Khoa CNTT ĐHSP KT Hưng Yên Language Element Abs Function Array Function Asc Function Atn Function CBool Function CByte Function CCur Function CDate Function CDbl Function Chr Function CInt

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

Table of Contents. PREFACE... vii CONVENTIONS... vii HOW TO USE THIS MANUAL... vii Further Information...viii

Table of Contents. PREFACE... vii CONVENTIONS... vii HOW TO USE THIS MANUAL... vii Further Information...viii Table of Contents PREFACE... vii CONVENTIONS... vii HOW TO USE THIS MANUAL... vii Further Information...viii USING BASIC-52... 1 BASIC-52 PINOUT AND FEATURES... 1 8052AH and 80C52 DIFFERENCES... 1 DEFINITION

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

SCIENTIFIC CALCULATOR OPERATION GUIDE < EL-531TG/531TH/531TS >

SCIENTIFIC CALCULATOR OPERATION GUIDE < EL-531TG/531TH/531TS > SCIENTIFIC CALCULATOR OPERATION GUIDE < EL-531TG/531TH/531TS > CONTENTS HOW TO OPERATE Read Before Using Key layout / Reset switch 3 pattern 4 format and decimal setting function 4-5 Exponent display 5

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

Section 14: Trigonometry Part 1

Section 14: Trigonometry Part 1 Section 14: Trigonometry Part 1 The following Mathematics Florida Standards will be covered in this section: MAFS.912.F-TF.1.1 MAFS.912.F-TF.1.2 MAFS.912.F-TF.1.3 Understand radian measure of an angle

More information

static int min(int a, int b) Returns the smaller of two int values. static double pow(double a,

static int min(int a, int b) Returns the smaller of two int values. static double pow(double a, The (Outsource: Supplement) The includes a number of constants and methods you can use to perform common mathematical functions. A commonly used constant found in the Math class is Math.PI which is defined

More information

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

6-1 (Function). (Function) !*+!#!, Function Description Example. natural logarithm of x (base e) rounds x to smallest integer not less than x (Function) -1.1 Math Library Function!"#! $%&!'(#) preprocessor directive #include !*+!"#!, Function Description Example sqrt(x) square root of x sqrt(900.0) is 30.0 sqrt(9.0) is 3.0 exp(x) log(x)

More information

Basic types and definitions. Chapter 3 of Thompson

Basic types and definitions. Chapter 3 of Thompson Basic types and definitions Chapter 3 of Thompson Booleans [named after logician George Boole] Boolean values True and False are the result of tests are two numbers equal is one smaller than the other

More information

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

The Math Class (Outsource: Math Class Supplement) Random Numbers. Lab 06 Math Class The (Outsource: Supplement) The includes a number of constants and methods you can use to perform common mathematical functions. A commonly used constant found in the Math class is Math.PI which is defined

More information

2001 PET POCKET REFERENCE GUIDE TO COMMODORE'S LEADING EDGE COMPUTER PRODUCTS. ~www.commodore.ca COPYRIGHT 1979, LEADING EDGE CO. ALL RIGHTS RESERVED

2001 PET POCKET REFERENCE GUIDE TO COMMODORE'S LEADING EDGE COMPUTER PRODUCTS. ~www.commodore.ca COPYRIGHT 1979, LEADING EDGE CO. ALL RIGHTS RESERVED ~www.commodore.ca May Not Reprint Without Permission POCKET REFERENCE GUIDE TO COMMODORE'S 2001 PET LEADING EDGE COMPUTER PRODUCTS COPYRIGHT 1979, LEADING EDGE CO. ALL RIGHTS RESERVED MISC. INFORMATION

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

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

Trigonometric Functions of Any Angle

Trigonometric Functions of Any Angle Trigonometric Functions of Any Angle MATH 160, Precalculus J. Robert Buchanan Department of Mathematics Fall 2011 Objectives In this lesson we will learn to: evaluate trigonometric functions of any angle,

More information

Long (LONGMATH) variables may be used the same as short variables. The syntax is the same. A few limitations apply (see below).

Long (LONGMATH) variables may be used the same as short variables. The syntax is the same. A few limitations apply (see below). Working with Long Numbers. Long Variables Constants You define a long variable with the LONG statement, which works similar to the DIM statement. You can define long variables and dimension long variable

More information

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

Secondary Math 3- Honors. 7-4 Inverse Trigonometric Functions Secondary Math 3- Honors 7-4 Inverse Trigonometric Functions Warm Up Fill in the Unit What You Will Learn How to restrict the domain of trigonometric functions so that the inverse can be constructed. How

More information

Program Workspace. Why numerical methods? Problem examples Why programming? Why numerical methods and programming? Why VBA?

Program Workspace. Why numerical methods? Problem examples Why programming? Why numerical methods and programming? Why VBA? Contents In the end we will conserve only what we love. We love only what we understand. We will understand only what we are taught.. Baba Dioum From a 1968 speech given at the general assembly of the

More information

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

Function Example. Function Definition. C Programming. Syntax. A small program(subroutine) that performs a particular task. Modular programming design What is a Function? C Programming Lecture 8-1 : Function (Basic) A small program(subroutine) that performs a particular task Input : parameter / argument Perform what? : function body Output t : return

More information

1001ICT Introduction To Programming Lecture Notes

1001ICT Introduction To Programming Lecture Notes 1001ICT Introduction To Programming Lecture Notes School of Information and Communication Technology Griffith University Semester 1, 2015 1 M Environment console M.1 Purpose This environment supports programming

More information

MYSQL NUMERIC FUNCTIONS

MYSQL NUMERIC FUNCTIONS MYSQL NUMERIC FUNCTIONS http://www.tutorialspoint.com/mysql/mysql-numeric-functions.htm Copyright tutorialspoint.com MySQL numeric functions are used primarily for numeric manipulation and/or mathematical

More information

Chapter 3 - Functions

Chapter 3 - Functions Chapter 3 - Functions 1 Outline 3.1 Introduction 3.2 Program Components in C++ 3.3 Math Library Functions 3.4 Functions 3.5 Function Definitions 3.6 Function Prototypes 3.7 Header Files 3.8 Random Number

More information

Math General Angles, Radian Measure, measures of arcs and sectors

Math General Angles, Radian Measure, measures of arcs and sectors Math-3 6-3 General Angles, Radian Measure, measures of arcs and sectors tan 5 9 5 h cos? 9 ϴ Tangent ratio gives sides of a right triangle. h h h 5 9 5 81 106 cos cos 9 106 9 106 106 cos 3 10 opp 10 sin?

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

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

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

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

The Graphing Calculator

The Graphing Calculator Chapter 23 The Graphing Calculator To display the calculator, select Graphing Calculator from the Window menu. The calculator is displayed in front of the other windows. Resize or re-position the Graphing

More information

: Find the values of the six trigonometric functions for θ. Special Right Triangles:

: Find the values of the six trigonometric functions for θ. Special Right Triangles: ALGEBRA 2 CHAPTER 13 NOTES Section 13-1 Right Triangle Trig Understand and use trigonometric relationships of acute angles in triangles. 12.F.TF.3 CC.9- Determine side lengths of right triangles by using

More information

Final Exam: Precalculus

Final Exam: Precalculus Final Exam: Precalculus Apr. 17, 2018 ANSWERS Without Notes or Calculators Version A 1. Consider the unit circle: a. Angle in degrees: What is the angle in radians? What are the coordinates? b. Coordinates:

More information

Python Numbers. Learning Outcomes 9/19/2012. CMSC 201 Fall 2012 Instructor: John Park Lecture Section 01 Discussion Sections 02-08, 16, 17

Python Numbers. Learning Outcomes 9/19/2012. CMSC 201 Fall 2012 Instructor: John Park Lecture Section 01 Discussion Sections 02-08, 16, 17 Python Numbers CMSC 201 Fall 2012 Instructor: John Park Lecture Section 01 Discussion Sections 02-08, 16, 17 1 (adapted from Meeden, Evans & Mayberry) 2 Learning Outcomes To become familiar with the basic

More information

DEPARTMENT - Mathematics. Coding: N Number. A Algebra. G&M Geometry and Measure. S Statistics. P - Probability. R&P Ratio and Proportion

DEPARTMENT - Mathematics. Coding: N Number. A Algebra. G&M Geometry and Measure. S Statistics. P - Probability. R&P Ratio and Proportion DEPARTMENT - Mathematics Coding: N Number A Algebra G&M Geometry and Measure S Statistics P - Probability R&P Ratio and Proportion YEAR 7 YEAR 8 N1 Integers A 1 Simplifying G&M1 2D Shapes N2 Decimals S1

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

VBScript: Math Functions

VBScript: Math Functions C h a p t e r 3 VBScript: Math Functions In this chapter, you will learn how to use the following VBScript functions to World Class standards: 1. Writing Math Equations in VBScripts 2. Beginning a New

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

GREENWOOD PUBLIC SCHOOL DISTRICT Algebra III Pacing Guide FIRST NINE WEEKS

GREENWOOD PUBLIC SCHOOL DISTRICT Algebra III Pacing Guide FIRST NINE WEEKS GREENWOOD PUBLIC SCHOOL DISTRICT Algebra III FIRST NINE WEEKS Framework/ 1 Aug. 6 10 5 1 Sequences Express sequences and series using recursive and explicit formulas. 2 Aug. 13 17 5 1 Sequences Express

More information

Graphics calculator instructions

Graphics calculator instructions Graphics calculator instructions Contents: A B C D E F G Basic calculations Basic functions Secondary function and alpha keys Memory Lists Statistical graphs Working with functions 10 GRAPHICS CALCULATOR

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

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

C++, How to Program. Spring 2016 CISC1600 Yanjun Li 1 Chapter 6 Function C++, How to Program Deitel & Deitel Spring 2016 CISC1600 Yanjun Li 1 Function A function is a collection of statements that performs a specific task - a single, well-defined task. Divide

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

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

A Quick Review of Trigonometry

A Quick Review of Trigonometry A Quick Review of Trigonometry As a starting point, we consider a ray with vertex located at the origin whose head is pointing in the direction of the positive real numbers. By rotating the given ray (initial

More information

SM 2. Date: Section: Objective: The Pythagorean Theorem: In a triangle, or

SM 2. Date: Section: Objective: The Pythagorean Theorem: In a triangle, or SM 2 Date: Section: Objective: The Pythagorean Theorem: In a triangle, or. It doesn t matter which leg is a and which leg is b. The hypotenuse is the side across from the right angle. To find the length

More information

Green Globs And Graphing Equations

Green Globs And Graphing Equations Green Globs And Graphing Equations Green Globs and Graphing Equations has four parts to it which serve as a tool, a review or testing device, and two games. The menu choices are: Equation Plotter which

More information

CS-201 Introduction to Programming with Java

CS-201 Introduction to Programming with Java CS-201 Introduction to Programming with Java California State University, Los Angeles Computer Science Department Lecture V: Mathematical Functions, Characters, and Strings Introduction How would you estimate

More information

C Functions. 5.2 Program Modules in C

C Functions. 5.2 Program Modules in C 1 5 C Functions 5.2 Program Modules in C 2 Functions Modules in C Programs combine user-defined functions with library functions - C standard library has a wide variety of functions Function calls Invoking

More information

Downloaded from Chapter 2. Functions

Downloaded from   Chapter 2. Functions Chapter 2 Functions After studying this lesson, students will be able to: Understand and apply the concept of module programming Write functions Identify and invoke appropriate predefined functions Create

More information

PA R T. A ppendix. Appendix A VBA Statements and Function Reference

PA R T. A ppendix. Appendix A VBA Statements and Function Reference PA R T V A ppendix Appendix A VBA Statements and Reference A d Reference This appendix contains a complete listing of all Visual Basic for Applications (VBA) statements (Table A-1 ) and built-in functions

More information

ECET 264 C Programming Language with Applications

ECET 264 C Programming Language with Applications ECET 264 C Programming Language with Applications Lecture 10 C Standard Library Functions Paul I. Lin Professor of Electrical & Computer Engineering Technology http://www.etcs.ipfw.edu/~lin Lecture 10

More information

C++ PROGRAMMING SKILLS Part 3 User-Defined Functions

C++ PROGRAMMING SKILLS Part 3 User-Defined Functions C++ PROGRAMMING SKILLS Part 3 User-Defined Functions Introduction Function Definition Void function Global Vs Local variables Random Number Generator Recursion Function Overloading Sample Code 1 Functions

More information

A trigonometric ratio is a,

A trigonometric ratio is a, ALGEBRA II Chapter 13 Notes The word trigonometry is derived from the ancient Greek language and means measurement of triangles. Section 13.1 Right-Triangle Trigonometry Objectives: 1. Find the trigonometric

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

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

The Math Class. Using various math class methods. Formatting the values. The Math Class Using various math class methods. Formatting the values. The Math class is used for mathematical operations; in our case some of its functions will be used. In order to use the Math class,

More information

Warm-Up Up Exercises. Use this diagram for Exercises If PR = 12 and m R = 19, find p. ANSWER If m P = 58 and r = 5, find p.

Warm-Up Up Exercises. Use this diagram for Exercises If PR = 12 and m R = 19, find p. ANSWER If m P = 58 and r = 5, find p. Warm-Up Up Exercises Use this diagram for Exercises 1 4. 1. If PR = 12 and m R = 19, find p. ANSWER 11.3 2. If m P = 58 and r = 5, find p. ANSWER 8.0 Warm-Up Up Exercises Use this diagram for Exercises

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

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

MATLAB Constants, Variables & Expression. 9/12/2015 By: Nafees Ahmed

MATLAB Constants, Variables & Expression. 9/12/2015 By: Nafees Ahmed MATLAB Constants, Variables & Expression Introduction MATLAB can be used as a powerful programming language. It do have IF, WHILE, FOR lops similar to other programming languages. It has its own vocabulary

More information

Math 144 Activity #2 Right Triangle Trig and the Unit Circle

Math 144 Activity #2 Right Triangle Trig and the Unit Circle 1 p 1 Right Triangle Trigonometry Math 1 Activity #2 Right Triangle Trig and the Unit Circle We use right triangles to study trigonometry. In right triangles, we have found many relationships between the

More information

4.7a Trig Inverses.notebook September 18, 2014

4.7a Trig Inverses.notebook September 18, 2014 WARM UP 9 18 14 Recall from Algebra 2 (or possibly see for the first time...): In order for a function to have an inverse that is also a function, it must be one to one, which means it must pass the horizontal

More information

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

Choose the correct answer below. 2. Convert the angle to a decimal in degrees. 1. Choose the figure that shows an angle of in standard position. Choose the correct answer below. 2. Convert the angle to a decimal in degrees. (Do not round until the final answer. Then round to two

More information

Chapter 4: Triangle and Trigonometry

Chapter 4: Triangle and Trigonometry Chapter 4: Triangle and Trigonometry Paper 1 & 2B 3.1.3 Triangles 3.1.3 Triangles 2A Understand a proof of Pythagoras Theorem. Understand the converse of Pythagoras Theorem. Use Pythagoras Trigonometry

More information

College Technical Math 2

College Technical Math 2 WTCS Repository 10-804-116 College Technical Math 2 Course Outcome Summary Course Information Description Topics include: vectors; trigonometric functions and their graphs; identities; exponential and

More information

TABLE 2: Mathematics College Readiness Standards for Score Range 13 15

TABLE 2: Mathematics College Readiness Standards for Score Range 13 15 TABLE 2: Mathematics College Readiness Standards for Score Range 13 15 Perform one-operation computation with whole numbers and decimals Solve problems in one or two steps using whole numbers Perform common

More information

FANF. programming language. written by Konstantin Dimitrov. Revision 0.1 February Programming language FANF 1 / 21

FANF. programming language. written by Konstantin Dimitrov. Revision 0.1 February Programming language FANF 1 / 21 programming language FANF written by Konstantin Dimitrov Revision 0.1 February 2014 For comments and suggestions: knivd@me.com Programming language FANF 1 / 21 Table of Contents 1. Introduction...3 2.

More information

UNIT 5 TRIGONOMETRY Lesson 5.4: Calculating Sine, Cosine, and Tangent. Instruction. Guided Practice 5.4. Example 1

UNIT 5 TRIGONOMETRY Lesson 5.4: Calculating Sine, Cosine, and Tangent. Instruction. Guided Practice 5.4. Example 1 Lesson : Calculating Sine, Cosine, and Tangent Guided Practice Example 1 Leo is building a concrete pathway 150 feet long across a rectangular courtyard, as shown in the following figure. What is the length

More information

4.1: Angles & Angle Measure

4.1: Angles & Angle Measure 4.1: Angles & Angle Measure In Trigonometry, we use degrees to measure angles in triangles. However, degree is not user friendly in many situations (just as % is not user friendly unless we change it into

More information

MATHEMATICS SYLLABUS SECONDARY 5th YEAR

MATHEMATICS SYLLABUS SECONDARY 5th YEAR European Schools Office of the Secretary-General Pedagogical Development Unit Ref.: 011-01-D-7-en- Orig.: EN MATHEMATICS SYLLABUS SECONDARY 5th YEAR 4 period/week course APPROVED BY THE JOINT TEACHING

More information

Math for Geometric Optics

Math for Geometric Optics Algebra skills Math for Geometric Optics general rules some common types of equations units problems with several variables (substitution) Geometry basics Trigonometry Pythagorean theorem definitions,

More information

1. The Pythagorean Theorem

1. The Pythagorean Theorem . The Pythagorean Theorem The Pythagorean theorem states that in any right triangle, the sum of the squares of the side lengths is the square of the hypotenuse length. c 2 = a 2 b 2 This theorem can be

More information

MODULE 7: VARIABLES & STRINGS

MODULE 7: VARIABLES & STRINGS MODULE 7: VARIABLES & STRINGS On completion of this module you will be able to work with and manipulate data, both numerical and text, found within single value holders. You will also be able to manipulate

More information

Chapter 3 Mathematical Functions, Strings, and Objects

Chapter 3 Mathematical Functions, Strings, and Objects Chapter 3 Mathematical Functions, Strings, and Objects 1 Motivations Suppose you need to estimate the area enclosed by four cities, given the GPS locations (latitude and longitude) of these cities, as

More information

Active Planner. How to Create and Use Database Query Formulas

Active Planner. How to Create and Use Database Query Formulas Active Planner How to Create and Use Database Query Formulas Table of Contents Introduction... 1 Database Query Part 1 - The Basics... 2 Database Query Part 2 Excel as the Data source... 12 Database Query

More information

ME1107 Computing Y Yan.

ME1107 Computing Y Yan. ME1107 Computing 1 2008-2009 Y Yan http://www.staff.city.ac.uk/~ensyy About Fortran Fortran Formula Translation High level computer language Basic, Fortran, C, C++, Java, C#, (Matlab) What do we learn?

More information

Objectives: After completing this section, you should be able to do the following: Calculate the lengths of sides and angles of a right triangle using

Objectives: After completing this section, you should be able to do the following: Calculate the lengths of sides and angles of a right triangle using Ch 13 - RIGHT TRIANGLE TRIGONOMETRY Objectives: After completing this section, you should be able to do the following: Calculate the lengths of sides and angles of a right triangle using trigonometric

More information

Level 4 means that I can

Level 4 means that I can Level 4 means that I can Describe number patterns Find multiples Find factors Work out the square numbers Use word formulae Use co-ordinates in the first quadrant Multiply and divide whole numbers by 10

More information

FOUNDATION HIGHER. F Autumn 1, Yr 9 Autumn 2, Yr 9 Spring 1, Yr 9 Spring 2, Yr 9 Summer 1, Yr 9 Summer 2, Yr 9

FOUNDATION HIGHER. F Autumn 1, Yr 9 Autumn 2, Yr 9 Spring 1, Yr 9 Spring 2, Yr 9 Summer 1, Yr 9 Summer 2, Yr 9 Year: 9 GCSE Mathematics FOUNDATION F Autumn 1, Yr 9 Autumn 2, Yr 9 Spring 1, Yr 9 Spring 2, Yr 9 Summer 1, Yr 9 Summer 2, Yr 9 HIGHER Integers and place value Decimals Indices, powers and roots Factors,multiples

More information

Trigonometric Functions. Copyright Cengage Learning. All rights reserved.

Trigonometric Functions. Copyright Cengage Learning. All rights reserved. 4 Trigonometric Functions Copyright Cengage Learning. All rights reserved. 4.7 Inverse Trigonometric Functions Copyright Cengage Learning. All rights reserved. What You Should Learn Evaluate and graph

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

Scope and Sequence Mathematics Kindergarten through Twelfth Grade

Scope and Sequence Mathematics Kindergarten through Twelfth Grade Scope and Sequence Mathematics Kindergarten through Twelfth Grade Topic/Subtopic K 1 2 3 4 5 6 7 8 9 10 11 12 WHOLE NUMBER OPERATION Writing numbers using digits Writing numbers - using words Ordering

More information

Software installation

Software installation Table of contents 1 Introduction...4 2 Software installation...4 2.1 Protection...4 2.2 Minimum recommended configuration...4 2.3 Installation...4 3 Uninstall the application...4 4 Software presentation...5

More information

Trigonometry is concerned with the connection between the sides and angles in any right angled triangle.

Trigonometry is concerned with the connection between the sides and angles in any right angled triangle. Trigonometry Obj: I can to use trigonometry to find unknown sides and unknown angles in a triangle. Trigonometry is concerned with the connection between the sides and angles in any right angled triangle.

More information

Amphitheater School District End Of Year Algebra II Performance Assessment Review

Amphitheater School District End Of Year Algebra II Performance Assessment Review Amphitheater School District End Of Year Algebra II Performance Assessment Review This packet is intended to support student preparation and review for the Algebra II course concepts for the district common

More information

MTH 120 Fall 2007 Essex County College Division of Mathematics Handout Version 6 1 October 3, 2007

MTH 120 Fall 2007 Essex County College Division of Mathematics Handout Version 6 1 October 3, 2007 MTH 10 Fall 007 Essex County College Division of Mathematics Handout Version 6 1 October, 007 1 Inverse Functions This section is a simple review of inverses as presented in MTH-119. Definition: A function

More information

2.2 Limit of a Function and Limit Laws

2.2 Limit of a Function and Limit Laws Limit of a Function and Limit Laws Section Notes Page Let s look at the graph y What is y()? That s right, its undefined, but what if we wanted to find the y value the graph is approaching as we get close

More information

11.4 CIRCUMFERENCE AND ARC LENGTH 11.5 AREA OF A CIRCLE & SECTORS

11.4 CIRCUMFERENCE AND ARC LENGTH 11.5 AREA OF A CIRCLE & SECTORS 11.4 CIRCUMFERENCE AND ARC LENGTH 11.5 AREA OF A CIRCLE & SECTORS Section 4.1, Figure 4.2, Standard Position of an Angle, pg. 248 Measuring Angles The measure of an angle is determined by the amount of

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

Properties of a Circle Diagram Source:

Properties of a Circle Diagram Source: Properties of a Circle Diagram Source: http://www.ricksmath.com/circles.html Definitions: Circumference (c): The perimeter of a circle is called its circumference Diameter (d): Any straight line drawn

More information

College Technical Mathematics 1

College Technical Mathematics 1 Lakeshore Technical College 10-804-115 College Technical Mathematics 1 Course Outcome Summary Course Information Alternate Title College Technical Math 1 Description Total Credits 5 Total Hours 108...prepares

More information

List of NEW Maths content

List of NEW Maths content List of NEW Maths content Our brand new Maths content for the new Maths GCSE (9-1) consists of 212 chapters broken up into 37 titles and 4 topic areas (Algebra, Geometry & Measures, Number and Statistics).

More information

Math 144 Activity #3 Coterminal Angles and Reference Angles

Math 144 Activity #3 Coterminal Angles and Reference Angles 144 p 1 Math 144 Activity #3 Coterminal Angles and Reference Angles For this activity we will be referring to the unit circle. Using the unit circle below, explain how you can find the sine of any given

More information

You can take the arccos of both sides to get θ by itself.

You can take the arccos of both sides to get θ by itself. .7 SOLVING TRIG EQUATIONS Example on p. 8 How do you solve cos ½ for? You can tae the arccos of both sides to get by itself. cos - (cos ) cos - ( ½) / However, arccos only gives us an answer between 0

More information

YEAR 12 Core 1 & 2 Maths Curriculum (A Level Year 1)

YEAR 12 Core 1 & 2 Maths Curriculum (A Level Year 1) YEAR 12 Core 1 & 2 Maths Curriculum (A Level Year 1) Algebra and Functions Quadratic Functions Equations & Inequalities Binomial Expansion Sketching Curves Coordinate Geometry Radian Measures Sine and

More information

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

3.4 System Dynamics Tool: Nova Tutorial 2. Introduction to Computational Science: Modeling and Simulation for the Sciences 3.4 System Dynamics Tool: Nova Tutorial 2 Introduction to Computational Science: Modeling and Simulation for the Sciences Angela B. Shiflet and George W. Shiflet Wofford College 2006 by Princeton University

More information

Sum and Difference Identities. Cosine Sum and Difference Identities: cos A B. does NOT equal cos A. Cosine of a Sum or Difference. cos B.

Sum and Difference Identities. Cosine Sum and Difference Identities: cos A B. does NOT equal cos A. Cosine of a Sum or Difference. cos B. 7.3 Sum and Difference Identities 7-1 Cosine Sum and Difference Identities: cos A B Cosine of a Sum or Difference cos cos does NOT equal cos A cos B. AB AB EXAMPLE 1 Finding Eact Cosine Function Values

More information

G r a d e 1 0 I n t r o d u c t i o n t o A p p l i e d a n d P r e - C a l c u l u s M a t h e m a t i c s ( 2 0 S )

G r a d e 1 0 I n t r o d u c t i o n t o A p p l i e d a n d P r e - C a l c u l u s M a t h e m a t i c s ( 2 0 S ) G r a d e 0 I n t r o d u c t i o n t o A p p l i e d a n d P r e - C a l c u l u s M a t h e m a t i c s ( 0 S ) Midterm Practice Exam Answer Key G r a d e 0 I n t r o d u c t i o n t o A p p l i e d

More information

6.8 Sine ing and Cosine ing It

6.8 Sine ing and Cosine ing It SECONDARY MATH III // MODULE 6 In the previous tasks of this module you have used the similarity of circles, the symmetry of circles, right triangle trigonometry and proportional reasoning to locate stakes

More information

EASON BASIC USERS GUIDE

EASON BASIC USERS GUIDE EASON TECHNOLOGY We Deliver Productivity EASON BASIC USERS GUIDE Revision 14 p/n 50-00003-01 Eason Technology, Inc 7975 Cameron Dr Bldg 300 Windsor, CA 95492 Phone (707) 837-0120 FAX (707) 837-2742 Copyright

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

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