Answered step by step
Verified Expert Solution
Link Copied!

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 2[65 marks]
The pressure vessel of the Figure Q2-a will be used to store some pressurized fluid and should be manufactured using the minimum amount of material possible, while holding a total volume V. 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 r1=r3
Figure Q2-a. Pressure vessel dimensions
d)[15 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 2-d)
from unit_test= import ves=elAreaderivativeTest, ves=elAreasecondoerivativetest
vesselAreaDerivativetest (vesselareaDerivative)
vesselareasecondDerivativetest (vesselareasecondoerivative)
In [] :
In [] :
e)[10 marks] obtained the optimal radius, evaluate the area corresponding to this radius and store it in a variable named areapt
In C]:
In C i: - YoUR coDE heRE
raise NotImplementederror()
ariun chts cele co test your answers for question 2-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 Z-e pass the preliminony checkst")
In x l:
I really need help on part D and E, i only need the answer for both (Python)
Thanks you so much
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions

Question

What role do hormone levels play in mood?

Answered: 1 week ago

Question

6. What actions might make employers lose elections?

Answered: 1 week ago