Question: Write a function waterVis that accepts zero, one or two inputs. The function should use the equation below to estimate the viscosity of water in

Write a function waterVis that accepts zero, one or two inputs. The function should use the equation below to estimate the viscosity of water in centipoise and return that value as the output.

=0.0168T^-0.88

The inputs to the function will be

(optional) - density. If not provided as an input use 998.2

T (optional) - temperature. If not provided as an input use 30

Hint: If there are no inputs, = 998.2 and T = 30. If there is one input, = first input and T = 30. If there are two inputs, = first input and T = second input.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!