Q1 Write a code to implement bisection method so that, given any continuous function f(x), it can (i) Count the number of roots in a domain [a,b]. (ii)

Slides:



Advertisements
Similar presentations
I.1 ii.2 iii.3 iv.4 1+1=. i.1 ii.2 iii.3 iv.4 1+1=
Advertisements

I.1 ii.2 iii.3 iv.4 1+1=. i.1 ii.2 iii.3 iv.4 1+1=
7.1 Area of a Region Between Two Curves.
2.1 Functions and their Graphs p. 67. Assignment Pp #5-48 all.
Section 5.3: Finding the Total Area Shaded Area = ab y = f(x) x y y = g(x) ab y x Shaded Area =
12.2 Functions and Graphs F(X) = x+4 where the domain is {-2,-1,0,1,2,3}
Drill #16 List the relation (set of ordered pairs) and the domain and range of the following mapping: 1. Graph the following relation, state the domain.
Functions A function is a relationship between two sets: the domain (input) and the range (output) DomainRange Input Output This.
Sec. 1.3 – 1.4 Functions and Their Graphs
Bellwork: Graph each line: 1. 3x – y = 6 2. Y = -1/2 x + 3 Y = -2
2.1 Functions and their Graphs page 67. Learning Targets I can determine whether a given relations is a function. I can represent relations and function.
1 © 2010 Pearson Education, Inc. All rights reserved © 2010 Pearson Education, Inc. All rights reserved Chapter 4 Exponential and Logarithmic Functions.
Drill #16 List the relation (set of ordered pairs) and the domain and range of the following mapping: Draw a mapping, and state the domain and range.
1 Solve each: 1. 5x – 7 > 8x |x – 5| < 2 3. x 2 – 9 > 0 :
WARM UP: h(x)=f(g(x)). Identify f(x) and g(x). 1. h(x)=sin(2x) 2. h(x)=(x 2 +2) 1\2 3. If h(x)=f(g(j(x))), identify f(x), g(x) and j(x): h(x)=cos 2 (sinx)
Inverse Functions.
Graphing Cubed Roots Without a Calculator Objective: You should be able to graph cubed root functions (including their changes) without a calculator.
Honors Alg2 / Trig - Chapter 2 Miss Magee / Fall 2007 (graph paper will be needed for this chapter)
Review finding inverses and composite functions using square roots To find an inverse mathamaticaly there is one simple rule: Switch the x and y XY.
Drill #10 List the relation (set of ordered pairs) and the domain and range of the following mapping: 1. Find the value of the following if f(x) = 2.f(
2.1 Functions and their Graphs Standard: Students will understand that when a element in the domain is mapped to a unique element in the range, the relation.
5.3 Part 1 Trig Graphs A function is periodic if its values repeat in a cycle. Sin and Cos functions repeat their values in a regular fashion. Since.
4.1 NOTES. x-Axis – The horizontal line on the coordinate plane where y=0. y-Axis – The vertical line on the coordinate plane where x=0.
Objectives: 1. Be able to find the Euler Number. 2.Be simplify expressions using the Natural base (with a calculator also) 3.Be able to graph a Natural.
REVIEW. A. All real numbers B. All real numbers, x ≠ -5 and x ≠ -2 C. All real numbers, x ≠ 2 D. All real numbers, x ≠ 5 and x ≠ 2.
Area of R = [g(x) – f(x)] dx
Simplify the expression.
Chapter 5 Numerical Root Findings
Graphs and Applications of Linear Equations
Area of a Region Between Two Curves (7.1)
LECTURE 4 OF SOLUTIONS OF NON-LINEAR EQUATIONS OBJECTIVES
1-6 Relations Goals: Represent relations as tables, ordered pairs, graphs and mappings. Eligible Content: A / A / A / A
Functions Part I Recap.
Functions and their Graphs
2.1 Relations and Functions
2.1 Functions and their Graphs
Functions Learning Objectives To understand function notation
3.1 Graphing.
Intro to Functions.
Graphs of Sine and Cosine Functions
Time to take notes. So have paper and pen in front of you
INVERSE FUNCTIONS.
The Fundamental Theorems of Calculus
Introduction to the coordinate Plane
Finding the Area Between Curves
Graphing Square Root Functions
The sine function.
Roots of equations Class IX.
Section 1.5 Inverse Functions
MATH 1330 Section 5.2.
Relations and Function
Rational Functions II: Analyzing Graphs
MATH 1330 Section 5.2.
Inverse Functions.
Sinusoidal Functions.
September 30, 2011 At the end of today, you will be able to: Analyze and graph relations. Find functional values. Warm-up: Evaluate the expression if:
Notes 4.6 – Graphs of Composite Trig Functions
1.2 Analyzing Graphs of Functions and Relations
Exponential Functions and Their Graphs
Graph Basics. Graph Basics Y vertical axis X horizontal axis.
4.1 – Graphs of the Sine and Cosine Functions
2.1 Represent Relations and Functions
1-6 Relations Goals: Represent relations as tables, ordered pairs, graphs and mappings. Eligible Content: A / A / A / A
Mrs.Volynskaya Relations Domain Range
5.1 Functions and their Graphs
Ch. 8 – Applications of Definite Integrals
Exponential Functions and Their Graphs
2.1 Represent Relations & Functions
f(x) g(x) x x (-8,5) (8,4) (8,3) (3,0) (-4,-1) (-7,-1) (3,-2) (0,-3)
FUNCTIONS & THEIR GRAPHS
Presentation transcript:

Q1 Write a code to implement bisection method so that, given any continuous function f(x), it can (i) Count the number of roots in a domain [a,b]. (ii) Evaluate each of these roots one by one in sequence. Try your code on the following functions (i) f(x) = ex − x − 2, for all x. (ii) f(x) = x3 + 2x2 − 3x − 1, for all x (iii) f(x) = (1/x) sin x, for -3π ≤ x ≤ 3π. (iv) f(x) = tan(πx) − x − 6, for -3π ≤ x ≤ 3π. Use ε = 0.001. You code is suppose to be able to find out the roots in all the functions automatically and without manual intervention.

Repeat Q1 for Newton-Ralpson method.

Q3 Given the functions f and g, find all the points (x,y) at which both curves intersect. Method: Mathematica built-in functions FindRoot or Nsolve. You should display these function before finding their roots. f(x) = (1/x) sin(x), g(x)= (1/x) sin(x - 1.45 π), for all -3π ≤ x ≤ 3π.

Q4 Consider the function f(x)= x sin(4x) for the interval -4π ≤ x ≤ 4π, and a horizontal line y(x)=h. Plot the functions on the same graph for any given value of real h. Write a Mathematica code that automatically counts the number of points, N, the y(x)=h line intersect with f(x) for any given real value of h. Hence, plot the number of intersection N as a function of h for all real value of h.