SINE AND COSINE SUBROUTINES

Size: px
Start display at page:

Download "SINE AND COSINE SUBROUTINES"

Transcription

1 SINE AND COSINE SUBROUTINES OVERVIEW: You developed a procedure for computing a fixed point sine function in Programming Assignment #4. In part 1 of this lab, you will convert that procedure into a subroutine which can be called from anywhere in your program. In part 2 you will implement a cosine function. Part 1: Your subroutine should: 1. include use of the MOVEM instruction to save ALL registers at the beginning of your subroutine and restore them at the end of the subroutine. 2. pass the input word to the subroutine ON THE STACK. Although other methods of parameter passing to a subroutine are allowed, only this one will be accepted for purposes of grading. Other methods will receive severe penalities. 3. return a result in the lab #4 format (one word) ON THE STACK Your main program should: 1. set the stack pointer to the correct return address when the stack is used for parameter passing. 2. set the stack pointer to an appropriate initial value. THE DEBUGGER DOES NOT DO THIS AUTOMATICALLY FOR YOU! Part 2: Write a subroutine which will compute the cosine of an input angle. HINT: Recall that cos(x)=-sine(x-90 degrees). Write a cosine subroutine which will compute x-90 degrees, call your sine subroutine to compute sine(x-90 degrees), and set the appropriate sign. The parameter passing MUST be on the stack, i.e. the form of the cosine routine should be similar to that of the sine routine

2 WriteUp for Lab #5 1. how you initialized the stack and where it is in memory 2. pseudocode description of cosine routine (DO NOT include the sine function pseudo code) 3. mathematical basis for cosine function. Specifically list the trig identity used. 4. operation of sine routine. This should include a short paragraph which describes the process of parameter passing on the stack and the necessary operations your subroutine must do to correctly implement parameter passing on the stack. Your documentation MUST include a picture or drawing of the stack (i) before the subroutine is called, and (ii) after you push your parameters onto the stack, call the subroutine and save your parameters on the stack with a MOVEM. Be sure to explicitly indicate the location of the SP. A picture of the debugger screen showing the stack contents should be included. IF YOU CANNOT DO THIS PLEASE INDICATE WHY. This could be done through the debugger via the stack window (upper right corner), or by directly examining the memory using a Memory Display command. HINT: Remember the direction in which the stack grows! 5. operation of the cosine routine. Your documentation MUST include a picture or drawing of the stack (i) before the subroutine is called, and (ii) after you push your parameters onto the stack, call the cosine subroutine and save your parameters on the stack with a MOVEM, pass your parameters to the sine routine, call the sine function, and then save its registers with a MOVEM. Be sure to explicitly indicate the location of the SP. A picture of the debugger screen showing the stack contents should be included. IF YOU CANNOT DO THIS PLEASE INDICATE WHY. 6. A table of hex sine and cosine values for 10 randomly chosen digital angles plus the angles $6000 and $C listing (assembler output) of your program EXTRA CREDIT DOCUMENTATION (HANDED IN SEPARATELY) This means that you have used a LINK and UNLK pair INSIDE each subroutine. Points will be not be given for programs which improperly use the LINK instruction. Your writeup for the extra credit will be IN ADDITION to the above writeup. I will grade the extra credit whereas Meng will grade the regular assignment. 1. Repeat 4 and 5 of the above write-up instructions being sure to explicitly show the location of both the frame pointer and the stack pointer. 2. Your subroutine includes a LINK and MOVEM instruction. Justify the order in which these instructions should occur in your subroutine. 3. Explain why a frame pointer is needed in addition to a stack pointer. 4. assembler listing of your program

3 >I do not understand the confusion but some people are unclear that >Lab #5 requires you to implement both a sine function AND a cosine function >subroutine. You should first implement the sine function subroutine using >the program you wrote for lab #4. The cosine function should be >implemented using an appropriate trig identify to re-write the cosine as an >arguement of a sine function. Both the sine and cosine subroutines MUST >pass parameters (both input and output) on the stack. Your algorithm for >the sine was graded in lab #4. This lab will primarily grade you on your >subroutine construction and parameter passing. Grading for the extra credit >will be described below. > >WriteUp for Lab #5 > >1. how you initialized the stack and where it is in memory Look at the student's code. Some people improperly set up the stack. For example: ORG $1000 START DS.W 200 followed by LEA START,SP is not correct. The stack will use the memory below START in memory, NOT the memory above START as the student thinks. Take something like 4 points off for improper stack set-up >2. pseudocode description of cosine routine (DO NOT include the sine >function pseudo code) See #3 below. Look at pseudocode as to how they set the minus sign for Cosine(angle) = - Sine(angle-90 degrees) Take off 4 points if they simply submitted the comments on their assembly code as pseudocode. >3. mathematical basis for cosine function. Specifically list the trig >identity used. Be very careful of how the student implements the cosine function. Specifically, look for the trig formula which relates the cosine to the sine. The formula Cosine(angle) = - Sine(angle-90 degrees) is potentially a source of program error. Specifically, the issue is how the student implements the - Sine. The result of the Sine function is signed magniture convention which is not recognized by the math operations. I would suggest checking the third and fourth quadrant results of students who used this formula.

4 >4. operation of sine routine. This should include a short paragraph which >describes the process of parameter passing on the stack and the necessary >operations your subroutine must do to correctly implement parameter passing >on the stack. Your documentation MUST include a picture or drawing of the >stack (i) before the subroutine is called, and (ii) after you push your >parameters onto the stack, call the subroutine and save your parameters on >the stack with a MOVEM. Be sure to explicitly indicate the location of the >SP. A picture of the debugger screen showing the stack contents should be >included. IF YOU CANNOT DO THIS PLEASE INDICATE WHY. This could be done >through the debugger via the stack window (upper right corner), or by >directly examining the memory using a Memory Display command. HINT: >Remember the direction in which the stack grows! >5. operation of the cosine routine. Your documentation MUST include a >picture or drawing of the stack (i) before the subroutine is called, and >(ii) after you push your parameters onto the stack, call the cosine >subroutine and save your parameters on the stack with a MOVEM, pass your >parameters to the sine routine, call the sine function, and then save its >registers with a MOVEM. Be sure to explicitly indicate the location of the >SP. A picture of the debugger screen showing the stack contents should be >included. IF YOU CANNOT DO THIS PLEASE INDICATE WHY. 40 points total - 20 points for each routine Take off 8 points per part if they have no drawing or diagram of the stack contents. The student can use the debugger screen in place of a drawing or diagram. Take off 2 points for each part if they do not label their drawing, i.e. indicate what the numbers on the stack represent. It is very difficult to follow an unlabeled drawing. I would expect something which would indicate the size of the data pushed on the stack or the addresses of the various quantities. Take off 4 points per part if they do not have a debugger screen. If they say they cannot do it then that is OK and we will take no points off. The explanation should count for 8 points per part. >6. A table of hex sine and cosine values for 10 randomly chosen digital >angles plus the angles $C000 and $C points each 12x2=24 points, but I will only take off 20 points here.

5 Grade only the following unless there is another problem: angle sine cosine $6000 $2D41 $AD41 $C000 $C000 $0000 Both of these are correct with respect to sign and value. >7. listing (assembler output) of your program, take off all if it is NOT an assembler listing

UNIMPLEMENTED INSTRUCTIONS

UNIMPLEMENTED INSTRUCTIONS UNIMPLEMENTED INSTRUCTIONS OVERVIEW: This Programming Assignment will take the sine computation program you wrote for Programming Assignment #4 and implement it as a 68000 assembly language instruction.

More information

CHECKOUT: There will be a scheduled checkout for this lab beginning November 13th in the Kern Lab. Schedules will be ed to you.

CHECKOUT: There will be a scheduled checkout for this lab beginning November 13th in the Kern Lab. Schedules will be  ed to you. TRIG FUNCTIONS OVERVIEW: This laboratory will implement an interpolation routine to compute the sine and cosine of an input binary number. Input will be from a data register. You will use an interpolation

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

FLOATING POINT TANGENT AND DIVISION SUBROUTINES

FLOATING POINT TANGENT AND DIVISION SUBROUTINES FLOATING POINT TANGENT AND DIVISION SUBROUTINES OVERVIEW: This laboratory has two programming components. The first is to convert your result from the sine function into a floating point number using a

More information

Memory Usage 0x7fffffff. stack. dynamic data. static data 0x Code Reserved 0x x A software convention

Memory Usage 0x7fffffff. stack. dynamic data. static data 0x Code Reserved 0x x A software convention Subroutines Why we use subroutines more modular program (small routines, outside data passed in) more readable, easier to debug code reuse i.e. smaller code space Memory Usage A software convention stack

More information

Section 7.6 Graphs of the Sine and Cosine Functions

Section 7.6 Graphs of the Sine and Cosine Functions Section 7.6 Graphs of the Sine and Cosine Functions We are going to learn how to graph the sine and cosine functions on the xy-plane. Just like with any other function, it is easy to do by plotting points.

More information

Math 144 Activity #4 Connecting the unit circle to the graphs of the trig functions

Math 144 Activity #4 Connecting the unit circle to the graphs of the trig functions 144 p 1 Math 144 Activity #4 Connecting the unit circle to the graphs of the trig functions Graphing the sine function We are going to begin this activity with graphing the sine function ( y = sin x).

More information

Pre Calculus Worksheet: Fundamental Identities Day 1

Pre Calculus Worksheet: Fundamental Identities Day 1 Pre Calculus Worksheet: Fundamental Identities Day 1 Use the indicated strategy from your notes to simplify each expression. Each section may use the indicated strategy AND those strategies before. Strategy

More information

A Constant Rate of Change Name Part 1

A Constant Rate of Change Name Part 1 A Constant Rate of Change Name Part 1 Consider the function table below. Complete this page by solving the problems at the bottom. Use a separate sheet of paper for your descriptions and explanations.

More information

Use the indicated strategy from your notes to simplify each expression. Each section may use the indicated strategy AND those strategies before.

Use the indicated strategy from your notes to simplify each expression. Each section may use the indicated strategy AND those strategies before. Pre Calculus Worksheet: Fundamental Identities Day 1 Use the indicated strategy from your notes to simplify each expression. Each section may use the indicated strategy AND those strategies before. Strategy

More information

MIPS Programming. A basic rule is: try to be mechanical (that is, don't be "tricky") when you translate high-level code into assembler code.

MIPS Programming. A basic rule is: try to be mechanical (that is, don't be tricky) when you translate high-level code into assembler code. MIPS Programming This is your crash course in assembler programming; you will teach yourself how to program in assembler for the MIPS processor. You will learn how to use the instruction set summary to

More information

COS 116 The Computational Universe Laboratory 8: Digital Logic II

COS 116 The Computational Universe Laboratory 8: Digital Logic II COS 116 The Computational Universe Laboratory 8: Digital Logic II In this lab you ll learn that, using only AND, OR, and NOT gates, you can build a circuit that can add two numbers. If you get stuck at

More information

Grade 7 Mathematics Performance Level Descriptors

Grade 7 Mathematics Performance Level Descriptors Limited A student performing at the Limited Level demonstrates a minimal command of Ohio s Learning Standards for Grade 7 Mathematics. A student at this level has an emerging ability to work with expressions

More information

Subroutine. Chapter 8

Subroutine. Chapter 8 Chapter 8 Subroutine Expected Outcomes Describe and apply the stack for data storage Describe the process of subroutine in any programs Develop a subroutine and code Interpret subroutine process in the

More information

Precalculus: Graphs of Tangent, Cotangent, Secant, and Cosecant Practice Problems. Questions

Precalculus: Graphs of Tangent, Cotangent, Secant, and Cosecant Practice Problems. Questions Questions 1. Describe the graph of the function in terms of basic trigonometric functions. Locate the vertical asymptotes and sketch two periods of the function. y = 3 tan(x/2) 2. Solve the equation csc

More information

This unit is built upon your knowledge and understanding of the right triangle trigonometric ratios. A memory aid that is often used was SOHCAHTOA.

This unit is built upon your knowledge and understanding of the right triangle trigonometric ratios. A memory aid that is often used was SOHCAHTOA. Angular Rotations This unit is built upon your knowledge and understanding of the right triangle trigonometric ratios. A memory aid that is often used was SOHCAHTOA. sin x = opposite hypotenuse cosx =

More information

Investigating the Sine and Cosine Functions Part 1

Investigating the Sine and Cosine Functions Part 1 Investigating the Sine and Cosine Functions Part 1 Name: Period: Date: Set-Up Press. Move down to 5: Cabri Jr and press. Press for the F1 menu and select New. Press for F5 and select Hide/Show > Axes.

More information

Check In before class starts:

Check In before class starts: Name: Date: Lesson 5-3: Graphing Trigonometric Functions Learning Goal: How do I use the critical values of the Sine and Cosine curve to graph vertical shift and vertical stretch? Check In before class

More information

Lab 7 1 Due Thu., 6 Apr. 2017

Lab 7 1 Due Thu., 6 Apr. 2017 Lab 7 1 Due Thu., 6 Apr. 2017 CMPSC 112 Introduction to Computer Science II (Spring 2017) Prof. John Wenskovitch http://cs.allegheny.edu/~jwenskovitch/teaching/cmpsc112 Lab 7 - Using Stacks to Create a

More information

Linear Modeling Elementary Education 4

Linear Modeling Elementary Education 4 Linear Modeling Elementary Education 4 Mathematical modeling is simply the act of building a model (usually in the form of graphs) which provides a picture of a numerical situation. Linear Modeling is

More information

The Stack. Lecture 15: The Stack. The Stack. Adding Elements. What is it? What is it used for?

The Stack. Lecture 15: The Stack. The Stack. Adding Elements. What is it? What is it used for? Lecture 15: The Stack The Stack What is it? What is it used for? A special memory buffer (outside the CPU) used as a temporary holding area for addresses and data The stack is in the stack segment. The

More information

Introduction to Computer Engineering (E114)

Introduction to Computer Engineering (E114) Introduction to Computer Engineering (E114) Lab 7: Floating-Point Addition Introduction In this lab, you will write a MIPS assembly language function that performs floatingpoint addition You will then

More information

CW High School. Advanced Math A. 1.1 I can make connections between the algebraic equation or description for a function, its name, and its graph.

CW High School. Advanced Math A. 1.1 I can make connections between the algebraic equation or description for a function, its name, and its graph. 1. Functions and Math Models (10.00%) 1.1 I can make connections between the algebraic equation or description for a function, its name, and its graph. 4 Pro cient I can make connections between the algebraic

More information

Chapter 11 Trigonometry

Chapter 11 Trigonometry hapter 11 Trigonometry Sec. 1 Right Triangle Trigonometry The most difficult part of Trigonometry is spelling it. Once we get by that, the rest is a piece of cake. efore we start naming the trigonometric

More information

Today s objective: introduction to really simple subroutines to simplify program structure for I/O

Today s objective: introduction to really simple subroutines to simplify program structure for I/O a 1 st look procedures and functions in high level languages are modeled on subroutines typically, assembly code is very modular with the main routine less than 100 lines long Today s objective: introduction

More information

Instructions for Using the e-learning Module on Service-Learning for Students

Instructions for Using the e-learning Module on Service-Learning for Students Instructions for Using the e-learning Module on Service-Learning for Students I. Accessing the e-learning module 1.1 Login to LEARN@PolyU (https://learn.polyu.edu.hk) with your NetID and password 1.2 Under

More information

Subroutines. int main() { int i, j; i = 5; j = celtokel(i); i = j; return 0;}

Subroutines. int main() { int i, j; i = 5; j = celtokel(i); i = j; return 0;} Subroutines Also called procedures or functions Example C code: int main() { int i, j; i = 5; j = celtokel(i); i = j; return 0;} // subroutine converts Celsius to kelvin int celtokel(int i) { return (i

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

2/12/2018. Recall Why ISAs Define Calling Conventions. ECE 220: Computer Systems & Programming. Recall the Structure of the LC-3 Stack Frame

2/12/2018. Recall Why ISAs Define Calling Conventions. ECE 220: Computer Systems & Programming. Recall the Structure of the LC-3 Stack Frame University of Illinois at Urbana-Champaign Dept. of Electrical and Computer Engineering ECE 220: Computer Systems & Programming Stack Frames Revisited Recall Why ISAs Define Calling Conventions A compiler

More information

Midterm Exam Fundamentals of Computer Graphics (COMP 557) Thurs. Feb. 19, 2015 Professor Michael Langer

Midterm Exam Fundamentals of Computer Graphics (COMP 557) Thurs. Feb. 19, 2015 Professor Michael Langer Midterm Exam Fundamentals of Computer Graphics (COMP 557) Thurs. Feb. 19, 2015 Professor Michael Langer The exam consists of 10 questions. There are 2 points per question for a total of 20 points. You

More information

AP Calculus AB Summer Assignment 2018

AP Calculus AB Summer Assignment 2018 AP Calculus AB Summer Assignment 2018 Welcome to AP Calculus. In order to accomplish our goals this year, we will need to begin a little in the summer. Your Algebra skills are important in Calculus. Things

More information

LESSON 1: Trigonometry Pre-test

LESSON 1: Trigonometry Pre-test LESSON 1: Trigonometry Pre-test Instructions. Answer each question to the best of your ability. If there is more than one answer, put both/all answers down. Try to answer each question, but if there is

More information

FSA Geometry EOC Practice Test Guide

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

More information

MATH EXAM 1 - SPRING 2018 SOLUTION

MATH EXAM 1 - SPRING 2018 SOLUTION MATH 140 - EXAM 1 - SPRING 018 SOLUTION 8 February 018 Instructor: Tom Cuchta Instructions: Show all work, clearly and in order, if you want to get full credit. If you claim something is true you must

More information

CMPSCI 201 Fall 2005 Midterm #2 Solution

CMPSCI 201 Fall 2005 Midterm #2 Solution CMPSCI 201 Fall 2005 Midterm #2 Solution Professor William T. Verts 10 Points Convert the decimal number -47.375 into (a) binary scientific notation (i.e., ±1.xxxx 2 Y ), and (b) the equivalent binary

More information

Programming Model 2 A. Introduction

Programming Model 2 A. Introduction Programming Model 2 A. Introduction Objectives At the end of this lab you should be able to: Use direct and indirect addressing modes of accessing data in memory Create an iterative loop of instructions

More information

1/30/2018. Conventions Provide Implicit Information. ECE 220: Computer Systems & Programming. Arithmetic with Trees is Unambiguous

1/30/2018. Conventions Provide Implicit Information. ECE 220: Computer Systems & Programming. Arithmetic with Trees is Unambiguous University of Illinois at Urbana-Champaign Dept. of Electrical and Computer Engineering ECE 220: Computer Systems & Programming The Stack Abstraction Conventions Provide Implicit Information What does

More information

Section 4.1: Introduction to Trigonometry

Section 4.1: Introduction to Trigonometry Section 4.1: Introduction to Trigonometry Review of Triangles Recall that the sum of all angles in any triangle is 180. Let s look at what this means for a right triangle: A right angle is an angle which

More information

2.3 Circular Functions of Real Numbers

2.3 Circular Functions of Real Numbers www.ck12.org Chapter 2. Graphing Trigonometric Functions 2.3 Circular Functions of Real Numbers Learning Objectives Graph the six trigonometric ratios as functions on the Cartesian plane. Identify the

More information

DOWNLOAD PDF BIG IDEAS MATH VERTICAL SHRINK OF A PARABOLA

DOWNLOAD PDF BIG IDEAS MATH VERTICAL SHRINK OF A PARABOLA Chapter 1 : BioMath: Transformation of Graphs Use the results in part (a) to identify the vertex of the parabola. c. Find a vertical line on your graph paper so that when you fold the paper, the left portion

More information

Trigonometry and the Unit Circle. Chapter 4

Trigonometry and the Unit Circle. Chapter 4 Trigonometry and the Unit Circle Chapter 4 Topics Demonstrate an understanding of angles in standard position, expressed in degrees and radians. Develop and apply the equation of the unit circle. Solve

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

Worksheet 5. 3 Less trigonometry and more dishonesty/linear algebra knowledge Less trigonometry, less dishonesty... 4

Worksheet 5. 3 Less trigonometry and more dishonesty/linear algebra knowledge Less trigonometry, less dishonesty... 4 Worksheet 5 Contents 1 Just look at the book, on page 74 1 2 Trigonometry and honesty 1 3 Less trigonometry and more dishonesty/linear algebra knowledge 3 3.1 Less trigonometry, less dishonesty...............................

More information

Lesson #64 First Degree Trigonometric Equations

Lesson #64 First Degree Trigonometric Equations Lesson #64 First Degree Trigonometric Equations A2.A.68 Solve trigonometric equations for all values of the variable from 0 to 360 How is the acronym ASTC used in trigonometry? If I wanted to put the reference

More information

CSE 220: System Fundamentals I Unit 14: MIPS Assembly: Multi-dimensional Arrays. Kevin McDonnell Stony Brook University CSE 220

CSE 220: System Fundamentals I Unit 14: MIPS Assembly: Multi-dimensional Arrays. Kevin McDonnell Stony Brook University CSE 220 CSE 220: System Fundamentals I Unit 14: MIPS Assembly: Multi-dimensional Arrays 1 Memory Alignment Perhaps at some point in your MIPS assembly programming you tried to perform a lw and received an error

More information

Math 21 Home. Book 9: Triangles. Name:

Math 21 Home. Book 9: Triangles. Name: Math 21 Home Book 9: Triangles Name: Start Date: Completion Date: Year Overview: Earning and Spending Money Home Travel and Transportation Recreation and Wellness 1. Budget 2. Personal Banking 3. Interest

More information

1. The circle below is referred to as a unit circle. Why is this the circle s name?

1. The circle below is referred to as a unit circle. Why is this the circle s name? Right Triangles and Coordinates on the Unit Circle Learning Task: 1. The circle below is referred to as a unit circle. Why is this the circle s name? Part I 2. Using a protractor, measure a 30 o angle

More information

1. Let be a point on the terminal side of θ. Find the 6 trig functions of θ. (Answers need not be rationalized). b. P 1,3. ( ) c. P 10, 6.

1. Let be a point on the terminal side of θ. Find the 6 trig functions of θ. (Answers need not be rationalized). b. P 1,3. ( ) c. P 10, 6. Q. Right Angle Trigonometry Trigonometry is an integral part of AP calculus. Students must know the basic trig function definitions in terms of opposite, adjacent and hypotenuse as well as the definitions

More information

Lesson 9-5: Trigonometry and Area

Lesson 9-5: Trigonometry and Area Pulling it together If I gave you a picture of a regular polygon, could you label the center, radius, apothem, center angle and side? Give it a go, try it with a heagon. If you follow this link, you will

More information

Grade 8 FSA Mathematics Practice Test Guide

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

More information

Subroutines and the Stack

Subroutines and the Stack 3 31 Objectives: A subroutine is a reusable program module A main program can call or jump to the subroutine one or more times The stack is used in several ways when subroutines are called In this lab

More information

Digital Lab Reports. Guide for 1250 Students

Digital Lab Reports. Guide for 1250 Students Digital Lab Reports Guide for 1250 Students 1 Use Microsoft Word to prepare your report. Some requirements: Word files (.docx) or PDFs (.pdf) are required. The Office of the CIO offers a free download

More information

Chapter 1 Operations With Numbers

Chapter 1 Operations With Numbers Chapter 1 Operations With Numbers Part I Negative Numbers You may already know what negative numbers are, but even if you don t, then you have probably seen them several times over the past few days. If

More information

Graphing functions by plotting points. Knowing the values of the sine function for the special angles.

Graphing functions by plotting points. Knowing the values of the sine function for the special angles. Spaghetti Sine Graphs Summary In this lesson, students use uncooked spaghetti and string to measure heights on the unit circle and create the graph of the y = sin(x). This is a great lesson to help students

More information

Higher. The Wave Equation. The Wave Equation 146

Higher. The Wave Equation. The Wave Equation 146 Higher Mathematics UNIT OUTCOME 4 The Wave Equation Contents The Wave Equation 146 1 Expressing pcosx + qsinx in the form kcos(x a 146 Expressing pcosx + qsinx in other forms 147 Multiple Angles 148 4

More information

a b c d a b c d e 5 e 7

a b c d a b c d e 5 e 7 COMPSCI 230 Homework 9 Due on April 5, 2016 Work on this assignment either alone or in pairs. You may work with different partners on different assignments, but you can only have up to one partner for

More information

Walt Whitman High School SUMMER REVIEW PACKET. For students entering AP CALCULUS BC

Walt Whitman High School SUMMER REVIEW PACKET. For students entering AP CALCULUS BC Walt Whitman High School SUMMER REVIEW PACKET For students entering AP CALCULUS BC Name: 1. This packet is to be handed in to your Calculus teacher on the first day of the school year.. All work must be

More information

MATH STUDENT BOOK. 12th Grade Unit 4

MATH STUDENT BOOK. 12th Grade Unit 4 MATH STUDENT BOOK th Grade Unit Unit GRAPHING AND INVERSE FUNCTIONS MATH 0 GRAPHING AND INVERSE FUNCTIONS INTRODUCTION. GRAPHING 5 GRAPHING AND AMPLITUDE 5 PERIOD AND FREQUENCY VERTICAL AND HORIZONTAL

More information

hp calculators HP 50g Hyperbolic functions The MTH (MATH) menu Hyperbolic trigonometric functions Practice using hyperbolic trigonometric functions

hp calculators HP 50g Hyperbolic functions The MTH (MATH) menu Hyperbolic trigonometric functions Practice using hyperbolic trigonometric functions The MTH (MATH) menu Hyperbolic trigonometric functions Practice using hyperbolic trigonometric functions The MTH (MATH) menu The Math menu is accessed from the WHITE shifted function of the Pkey by pressing!.

More information

Chapter 15 Right Triangle Trigonometry

Chapter 15 Right Triangle Trigonometry Chapter 15 Right Triangle Trigonometry Sec. 1 Right Triangle Trigonometry The most difficult part of Trigonometry is spelling it. Once we get by that, the rest is a piece of cake. efore we start naming

More information

Chapter 7 Subroutines. Richard P. Paul, SPARC Architecture, Assembly Language Programming, and C

Chapter 7 Subroutines. Richard P. Paul, SPARC Architecture, Assembly Language Programming, and C Chapter 7 Subroutines Richard P. Paul, SPARC Architecture, Assembly Language Programming, and C 2 Subroutines Subroutines allow us to either to repeat a computation or to repeat the computation with different

More information

Questions Total Points Score

Questions Total Points Score HKUST Department of Computer Science and Engineering # COMP3711H: Honors Design and Analysis of Algorithms Fall 2016 Midterm Examination Date: Thursday, Oct. 20, 2016 Time: 19:00 21:00 Venue: Room 2304

More information

Graphing Trig Functions - Sine & Cosine

Graphing Trig Functions - Sine & Cosine Graphing Trig Functions - Sine & Cosine Up to this point, we have learned how the trigonometric ratios have been defined in right triangles using SOHCAHTOA as a memory aid. We then used that information

More information

Geometry Sixth Grade

Geometry Sixth Grade Standard 6-4: The student will demonstrate through the mathematical processes an understanding of shape, location, and movement within a coordinate system; similarity, complementary, and supplementary

More information

ENGR Socolofsky

ENGR Socolofsky ENGR 102-213 - Socolofsky Date : due 9/3/2018 at 12:40 p.m. Engineering Lab I - Computation Lab Assignment #01b Writing Your Own Programs Return your solution (one per group) as outlined in the activities

More information

Trigonometry

Trigonometry Trigonometry - 020171 Department: Math Level: Standard Length of Class: Semester Number of Credits: 1 Grades: 11-12 Prerequisites: Algebra 2 Application Needed: No College credit available: No Credit completion

More information

Lab 4 : MIPS Function Calls

Lab 4 : MIPS Function Calls Lab 4 : MIPS Function Calls Name: Sign the following statement: On my honor, as an Aggie, I have neither given nor received unauthorized aid on this academic work 1 Objective The objective of this lab

More information

Math 26: Fall (part 1) The Unit Circle: Cosine and Sine (Evaluating Cosine and Sine, and The Pythagorean Identity)

Math 26: Fall (part 1) The Unit Circle: Cosine and Sine (Evaluating Cosine and Sine, and The Pythagorean Identity) Math : Fall 0 0. (part ) The Unit Circle: Cosine and Sine (Evaluating Cosine and Sine, and The Pthagorean Identit) Cosine and Sine Angle θ standard position, P denotes point where the terminal side of

More information

stack frame where register An is used as the argument pointer.

stack frame where register An is used as the argument pointer. STACK FRAMES The MC68000 provides two special instructions to allocate and deallocate a data structure called a frame in the stack to make subroutines easier to code. general structure of a frame: SP local

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

An Introduction to Komodo

An Introduction to Komodo An Introduction to Komodo The Komodo debugger and simulator is the low-level debugger used in the Digital Systems Laboratory. Like all debuggers, Komodo allows you to run your programs under controlled

More information

SPIRIT 2.0 Lesson: Amazing Consistent Ratios

SPIRIT 2.0 Lesson: Amazing Consistent Ratios SPIRIT 2.0 Lesson: Amazing Consistent Ratios ==============================Lesson Header ============================== Lesson Title: Amazing Consistent Ratios Draft Date: June 11, 2008 1st Author (Writer):

More information

Instruction Set Architectures (4)

Instruction Set Architectures (4) Computer Architecture Week 06 Instruction Set Architectures (4) College of Information Science and Engineering Ritsumeikan University subroutines functions, procedures remember the next instruction s address

More information

Name Period Date MATHLINKS GRADE 8 STUDENT PACKET 3 PATTERNS AND LINEAR FUNCTIONS 1

Name Period Date MATHLINKS GRADE 8 STUDENT PACKET 3 PATTERNS AND LINEAR FUNCTIONS 1 Name Period Date 8-3 STUDENT PACKET MATHLINKS GRADE 8 STUDENT PACKET 3 PATTERNS AND LINEAR FUNCTIONS 1 3.1 Geometric Patterns Describe sequences generated by geometric patterns using tables, graphs, and

More information

Lab Cover Page. Lab Date and Time: Teaching Assistant to whom you are submitting

Lab Cover Page. Lab Date and Time: Teaching Assistant to whom you are submitting Student Information First Name School of Computer Science Faculty of Engineering and Computer Science Last Name Student ID Number Lab Cover Page Please complete all fields: Course Name: Structure and Application

More information

Calculus II. Step 1 First, here is a quick sketch of the graph of the region we are interested in.

Calculus II. Step 1 First, here is a quick sketch of the graph of the region we are interested in. Preface Here are the solutions to the practice problems for my Calculus II notes. Some solutions will have more or less detail than other solutions. As the difficulty level of the problems increases less

More information

Rational Numbers: Graphing: The Coordinate Plane

Rational Numbers: Graphing: The Coordinate Plane Rational Numbers: Graphing: The Coordinate Plane A special kind of plane used in mathematics is the coordinate plane, sometimes called the Cartesian plane after its inventor, René Descartes. It is one

More information

EE 314 Spring 2003 Microprocessor Systems

EE 314 Spring 2003 Microprocessor Systems EE 314 Spring 2003 Microprocessor Systems Laboratory Project #3 Arithmetic and Subroutines Overview and Introduction Review the information in your textbook (pp. 115-118) on ASCII and BCD arithmetic. This

More information

Lab 2 Use Traps. Lab 2 Input and Output 2 nd Semester. Lab 2 English. Lab 2 Pseudocode

Lab 2 Use Traps. Lab 2 Input and Output 2 nd Semester. Lab 2 English. Lab 2 Pseudocode Lab 2 Input and Output Lab 2 Use Traps Write (i.e. design and implement) an assembly language program that will accept user input from the keyboard and echo this to the terminal screen. Input should terminate

More information

CS 2504 Intro Computer Organization Test 1

CS 2504 Intro Computer Organization Test 1 Instructions: Print your name in the space provided below. This examination is closed book and closed notes, aside from the permitted one-page formula sheet and the MIPS reference card. No calculators

More information

Option: Using an Anchor Activity

Option: Using an Anchor Activity Everyday Math DRAFT Grade 5 Unit 2 Option: Using an Anchor Activity The purpose of an anchor activity is to reinforce, deepen, and extend students understanding of the concepts presented in a unit. It

More information

y= sin( x) y= cos( x)

y= sin( x) y= cos( x) . The graphs of sin(x) and cos(x). Now I am going to define the two basic trig functions: sin(x) and cos(x). Study the diagram at the right. The circle has radius. The arm OP starts at the positive horizontal

More information

EE 3170 Microcontroller Applications

EE 3170 Microcontroller Applications EE 3170 Microcontroller Applications Lecture 12: Advanced Assembly Language Programming Part II- Stacks Calling Conventions & Base Pointer Usage & Subroutine Examples - Miller 5.5-5.7 Based on slides for

More information

ECE 109 Sections 602 to 605 Final exam Fall December, 2007

ECE 109 Sections 602 to 605 Final exam Fall December, 2007 ECE 109 Sections 602 to 605 Final exam Fall 2007 13 December, 2007 This is a closed book and closed notes exam. Calculators, PDA's, cell phones, and any other electronic or communication devices may not

More information

Introduction to Microsoft Excel Parts of the Screen

Introduction to Microsoft Excel Parts of the Screen Introduction to Microsoft Excel Parts of the Screen UNIT OUTCOME: Students will be able to use a spreadsheet to record, organize, and format text and numerical data. Define the Term Spreadsheet: A spreadsheet

More information

COMP 250 Fall Homework #4

COMP 250 Fall Homework #4 COMP 250 Fall 2015 - Homework #4 Due on November 11 th at 23:59 (strict). Your solution must be returned electronically on MyCourse. The only format accepted for written answers is PDF. PDF files must

More information

CS 2506 Computer Organization II Test 1

CS 2506 Computer Organization II Test 1 Instructions: Print your name in the space provided below. This examination is closed book and closed notes, aside from the permitted one-page formula sheet. No calculators or other computing devices may

More information

BIG IDEAS. A.REI.D.10: Interpret Graphs as Sets of Solutions. Lesson Plan

BIG IDEAS. A.REI.D.10: Interpret Graphs as Sets of Solutions. Lesson Plan A.REI.D.10: Interpret Graphs as Sets of Solutions EQUATIONS AND INEQUALITIES A.REI.D.10: Interpret Graphs as Sets of Solutions D. Represent and solve equations and inequalities graphically. 10. Understand

More information

Review of Trigonometry

Review of Trigonometry Worksheet 8 Properties of Trigonometric Functions Section Review of Trigonometry This section reviews some of the material covered in Worksheets 8, and The reader should be familiar with the trig ratios,

More information

Unit R Student Success Sheet (SSS) Trigonometric Identities Part 2 (section 5.4)

Unit R Student Success Sheet (SSS) Trigonometric Identities Part 2 (section 5.4) Unit R Student Success Sheet (SSS) Trigonometric Identities Part 2 (section 5.4) Standards: Trig 10.0 Segerstrom High School -- Math Analysis Honors Name: Period: Thinkbinder Study Group: www.bit.ly/chatunitr

More information

Module 8: Atmega32 Stack & Subroutine. Stack Pointer Subroutine Call function

Module 8: Atmega32 Stack & Subroutine. Stack Pointer Subroutine Call function Module 8: Atmega32 Stack & Subroutine Stack Pointer Subroutine Call function Stack Stack o Stack is a section of RAM used by the CPU to store information temporarily (i.e. data or address). o The CPU needs

More information

CS 2210 Programming Project (Part IV)

CS 2210 Programming Project (Part IV) CS 2210 Programming Project (Part IV) April 25, 2018 Code Generation This project is intended to give you experience in writing a code generator as well as bring together the various issues of code generation

More information

The terminal display function can be done using HexOut.

The terminal display function can be done using HexOut. INTERRUPT TIMED CLOCK ABSTRACT: This laboratory will introduce the student to the generation of interrupts (using a programmable timer), the handling of an interrupt, and the priority of interrupts. This

More information

Separate Text Across Cells The Convert Text to Columns Wizard can help you to divide the text into columns separated with specific symbols.

Separate Text Across Cells The Convert Text to Columns Wizard can help you to divide the text into columns separated with specific symbols. Chapter 7 Highlights 7.1 The Use of Formulas and Functions 7.2 Creating Charts 7.3 Using Chart Toolbar 7.4 Changing Source Data of a Chart Separate Text Across Cells The Convert Text to Columns Wizard

More information

Skittles Excel Project

Skittles Excel Project Skittles Excel Project Entering Your Data and Creating Data Displays 1. Open Microsoft Excel 2. Create a table for your Skittles colors: a. In cell A1 type in a title for your chart b. In cell A2 type

More information

ENSC E-123: Homework D10: Counter as Peripheral

ENSC E-123: Homework D10: Counter as Peripheral Homework D10, Counter as Peripheral 1 REV 4 1 ; April 9, 2015 ENSC E-123: Homework D10: Counter as Peripheral Contents 1 Counter as Peripheral (9 points, total) 1 1.1 Computer-driven Load* Switch, to Clear

More information

Writeup for first project of CMSC 420: Data Structures Section 0102, Summer Theme: Threaded AVL Trees

Writeup for first project of CMSC 420: Data Structures Section 0102, Summer Theme: Threaded AVL Trees Writeup for first project of CMSC 420: Data Structures Section 0102, Summer 2017 Theme: Threaded AVL Trees Handout date: 06-01 On-time deadline: 06-09, 11:59pm Late deadline (30% penalty): 06-11, 11:59pm

More information

Lab 4 Prelab: MIPS Function Calls

Lab 4 Prelab: MIPS Function Calls Lab 4 Prelab: MIPS Function Calls Name: Sign the following statement: On my honor, as an Aggie, I have neither given nor received unauthorized aid on this academic work 1 Objective The main objective of

More information

Family of Functions Lesson

Family of Functions Lesson Family of Functions Lesson Introduction: Show pictures of family members to illustrate that even though family members are different (in most cases) they have very similar characteristics (DNA). Today

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