Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

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
expand button
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
Check Mark
Knowledge Booster
Background pattern image
Similar questions
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education