Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 2 [ 6 5 marks ] The pressure vessel of the Figure Q 2 - a will be used to store some pressurized fluid
Question marks
The pressure vessel of the Figure Qa will be used to store some pressurized fluid and should be manufactured using the minimum amount of material possible, while holding a total volume The amount of material used is proportional to the surface area of the vessel, while the inner radius of the vessel should be equal to one third of the outer radius
Figure Qa Pressure vessel dimensions
d marks single numerical output argument with the value of the first and second derivative of the surface area respectively. and not using numerical differentiation, since this would lead to inaccurate results. especually for the second derivative.
In : YOUR CODE HERE
raise NotImplementedError
In : #Run this cell to test your functions for question d
from unittest import veselAreaderivativeTest, veselAreasecondoerivativetest
vesselAreaDerivativetest vesselareaDerivative
vesselareasecondDerivativetest vesselareasecondoerivative
In :
In :
e marks obtained the optimal radius, evaluate the area corresponding to this radius and store it in a variable named areapt
In :
In i: YoUR coDE heRE
raise NotImplementederror
ariun chts cele co test your answers for question e
import numpy as np
import math
if Dopt not in giobal
assert t Voluetonor ropt is not definedi?
if iaregopti not in gxabals :
assert areappto The area should be a positive numbent?
print iyour answers: for question Ze pass the preliminony checkst"
In l:
I really need help on part D and E i only need the answer for both Python
Thanks you so much
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started