[22] Problem 2 Find all value of x Є [0, 1] such that f(x) = 0 for f(x) = −0.000216747 +0.0072868x − 0.0977383x² + 0.664685׳ – 2.40773x² +4.46766x5 – 3.7091xº + x³ Make sure your answers are at most 10−6 away from the real solution. 1 def f(x): 2 34 return -0.000216747 + 0.0072868*x -0.0977383*x**2 + 0.664685*x**3· - · \ · · ·|· · · ·|· · · · 2.40773*x**4 + 4.46766*x**5 · - ·3.7091*x**6 + x**7 2.1) Find all the local minima and maxima of the above function. How do you figure out whether it is a local maximum or local minimum 1 [ ] + Code + Markdown 2.2) What is the global maximum and global minimum of the function above within the range x Є [0, 1] 1 [ ] Python Python Python

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Question
%matplotlib inline
import math
import numpy as np
from matplotlib import pyplot as plt

def f(x):
    return -0.000216747 + 0.0072868*x - 0.0977383*x**2 + 0.664685*x**3 - \
            2.40773*x**4 + 4.46766*x**5 - 3.7091*x**6 + x**7
[22]
Problem 2
Find all value of x Є [0, 1] such that f(x) = 0 for
f(x) = −0.000216747 +0.0072868x − 0.0977383x² + 0.664685׳ – 2.40773x² +4.46766x5 – 3.7091xº + x³
Make sure your answers are at most 10−6 away from the real solution.
1 def f(x):
2
34
return -0.000216747 + 0.0072868*x -0.0977383*x**2 + 0.664685*x**3· - · \
· · ·|· · · ·|· · · · 2.40773*x**4 + 4.46766*x**5 · - ·3.7091*x**6 + x**7
2.1) Find all the local minima and maxima of the above function. How do you figure out whether it is a local maximum or local minimum
1
[ ]
+ Code + Markdown
2.2) What is the global maximum and global minimum of the function above within the range x Є [0, 1]
1
[ ]
Python
Python
Python
Transcribed Image Text:[22] Problem 2 Find all value of x Є [0, 1] such that f(x) = 0 for f(x) = −0.000216747 +0.0072868x − 0.0977383x² + 0.664685׳ – 2.40773x² +4.46766x5 – 3.7091xº + x³ Make sure your answers are at most 10−6 away from the real solution. 1 def f(x): 2 34 return -0.000216747 + 0.0072868*x -0.0977383*x**2 + 0.664685*x**3· - · \ · · ·|· · · ·|· · · · 2.40773*x**4 + 4.46766*x**5 · - ·3.7091*x**6 + x**7 2.1) Find all the local minima and maxima of the above function. How do you figure out whether it is a local maximum or local minimum 1 [ ] + Code + Markdown 2.2) What is the global maximum and global minimum of the function above within the range x Є [0, 1] 1 [ ] Python Python Python
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education