1. Consider the following function 2sin(x+), x20 ex√3 x ≤0 (a) Plot both f(x) and f'(x) for x € [-1, 1]. Include enough points so that the curve you plot appears smooth. Use different colors and separate label to represent the function and its derivative respectively. Label the axes x and y, and use grid. You must use Sympy and Matplotlib. Manual differentiation is not allowed. f(x) = (b) Using numerical method (trapezoid or rectangular rule), evaluate the following integral accurate upto 3 decimal points. (You cannot use SymPy or SciPy) [ f(x)dx

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter12: Review Of Calculus And Probability
Section12.5: Random Variables, Mean, Variance, And Covariance
Problem 5P
icon
Related questions
Question
1. Consider the following function
f(x)
2sin(x+), x ≥0
ex√3
x ≤ 0
(a) Plot both f(x) and f'(x) for x = [-1, 1]. Include enough points so that the curve
you plot appears smooth. Use different colors and separate label to represent
the function and its derivative respectively. Label the axes x and y, and use
grid. You must use Sympy and Matplotlib. Manual differentiation is
not allowed.
(b) Using numerical method (trapezoid or rectangular rule), evaluate the following
integral accurate upto 3 decimal points. (You cannot use SymPy or SciPy)
L', f(x) dx
Transcribed Image Text:1. Consider the following function f(x) 2sin(x+), x ≥0 ex√3 x ≤ 0 (a) Plot both f(x) and f'(x) for x = [-1, 1]. Include enough points so that the curve you plot appears smooth. Use different colors and separate label to represent the function and its derivative respectively. Label the axes x and y, and use grid. You must use Sympy and Matplotlib. Manual differentiation is not allowed. (b) Using numerical method (trapezoid or rectangular rule), evaluate the following integral accurate upto 3 decimal points. (You cannot use SymPy or SciPy) L', f(x) dx
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Use of XOR function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage