Copyright © 2005. The McGraw-Hill Companies, Inc. Permission required for reproduction or display. A Concise Introduction to MATLAB ® William J. Palm III.

Slides:



Advertisements
Similar presentations
Inverse Trigonometric Functions
Advertisements

The Inverse Trigonometric Functions Section 4.2. Objectives Find the exact value of expressions involving the inverse sine, cosine, and tangent functions.
ENGR-25_Functions-2.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
Copyright © Cengage Learning. All rights reserved. Trigonometric Functions: Unit Circle Approach.
Pre calculus Problem of the Day Homework: p odds, odds, odds On the unit circle name all indicated angles by their first positive.
Hyperbolic Functions.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Introduction to MATLAB 7 for Engineers William J. Palm.
Inverse Hyperbolic Functions. The Inverse Hyperbolic Sine, Inverse Hyperbolic Cosine & Inverse Hyperbolic Tangent.
Introduction to Matlab. Entering Commands Constants and Functions >> pi ans = >> eps ans = e-016 >> sin(pi/2) ans = 1 >> log(1000) ans =
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Introduction to MATLAB 7 for Engineers William J. Palm.
5.1 Inverse sine, cosine, and tangent
Inverse Functions. Inverse Relations The inverse of a relation is the set of ordered pairs obtained by switching the input with the output of each ordered.
6.3 – Trig Identities.
Trigonometric Functions Of Real Numbers
Objectives ► The Inverse Sine Function ► The Inverse Cosine Function ► The Inverse Tangent Function ► The Inverse Secant, Cosecant, and Cotangent Functions.
Builtin and user defined functions
5.1 Trigonometric Functions of Acute Angles Fri Oct 17 Do Now Solve for x 1) 1^2 + x^2 = 2^2 2) x^2 + x^2 = 1.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Introduction to MATLAB 7 for Engineers William J. Palm.
Section 6.1 Inverse Trig Functions Section 6.2 Trig Equations I Section 6.3 Trig Equations II Section 6.4 Equations Chapter 6 Inverse Trig Functions and.
Copyright © 2005 Pearson Education, Inc.. Chapter 6 Inverse Circular Functions and Trigonometric Equations.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Introduction to MATLAB 7 for Engineers William J. Palm.
Introduction to Engineering MATLAB – 1 Introduction to MATLAB Agenda Introduction Arithmetic Operations MATLAB Windows Command Window Defining Variables.
1 Functions ผศ. ดร. อนันต์ ผลเพิ่ม Anan Phonphoem
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
1 © 2010 Pearson Education, Inc. All rights reserved © 2010 Pearson Education, Inc. All rights reserved Chapter 4 Trigonometric Functions.
M A T L A B Eng. Osama Talaat Faculty of Engineering, Zagazig University, Egypt
STANDARD FUNCTIONS Computer Programming Asst. Prof. Dr. Choopan Rattanapoka and Asst. Prof. Dr. Suphot Chunwiphat.
Copyright © Cengage Learning. All rights reserved. Trigonometric Functions: Unit Circle Approach.
13.7 (part 2) answers 34) y = cos (x – 1.5) 35) y = cos (x + 3/(2π)) 36) y = sin x –3π 37) 38) y = sin (x – 2) –4 39) y = cos (x +3) + π 40) y = sin (x.
Graphs of Other Trigonometric Functions
Graphs of the Trig Functions Objective To use the graphs of the trigonometric functions.
Visual Basic I Programming
Introduction to MATLAB for Engineers, Third Edition William J. Palm III Chapter 3 Functions and Files PowerPoint to accompany Copyright © The McGraw-Hill.
C++ Programming Lecture 9 Functions – Part I By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
1 © 2011 Pearson Education, Inc. All rights reserved 1 © 2010 Pearson Education, Inc. All rights reserved © 2011 Pearson Education, Inc. All rights reserved.
Section 7.4 Inverses of the Trigonometric Functions Copyright ©2013, 2009, 2006, 2001 Pearson Education, Inc.
Limits Involving Trigonometric Functions
Describe the vertical shift in the graph of y = -2sin3x + 4. A.) Up 2 B.) Down 2 C.) Up 4 D.) Down 4.
8-3 Trigonometry Part 2: Inverse Trigonometric Functions.
Reviewing Trigonometry Angle Measure Quadrant Express as a function of a positive acute angle Evaluate Find the angle Mixed Problems.
A Concise Introduction to MATLAB®
Introduction to MATLAB 7
Inverse Trigonometric Functions
Copyright © 2017, 2013, 2009 Pearson Education, Inc.
Analytic Trigonometry
Arithmetic Operations
Inverse Trigonometric Functions
Introduction to the Six Trigonometric Functions & the Unit Circle
Numeric, Cell and Structural Arrays One of the strenghts of MATLAB is the capabilty to handle collection of numbers called ARRAYS. MATLAB refers to scalars,
ECE 1304 Introduction to Electrical and Computer Engineering
Matlab Introduction.
Built-in MATLAB Functions Chapter 3
BIL 104E Introduction to Scientific and Engineering Computing
Computer Simulation Lab
MATH 1330 Section 5.1.
Graphs of Other Trigonometric Functions 11-2
Copyright © Cengage Learning. All rights reserved.
Right Triangle Ratios Chapter 6.
Graphs of Other Trigonometric Functions 11-2
Right Triangle Ratios Chapter 6.
Graphing Other Trig. Functions
Graphs of Other Trigonometric Functions 11-2
Graph of Secant, Cosecant, and Cotangent
The Inverse Trigonometric Functions (Continued)
Graphs of Other Trigonometric Functions 14-2
Precalculus Essentials
Academy Algebra II THE UNIT CIRCLE.
Computer Simulation Lab
Section 4.7.
Copyright © Cengage Learning. All rights reserved.
Presentation transcript:

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. A Concise Introduction to MATLAB ® William J. Palm III Chapter 3 Built In Functions PowerPoint to accompany

Section 3.1 Elementary Functions Getting Help for Functions: You can use the lookfor command to find functions that are relevant to your application. For example, type lookfor imaginary to get a list of the functions that deal with imaginary numbers. You will see listed: imag Complex imaginary part i Imaginary unit j Imaginary unit 3-2More? See pages

Exponential exp(x) sqrt(x) Logarithmic log(x) log10(x) Exponential; e x Square root;  x Natural logarithm; ln x Common (base 10) logarithm; log x = log 10 x (continued…) Some common mathematical functions: Table 3.1–1 3-3

Some common mathematical functions (continued) Complex abs(x) angle(x) conj(x) imag(x) real(x) Absolute value. Angle of a complex number. Complex conjugate. Imaginary part of a complex number. Real part of a complex number. (continued…) 3-4

Some common mathematical functions (continued) Numeric ceil(x) fix(x) floor(x) round(x) sign(x) Round to nearest integer toward ∞. Round to nearest integer toward zero. Round to nearest integer toward -∞. Round toward nearest integer. Signum function: +1 if x > 0; 0 if x = 0; -1 if x < More? See pages

Operations on Arrays MATLAB will treat a variable as an array automatically. For example, to compute the square roots of 5, 7, and 15, type >>x = [5,7,15]; >>y = sqrt(x) y =

Expressing Function Arguments We can write sin 2 in text, but MATLAB requires parentheses surrounding the 2 (which is called the function argument or parameter). Thus to evaluate sin 2 in MATLAB, we type sin(2). The MATLAB function name must be followed by a pair of parentheses that surround the argument. To express in text the sine of the second element of the array x, we would type sin[x(2)]. However, in MATLAB you cannot use square brackets or braces in this way, and you must type sin(x(2)) (continued …)

Expressing Function Arguments (continued) To evaluate sin(x 2 + 5), you type sin(x.^2 + 5). To evaluate sin(  x+1), you type sin(sqrt(x)+1). Using a function as an argument of another function is called function composition. Be sure to check the order of precedence and the number and placement of parentheses when typing such expressions. Every left-facing parenthesis requires a right-facing mate. However, this condition does not guarantee that the expression is correct! 3-11

Expressing Function Arguments (continued) Another common mistake involves expressions like sin 2 x, which means (sin x) 2. In MATLAB we write this expression as (sin(x))^2, not as sin^2(x), sin^2x, sin(x^2), or sin(x)^2 ! 3-12

Expressing Function Arguments (continued) The MATLAB trigonometric functions operate in radian mode. Thus sin(5) computes the sine of 5 rad, not the sine of 5°. To convert between degrees and radians, use the relation q radians = (pi /180)q degrees. 3-13More? See pages

cos(x) cot(x) csc(x) sec(x) sin(x) tan(x) Cosine; cos x. Cotangent; cot x. Cosecant; csc x. Secant; sec x. Sine; sin x. Tangent; tan x. Trigonometric functions: Table 3.1–2 3-14

Inverse Trigonometric functions: Table 3.1–2 acos(x) acot(x) acsc(x) asec(x) asin(x) atan(x) atan2(y,x) Inverse cosine; arccos x. Inverse cotangent; arccot x. Inverse cosecant; arccsc x. Inverse secant; arcsec x. Inverse sine; arcsin x. Inverse tangent; arctan x. Four-quadrant inverse tangent. 3-15

Hyperbolic cosine Hyperbolic cotangent. Hyperbolic cosecant Hyperbolic secant Hyperbolic sine Hyperbolic tangent cosh(x) coth(x) csch(x) sech(x) sinh(x) tanh(x) Hyperbolic functions: Table 3.1–3 3-16

Inverse Hyperbolic functions: Table 3.1–3 acosh(x) acoth(x) acsch(x) asech(x) asinh(x) atanh(x) Inverse hyperbolic cosine Inverse hyperbolic cotangent Inverse hyperbolic cosecant Inverse hyperbolic secant Inverse hyperbolic sine Inverse hyperbolic tangent; 3-17