C Programming Language

Size: px
Start display at page:

Download "C Programming Language"

Transcription

1 C Programming Language Lecture 4 (10/13/2000) Instructor: Wen-Hung Liao whliao@cs.nccu.edu.tw Extension: 62028

2 Building Programs from Existing Information Analysis Design Implementation Testing 2

3 Case Study Finding the area and circumference of a circle Analysis: one input: radius two outputs: area, circumference Constant: PI Formula 3

4 Case Study: Initial Algorithm Get the circle radius Calculate the area Calculate the circumference Display the results 4

5 Case Study: Implementation /* Calculates and displays the area and circumference of a circle */ #include <stdio.h> #define PI int main(void) { double radius; /* input - radius of a circle */ double area; /* output - area of a circle */ double circum; /* output - circumference */ /* Get the circle radius */ /* Calculate the area */ /* Assign PI * radius * radius to area. */ /* Calculate the circumference */ /* Assign 2 * PI * radius to circum. */ /* Display the area and circumference */ } return (0); 5

6 Library Functions Pre-defined functions -> code reuse Example: sqrt(x) to compute the square root of #include <math.h> 6

7 C Mathematical Library Functions Function Header File Argument Result abs(x) <stdlib.h> int int ceil(x) <math.h> double double cos(x) <math.h> double double exp(x) <math.h> double double fabs(x) <math.h> double double floor(x) <math.h> double double log(x) <math.h> double double log10(x) <math.h> double double 7

8 More C Math Functions Function Header File Argument Result pow(x,y) <math.h> double, double double sin(x) <math.h> double double (radians) sqrt(x) <math.h> double double tan(x) <math.h> double (radians) double 8

9 Dealing with abnormalities What happens if you send a negative number as an argument to the function sqrt(x)? How about log10(x)? How about abs(5.6)? It s up to the programmer, not the compiler, to deal with these potential problems. 9

10 Mathematical Expressions Compute the value of a, given: a 2 = b 2 + c 2 2bc cos( α) b α a a=sqrt(b*b + c*c - 2*b*c*cos(alpha*PI/180.0)) c 10

11 Other Examples Evaluate ceil(-7.2)*pow(4.0,2.0) Write the expression for: ( x y) 3 11

12 Top-down Design Case study: drawing simple diagrams Problem: Draw simple diagrams, such as a house, on your screen. Analysis: draw figures with some basic components: a circle a base line parallel lines intersecting lines 12

13 Structure Chart Drawing Stick Figures Draw a figure Draw a circle Draw a triangle Draw intersecting lines Draw intersecting lines Draw a base 13

14 Function without arguments Example: void draw_circle(void) Function Prototypes (Important!) a function must be declared before it is referenced. One way to declare a function is to insert a function prototype before the main function. 14

15 Function Prototype Tells the C compiler the data type of the function, the function name, and information about the arguments that the function expects. Example: double sin(double x); double pow(double x, double y); 15

16 Example /* * Draws a circle */ void draw_circle(void) { printf(" * \n"); printf(" * *\n"); printf(" * * \n"); } 16

17 Draw a stick figure /* * Draws a stick figure */ #include <stdio.h> /* function prototypes */ void draw_circle(void); /* Draws a circle */ void draw_intersect(void); /* Draws intersecting lines */ void draw_base(void); /* Draws a base line */ void draw_triangle(void); /* Draws a triangle */ int main(void) { /* Draw a circle. */ draw_circle(); /* Draw a triangle. */ draw_triangle(); /* Draw intersecting lines. */ draw_intersect(); } return (0); 17

18 Functions with input arguments Void function with input arguments functions with input arguments and a single result functions with input arguments and multiple results (use pointer ) 18

19 Advantage of using functions Procedural abstraction Function reuse Easier to maintain, debug 19

20 Your Homework Read Chapter 3 of textbook Use the top-down design approach to write a C program that will print your initials (e.g., my name is Wen-Hung Liao, then I'll have to write three functions, draw_w( ), draw_h( ), and draw_l( ) and use a main program to call these functions to print out the letters.). 20

21 Your Homework (cont d) Write three functions, named dsin, dcos, and dtan, respectively, so that a user can pass the argument in degrees, instead of radians, to compute sin, cos, and tan. Use a main program to test your code. Due on 10/20/2000. Please send the source code to your TA via . 21

Chapter 5 Functions. Introducing Functions

Chapter 5 Functions. Introducing Functions Chapter 5 Functions 1 Introducing Functions A function is a collection of statements that are grouped together to perform an operation Define a function Invoke a funciton return value type method name

More information

Simple C++ Programs. Engineering Problem Solving with C++, Etter/Ingber. Dev-C++ Dev-C++ Windows Friendly Exit. The C++ Programming Language

Simple C++ Programs. Engineering Problem Solving with C++, Etter/Ingber. Dev-C++ Dev-C++ Windows Friendly Exit. The C++ Programming Language Simple C++ Programs Engineering Problem Solving with C++, Etter/Ingber Chapter 2 Simple C++ Programs Program Structure Constants and Variables C++ Operators Standard Input and Output Basic Functions from

More information

6.1 Basic Right Triangle Trigonometry

6.1 Basic Right Triangle Trigonometry 6.1 Basic Right Triangle Trigonometry MEASURING ANGLES IN RADIANS First, let s introduce the units you will be using to measure angles, radians. A radian is a unit of measurement defined as the angle at

More information

Trigonometric Functions and Triangles

Trigonometric Functions and Triangles Trigonometric Functions and Triangles Dr. Philippe B. Laval Kennesaw STate University August 27, 2010 Abstract This handout defines the trigonometric function of angles and discusses the relationship between

More information

ALGEBRA 2/TRIGONOMETRY

ALGEBRA 2/TRIGONOMETRY ALGEBRA /TRIGONOMETRY The University of the State of New York REGENTS HIGH SCHOOL EXAMINATION ALGEBRA /TRIGONOMETRY Tuesday, January 8, 014 1:15 to 4:15 p.m., only Student Name: School Name: The possession

More information

GRE Prep: Precalculus

GRE Prep: Precalculus GRE Prep: Precalculus Franklin H.J. Kenter 1 Introduction These are the notes for the Precalculus section for the GRE Prep session held at UCSD in August 2011. These notes are in no way intended to teach

More information

Techniques of Integration

Techniques of Integration CHPTER 7 Techniques of Integration 7.. Substitution Integration, unlike differentiation, is more of an art-form than a collection of algorithms. Many problems in applied mathematics involve the integration

More information

ALGEBRA 2/TRIGONOMETRY

ALGEBRA 2/TRIGONOMETRY ALGEBRA /TRIGONOMETRY The University of the State of New York REGENTS HIGH SCHOOL EXAMINATION ALGEBRA /TRIGONOMETRY Thursday, January 9, 015 9:15 a.m to 1:15 p.m., only Student Name: School Name: The possession

More information

Calculate the value of π

Calculate the value of π Rakesh Goel CEO, SK Dynamics P. Ltd., B5 Industrial Estate, Roorkee 247 667 I. Abstract: π is a constant extensively used in Mathematics and application of mathematics in Physics etc. In fact, π is considered

More information

a cos x + b sin x = R cos(x α)

a cos x + b sin x = R cos(x α) a cos x + b sin x = R cos(x α) In this unit we explore how the sum of two trigonometric functions, e.g. cos x + 4 sin x, can be expressed as a single trigonometric function. Having the ability to do this

More information

Final Exam Review: VBA

Final Exam Review: VBA Engineering Fundamentals ENG1100 - Session 14B Final Exam Review: VBA 1 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi Final Programming Exam Topics Flowcharts Assigning Variables

More information

The OptQuest Engine Java and.net Developer's Guilde

The OptQuest Engine Java and.net Developer's Guilde The OptQuest Engine Java and.net Developer's Guilde Table Of Contents Introduction to optimization... 1 What is optimization?... 1 How the OptQuest Engine works... 1 Using the documentation... 2 Platforms...

More information

Solutions to Homework 10

Solutions to Homework 10 Solutions to Homework 1 Section 7., exercise # 1 (b,d): (b) Compute the value of R f dv, where f(x, y) = y/x and R = [1, 3] [, 4]. Solution: Since f is continuous over R, f is integrable over R. Let x

More information

A very minimal introduction to TikZ

A very minimal introduction to TikZ A very minimal introduction to TikZ Jacques Crémer Toulouse School of Economics jacques.cremer@tse-fr.eu March 11, 2011 Contents 1 Introduction 3 2 Setting up a picture 3 3 Drawing lines and curves 4 3.1

More information

www.mathsbox.org.uk ab = c a If the coefficients a,b and c are real then either α and β are real or α and β are complex conjugates

www.mathsbox.org.uk ab = c a If the coefficients a,b and c are real then either α and β are real or α and β are complex conjugates Further Pure Summary Notes. Roots of Quadratic Equations For a quadratic equation ax + bx + c = 0 with roots α and β Sum of the roots Product of roots a + b = b a ab = c a If the coefficients a,b and c

More information

Getting Started with MasteringPhysics

Getting Started with MasteringPhysics Getting Started with MasteringPhysics POWERED BY MYCYBERTUTOR STUDENT EDITION MasteringPhysics helps you when you need it most when you are stuck working out a problem. Designed specifically for university

More information

El Dorado Union High School District Educational Services

El Dorado Union High School District Educational Services El Dorado Union High School District Course of Study Information Page Course Title: ACE Computer Programming I (#494) Rationale: A continuum of courses, including advanced classes in technology is needed.

More information

Math Placement Test Practice Problems

Math Placement Test Practice Problems Math Placement Test Practice Problems The following problems cover material that is used on the math placement test to place students into Math 1111 College Algebra, Math 1113 Precalculus, and Math 2211

More information

Triangle Trigonometry and Circles

Triangle Trigonometry and Circles Math Objectives Students will understand that trigonometric functions of an angle do not depend on the size of the triangle within which the angle is contained, but rather on the ratios of the sides of

More information

Friday, January 29, 2016 9:15 a.m. to 12:15 p.m., only

Friday, January 29, 2016 9:15 a.m. to 12:15 p.m., only ALGEBRA /TRIGONOMETRY The University of the State of New York REGENTS HIGH SCHOOL EXAMINATION ALGEBRA /TRIGONOMETRY Friday, January 9, 016 9:15 a.m. to 1:15 p.m., only Student Name: School Name: The possession

More information

Chapter 8 Geometry We will discuss following concepts in this chapter.

Chapter 8 Geometry We will discuss following concepts in this chapter. Mat College Mathematics Updated on Nov 5, 009 Chapter 8 Geometry We will discuss following concepts in this chapter. Two Dimensional Geometry: Straight lines (parallel and perpendicular), Rays, Angles

More information

Solutions to Exercises, Section 5.1

Solutions to Exercises, Section 5.1 Instructor s Solutions Manual, Section 5.1 Exercise 1 Solutions to Exercises, Section 5.1 1. Find all numbers t such that ( 1 3,t) is a point on the unit circle. For ( 1 3,t)to be a point on the unit circle

More information

Simple C Programs. Goals for this Lecture. Help you learn about:

Simple C Programs. Goals for this Lecture. Help you learn about: Simple C Programs 1 Goals for this Lecture Help you learn about: Simple C programs Program structure Defining symbolic constants Detecting and reporting failure Functionality of the gcc command Preprocessor,

More information

Algebra. Exponents. Absolute Value. Simplify each of the following as much as possible. 2x y x + y y. xxx 3. x x x xx x. 1. Evaluate 5 and 123

Algebra. Exponents. Absolute Value. Simplify each of the following as much as possible. 2x y x + y y. xxx 3. x x x xx x. 1. Evaluate 5 and 123 Algebra Eponents Simplify each of the following as much as possible. 1 4 9 4 y + y y. 1 5. 1 5 4. y + y 4 5 6 5. + 1 4 9 10 1 7 9 0 Absolute Value Evaluate 5 and 1. Eliminate the absolute value bars from

More information

Getting Started with

Getting Started with Getting Started with MASTERINGPHYSICS IS POWERED BY MYCYBERTUTOR BY EFFECTIVE EDUCATIONAL TECHNOLOGIES STUDENT EDITION MasteringPhysics is the first Socratic tutoring system developed specifically for

More information

Evaluating trigonometric functions

Evaluating trigonometric functions MATH 1110 009-09-06 Evaluating trigonometric functions Remark. Throughout this document, remember the angle measurement convention, which states that if the measurement of an angle appears without units,

More information

Perimeter is the length of the boundary of a two dimensional figure.

Perimeter is the length of the boundary of a two dimensional figure. Section 2.2: Perimeter and Area Perimeter is the length of the boundary of a two dimensional figure. The perimeter of a circle is called the circumference. The perimeter of any two dimensional figure whose

More information

1 Solution of Homework

1 Solution of Homework Math 3181 Dr. Franz Rothe February 4, 2011 Name: 1 Solution of Homework 10 Problem 1.1 (Common tangents of two circles). How many common tangents do two circles have. Informally draw all different cases,

More information

Calculating Area, Perimeter and Volume

Calculating Area, Perimeter and Volume Calculating Area, Perimeter and Volume You will be given a formula table to complete your math assessment; however, we strongly recommend that you memorize the following formulae which will be used regularly

More information

Inverse Trig Functions

Inverse Trig Functions Inverse Trig Functions c A Math Support Center Capsule February, 009 Introuction Just as trig functions arise in many applications, so o the inverse trig functions. What may be most surprising is that

More information

Mathematics (Project Maths Phase 1)

Mathematics (Project Maths Phase 1) 2011. S133S Coimisiún na Scrúduithe Stáit State Examinations Commission Junior Certificate Examination Sample Paper Mathematics (Project Maths Phase 1) Paper 2 Ordinary Level Time: 2 hours 300 marks Running

More information

ChE-1800 H-2: Flowchart Diagrams (last updated January 13, 2013)

ChE-1800 H-2: Flowchart Diagrams (last updated January 13, 2013) ChE-1800 H-2: Flowchart Diagrams (last updated January 13, 2013) This handout contains important information for the development of flowchart diagrams Common Symbols for Algorithms The first step before

More information

SOLVING TRIGONOMETRIC EQUATIONS

SOLVING TRIGONOMETRIC EQUATIONS Mathematics Revision Guides Solving Trigonometric Equations Page 1 of 17 M.K. HOME TUITION Mathematics Revision Guides Level: AS / A Level AQA : C2 Edexcel: C2 OCR: C2 OCR MEI: C2 SOLVING TRIGONOMETRIC

More information

CIRCLE COORDINATE GEOMETRY

CIRCLE COORDINATE GEOMETRY CIRCLE COORDINATE GEOMETRY (EXAM QUESTIONS) Question 1 (**) A circle has equation x + y = 2x + 8 Determine the radius and the coordinates of the centre of the circle. r = 3, ( 1,0 ) Question 2 (**) A circle

More information

I PUC - Computer Science. Practical s Syllabus. Contents

I PUC - Computer Science. Practical s Syllabus. Contents I PUC - Computer Science Practical s Syllabus Contents Topics 1 Overview Of a Computer 1.1 Introduction 1.2 Functional Components of a computer (Working of each unit) 1.3 Evolution Of Computers 1.4 Generations

More information

2009 Chicago Area All-Star Math Team Tryouts Solutions

2009 Chicago Area All-Star Math Team Tryouts Solutions 1. 2009 Chicago Area All-Star Math Team Tryouts Solutions If a car sells for q 1000 and the salesman earns q% = q/100, he earns 10q 2. He earns an additional 100 per car, and he sells p cars, so his total

More information

Section 7.2 Area. The Area of Rectangles and Triangles

Section 7.2 Area. The Area of Rectangles and Triangles Section 7. Area The Area of Rectangles and Triangles We encounter two dimensional objects all the time. We see objects that take on the shapes similar to squares, rectangle, trapezoids, triangles, and

More information

*X100/12/02* X100/12/02. MATHEMATICS HIGHER Paper 1 (Non-calculator) MONDAY, 21 MAY 1.00 PM 2.30 PM NATIONAL QUALIFICATIONS 2012

*X100/12/02* X100/12/02. MATHEMATICS HIGHER Paper 1 (Non-calculator) MONDAY, 21 MAY 1.00 PM 2.30 PM NATIONAL QUALIFICATIONS 2012 X00//0 NTIONL QULIFITIONS 0 MONY, MY.00 PM.0 PM MTHEMTIS HIGHER Paper (Non-calculator) Read carefully alculators may NOT be used in this paper. Section Questions 0 (40 marks) Instructions for completion

More information

Arithmetic Computation Test (ACT) Preparation Guide

Arithmetic Computation Test (ACT) Preparation Guide Arithmetic Computation Test (ACT) Preparation Guide CONFIDENTIAL A.C.T. PREPARATION GUIDE It is important that employees demonstrate that they have basic problem solving skills. The purpose of the Arithmetic

More information

7.4A/7.4B STUDENT ACTIVITY #1

7.4A/7.4B STUDENT ACTIVITY #1 7.4A/7.4B STUDENT ACTIVITY #1 Write a formula that could be used to find the radius of a circle, r, given the circumference of the circle, C. The formula in the Grade 7 Mathematics Chart that relates the

More information

Year 9 set 1 Mathematics notes, to accompany the 9H book.

Year 9 set 1 Mathematics notes, to accompany the 9H book. Part 1: Year 9 set 1 Mathematics notes, to accompany the 9H book. equations 1. (p.1), 1.6 (p. 44), 4.6 (p.196) sequences 3. (p.115) Pupils use the Elmwood Press Essential Maths book by David Raymer (9H

More information

x(x + 5) x 2 25 (x + 5)(x 5) = x 6(x 4) x ( x 4) + 3

x(x + 5) x 2 25 (x + 5)(x 5) = x 6(x 4) x ( x 4) + 3 CORE 4 Summary Notes Rational Expressions Factorise all expressions where possible Cancel any factors common to the numerator and denominator x + 5x x(x + 5) x 5 (x + 5)(x 5) x x 5 To add or subtract -

More information

ALGEBRA 2/TRIGONOMETRY

ALGEBRA 2/TRIGONOMETRY ALGEBRA /TRIGONOMETRY The University of the State of New York REGENTS HIGH SCHOOL EXAMINATION ALGEBRA /TRIGONOMETRY Tuesday, June 1, 011 1:15 to 4:15 p.m., only Student Name: School Name: Print your name

More information

x 2 + y 2 = 1 y 1 = x 2 + 2x y = x 2 + 2x + 1

x 2 + y 2 = 1 y 1 = x 2 + 2x y = x 2 + 2x + 1 Implicit Functions Defining Implicit Functions Up until now in this course, we have only talked about functions, which assign to every real number x in their domain exactly one real number f(x). The graphs

More information

Review Sheet for Test 1

Review Sheet for Test 1 Review Sheet for Test 1 Math 261-00 2 6 2004 These problems are provided to help you study. The presence of a problem on this handout does not imply that there will be a similar problem on the test. And

More information

Student Outcomes. Lesson Notes. Classwork. Exercises 1 3 (4 minutes)

Student Outcomes. Lesson Notes. Classwork. Exercises 1 3 (4 minutes) Student Outcomes Students give an informal derivation of the relationship between the circumference and area of a circle. Students know the formula for the area of a circle and use it to solve problems.

More information

Objective: To distinguish between degree and radian measure, and to solve problems using both.

Objective: To distinguish between degree and radian measure, and to solve problems using both. CHAPTER 3 LESSON 1 Teacher s Guide Radian Measure AW 3.2 MP 4.1 Objective: To distinguish between degree and radian measure, and to solve problems using both. Prerequisites Define the following concepts.

More information

CS 261 Fall 2011 Solutions to Assignment #4

CS 261 Fall 2011 Solutions to Assignment #4 CS 61 Fall 011 Solutions to Assignment #4 The following four algorithms are used to implement the bisection method, Newton s method, the secant method, and the method of false position, respectively. In

More information

Algebra Geometry Glossary. 90 angle

Algebra Geometry Glossary. 90 angle lgebra Geometry Glossary 1) acute angle an angle less than 90 acute angle 90 angle 2) acute triangle a triangle where all angles are less than 90 3) adjacent angles angles that share a common leg Example:

More information

The University of the State of New York REGENTS HIGH SCHOOL EXAMINATION MATHEMATICS B. Thursday, January 29, 2004 9:15 a.m. to 12:15 p.m.

The University of the State of New York REGENTS HIGH SCHOOL EXAMINATION MATHEMATICS B. Thursday, January 29, 2004 9:15 a.m. to 12:15 p.m. The University of the State of New York REGENTS HIGH SCHOOL EXAMINATION MATHEMATICS B Thursday, January 9, 004 9:15 a.m. to 1:15 p.m., only Print Your Name: Print Your School s Name: Print your name and

More information

Semester 2, Unit 4: Activity 21

Semester 2, Unit 4: Activity 21 Resources: SpringBoard- PreCalculus Online Resources: PreCalculus Springboard Text Unit 4 Vocabulary: Identity Pythagorean Identity Trigonometric Identity Cofunction Identity Sum and Difference Identities

More information

Kristen Kachurek. Circumference, Perimeter, and Area Grades 7-10 5 Day lesson plan. Technology and Manipulatives used:

Kristen Kachurek. Circumference, Perimeter, and Area Grades 7-10 5 Day lesson plan. Technology and Manipulatives used: Kristen Kachurek Circumference, Perimeter, and Area Grades 7-10 5 Day lesson plan Technology and Manipulatives used: TI-83 Plus calculator Area Form application (for TI-83 Plus calculator) Login application

More information

Advanced GMAT Math Questions

Advanced GMAT Math Questions Advanced GMAT Math Questions Version Quantitative Fractions and Ratios 1. The current ratio of boys to girls at a certain school is to 5. If 1 additional boys were added to the school, the new ratio of

More information

Week 13 Trigonometric Form of Complex Numbers

Week 13 Trigonometric Form of Complex Numbers Week Trigonometric Form of Complex Numbers Overview In this week of the course, which is the last week if you are not going to take calculus, we will look at how Trigonometry can sometimes help in working

More information

Programming the PIC18/ XC8 Using C- Coding Dr. Farahmand

Programming the PIC18/ XC8 Using C- Coding Dr. Farahmand Programming the PIC18/ XC8 Using C- Coding Dr. Farahmand Updated: 3/14/12 The C Compiler n The C18/XC8 compiler is a free program for students used for programing the PIC in C- Language. n Programming

More information

Homework 2 Solutions

Homework 2 Solutions Homework Solutions 1. (a) Find the area of a regular heagon inscribed in a circle of radius 1. Then, find the area of a regular heagon circumscribed about a circle of radius 1. Use these calculations to

More information

Chapter 13 Storage classes

Chapter 13 Storage classes Chapter 13 Storage classes 1. Storage classes 2. Storage Class auto 3. Storage Class extern 4. Storage Class static 5. Storage Class register 6. Global and Local Variables 7. Nested Blocks with the Same

More information

Notes and questions to aid A-level Mathematics revision

Notes and questions to aid A-level Mathematics revision Notes and questions to aid A-level Mathematics revision Robert Bowles University College London October 4, 5 Introduction Introduction There are some students who find the first year s study at UCL and

More information

1 Abstract Data Types Information Hiding

1 Abstract Data Types Information Hiding 1 1 Abstract Data Types Information Hiding 1.1 Data Types Data types are an integral part of every programming language. ANSI-C has int, double and char to name just a few. Programmers are rarely content

More information

GAP CLOSING. 2D Measurement. Intermediate / Senior Student Book

GAP CLOSING. 2D Measurement. Intermediate / Senior Student Book GAP CLOSING 2D Measurement Intermediate / Senior Student Book 2-D Measurement Diagnostic...3 Areas of Parallelograms, Triangles, and Trapezoids...6 Areas of Composite Shapes...14 Circumferences and Areas

More information

28 CHAPTER 1. VECTORS AND THE GEOMETRY OF SPACE. v x. u y v z u z v y u y u z. v y v z

28 CHAPTER 1. VECTORS AND THE GEOMETRY OF SPACE. v x. u y v z u z v y u y u z. v y v z 28 CHAPTER 1. VECTORS AND THE GEOMETRY OF SPACE 1.4 Cross Product 1.4.1 Definitions The cross product is the second multiplication operation between vectors we will study. The goal behind the definition

More information

Mathematics Placement Examination (MPE)

Mathematics Placement Examination (MPE) Practice Problems for Mathematics Placement Eamination (MPE) Revised August, 04 When you come to New Meico State University, you may be asked to take the Mathematics Placement Eamination (MPE) Your inital

More information

Unit 3: Circles and Volume

Unit 3: Circles and Volume Unit 3: Circles and Volume This unit investigates the properties of circles and addresses finding the volume of solids. Properties of circles are used to solve problems involving arcs, angles, sectors,

More information

Solving Equations and Inequalities

Solving Equations and Inequalities Solving Equations and Inequalities Akram Kalantari Department of Mathematics Yazd University Akram Kalantari Solving Equations and Inequalities 1 / 22 1 Solving for x 2 Declaring Variables 3 Solving Equations

More information

Sample Test Questions

Sample Test Questions mathematics College Algebra Geometry Trigonometry Sample Test Questions A Guide for Students and Parents act.org/compass Note to Students Welcome to the ACT Compass Sample Mathematics Test! You are about

More information

The GED math test gives you a page of math formulas that

The GED math test gives you a page of math formulas that Math Smart 643 The GED Math Formulas The GED math test gives you a page of math formulas that you can use on the test, but just seeing the formulas doesn t do you any good. The important thing is understanding

More information

PROBLEM SET. Practice Problems for Exam #1. Math 1352, Fall 2004. Oct. 1, 2004 ANSWERS

PROBLEM SET. Practice Problems for Exam #1. Math 1352, Fall 2004. Oct. 1, 2004 ANSWERS PROBLEM SET Practice Problems for Exam # Math 352, Fall 24 Oct., 24 ANSWERS i Problem. vlet R be the region bounded by the curves x = y 2 and y = x. A. Find the volume of the solid generated by revolving

More information

Application Note: AN00141 xcore-xa - Application Development

Application Note: AN00141 xcore-xa - Application Development Application Note: AN00141 xcore-xa - Application Development This application note shows how to create a simple example which targets the XMOS xcore-xa device and demonstrates how to build and run this

More information

Introduction to Scientific Computing Part II: C and C++ C. David Sherrill School of Chemistry and Biochemistry Georgia Institute of Technology

Introduction to Scientific Computing Part II: C and C++ C. David Sherrill School of Chemistry and Biochemistry Georgia Institute of Technology Introduction to Scientific Computing Part II: C and C++ C. David Sherrill School of Chemistry and Biochemistry Georgia Institute of Technology The C Programming Language: Low-level operators Created by

More information

Euler s Formula Math 220

Euler s Formula Math 220 Euler s Formula Math 0 last change: Sept 3, 05 Complex numbers A complex number is an expression of the form x+iy where x and y are real numbers and i is the imaginary square root of. For example, + 3i

More information

Unit 6 Trigonometric Identities, Equations, and Applications

Unit 6 Trigonometric Identities, Equations, and Applications Accelerated Mathematics III Frameworks Student Edition Unit 6 Trigonometric Identities, Equations, and Applications nd Edition Unit 6: Page of 3 Table of Contents Introduction:... 3 Discovering the Pythagorean

More information

Examples of Functions

Examples of Functions Examples of Functions In this document is provided examples of a variety of functions. The purpose is to convince the beginning student that functions are something quite different than polynomial equations.

More information

Objective: Use calculator to comprehend transformations.

Objective: Use calculator to comprehend transformations. math111 (Bradford) Worksheet #1 Due Date: Objective: Use calculator to comprehend transformations. Here is a warm up for exploring manipulations of functions. specific formula for a function, say, Given

More information

Biggar High School Mathematics Department. National 5 Learning Intentions & Success Criteria: Assessing My Progress

Biggar High School Mathematics Department. National 5 Learning Intentions & Success Criteria: Assessing My Progress Biggar High School Mathematics Department National 5 Learning Intentions & Success Criteria: Assessing My Progress Expressions & Formulae Topic Learning Intention Success Criteria I understand this Approximation

More information

Additional Topics in Math

Additional Topics in Math Chapter Additional Topics in Math In addition to the questions in Heart of Algebra, Problem Solving and Data Analysis, and Passport to Advanced Math, the SAT Math Test includes several questions that are

More information

Name: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program.

Name: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program. Name: Class: Date: Exam #1 - Prep True/False Indicate whether the statement is true or false. 1. Programming is the process of writing a computer program in a language that the computer can respond to

More information

Java Programming (10155)

Java Programming (10155) Java Programming (10155) Rationale Statement: The world is full of problems that need to be solved or that need a program to solve them faster. In computer, programming students will learn how to solve

More information

SAT Subject Math Level 2 Facts & Formulas

SAT Subject Math Level 2 Facts & Formulas Numbers, Sequences, Factors Integers:..., -3, -2, -1, 0, 1, 2, 3,... Reals: integers plus fractions, decimals, and irrationals ( 2, 3, π, etc.) Order Of Operations: Arithmetic Sequences: PEMDAS (Parentheses

More information

WORK SCHEDULE: MATHEMATICS 2007

WORK SCHEDULE: MATHEMATICS 2007 , K WORK SCHEDULE: MATHEMATICS 00 GRADE MODULE TERM... LO NUMBERS, OPERATIONS AND RELATIONSHIPS able to recognise, represent numbers and their relationships, and to count, estimate, calculate and check

More information

This activity will guide you to create formulas and use some of the built-in math functions in EXCEL.

This activity will guide you to create formulas and use some of the built-in math functions in EXCEL. Purpose: This activity will guide you to create formulas and use some of the built-in math functions in EXCEL. The three goals of the spreadsheet are: Given a triangle with two out of three angles known,

More information

Below is a very brief tutorial on the basic capabilities of Excel. Refer to the Excel help files for more information.

Below is a very brief tutorial on the basic capabilities of Excel. Refer to the Excel help files for more information. Excel Tutorial Below is a very brief tutorial on the basic capabilities of Excel. Refer to the Excel help files for more information. Working with Data Entering and Formatting Data Before entering data

More information

Section 7.1 Solving Right Triangles

Section 7.1 Solving Right Triangles Section 7.1 Solving Right Triangles Note that a calculator will be needed for most of the problems we will do in class. Test problems will involve angles for which no calculator is needed (e.g., 30, 45,

More information

ASSESSSMENT TASK OVERVIEW & PURPOSE:

ASSESSSMENT TASK OVERVIEW & PURPOSE: Developing a Trigonometry Phone App I. ASSESSSMENT TASK OVERVIEW & PURPOSE: In this activity, students will be asked to develop a program for a smartphone application that could be used to calculate the

More information

LESSON 7 Don t Be A Square by Michael Torres

LESSON 7 Don t Be A Square by Michael Torres CONCEPT AREA GRADE LEVEL Measurement 5-6 TIME ALLOTMENT Two 60-minute sessions LESSON OVERVIEW LESSON ACTIVITIES OVERVIEW LEARNING OBJECTIVES STANDARDS (TEKS) Students will learn the relationship between

More information

Trigonometric Functions: The Unit Circle

Trigonometric Functions: The Unit Circle Trigonometric Functions: The Unit Circle This chapter deals with the subject of trigonometry, which likely had its origins in the study of distances and angles by the ancient Greeks. The word trigonometry

More information

Programming a mathematical formula. INF1100 Lectures, Chapter 1: Computing with Formulas. How to write and run the program.

Programming a mathematical formula. INF1100 Lectures, Chapter 1: Computing with Formulas. How to write and run the program. 5mm. Programming a mathematical formula INF1100 Lectures, Chapter 1: Computing with Formulas Hans Petter Langtangen We will learn programming through examples The first examples involve programming of

More information

Determine If An Equation Represents a Function

Determine If An Equation Represents a Function Question : What is a linear function? The term linear function consists of two parts: linear and function. To understand what these terms mean together, we must first understand what a function is. The

More information

NURBS Drawing Week 5, Lecture 10

NURBS Drawing Week 5, Lecture 10 CS 430/536 Computer Graphics I NURBS Drawing Week 5, Lecture 10 David Breen, William Regli and Maxim Peysakhov Geometric and Intelligent Computing Laboratory Department of Computer Science Drexel University

More information

Trigonometry Review with the Unit Circle: All the trig. you ll ever need to know in Calculus

Trigonometry Review with the Unit Circle: All the trig. you ll ever need to know in Calculus Trigonometry Review with the Unit Circle: All the trig. you ll ever need to know in Calculus Objectives: This is your review of trigonometry: angles, six trig. functions, identities and formulas, graphs:

More information

Geometry - Calculating Area and Perimeter

Geometry - Calculating Area and Perimeter Geometry - Calculating Area and Perimeter In order to complete any of mechanical trades assessments, you will need to memorize certain formulas. These are listed below: (The formulas for circle geometry

More information

MCA Formula Review Packet

MCA Formula Review Packet MCA Formula Review Packet 1 3 4 5 6 7 The MCA-II / BHS Math Plan Page 1 of 15 Copyright 005 by Claude Paradis 8 9 10 1 11 13 14 15 16 17 18 19 0 1 3 4 5 6 7 30 8 9 The MCA-II / BHS Math Plan Page of 15

More information

INTERESTING PROOFS FOR THE CIRCUMFERENCE AND AREA OF A CIRCLE

INTERESTING PROOFS FOR THE CIRCUMFERENCE AND AREA OF A CIRCLE INTERESTING PROOFS FOR THE CIRCUMFERENCE AND AREA OF A CIRCLE ABSTRACT:- Vignesh Palani University of Minnesota - Twin cities e-mail address - palan019@umn.edu In this brief work, the existing formulae

More information

One advantage of this algebraic approach is that we can write down

One advantage of this algebraic approach is that we can write down . Vectors and the dot product A vector v in R 3 is an arrow. It has a direction and a length (aka the magnitude), but the position is not important. Given a coordinate axis, where the x-axis points out

More information

Metas.UncLib. Michael Wollensack und Marko Zeier. Metas Seminar 09.09.2009. Ein Messunsicherheitsrechner für Fortgeschrittene

Metas.UncLib. Michael Wollensack und Marko Zeier. Metas Seminar 09.09.2009. Ein Messunsicherheitsrechner für Fortgeschrittene Federal Department of Justice and Police FDJP Federal Office of Metrology METAS Metas.UncLib Ein Messunsicherheitsrechner für Fortgeschrittene Metas Seminar 09.09.2009 Michael Wollensack und Marko Zeier

More information

ANALYTICAL METHODS FOR ENGINEERS

ANALYTICAL METHODS FOR ENGINEERS UNIT 1: Unit code: QCF Level: 4 Credit value: 15 ANALYTICAL METHODS FOR ENGINEERS A/601/1401 OUTCOME - TRIGONOMETRIC METHODS TUTORIAL 1 SINUSOIDAL FUNCTION Be able to analyse and model engineering situations

More information

4. How many integers between 2004 and 4002 are perfect squares?

4. How many integers between 2004 and 4002 are perfect squares? 5 is 0% of what number? What is the value of + 3 4 + 99 00? (alternating signs) 3 A frog is at the bottom of a well 0 feet deep It climbs up 3 feet every day, but slides back feet each night If it started

More information

MS-EXCEL: ANALYSIS OF EXPERIMENTAL DATA

MS-EXCEL: ANALYSIS OF EXPERIMENTAL DATA MS-EXCEL: ANALYSIS OF EXPERIMENTAL DATA Rajender Parsad and Shashi Dahiya I.A.S.R.I., Library Avenue, New Delhi-110 012 The inbuilt functions and procedures of MS-EXCEL can be utilized for the analysis

More information

Angles and Quadrants. Angle Relationships and Degree Measurement. Chapter 7: Trigonometry

Angles and Quadrants. Angle Relationships and Degree Measurement. Chapter 7: Trigonometry Chapter 7: Trigonometry Trigonometry is the study of angles and how they can be used as a means of indirect measurement, that is, the measurement of a distance where it is not practical or even possible

More information

Functions and their Graphs

Functions and their Graphs Functions and their Graphs Functions All of the functions you will see in this course will be real-valued functions in a single variable. A function is real-valued if the input and output are real numbers

More information