Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Scilab thank you in advace sovle what you can thanks 3.) Write a Scilab script named HW6 Prob_03.sce, that will calculate the following: A barometer

Scilab
thank you in advace
sovle what you can thanks image text in transcribed
image text in transcribed
3.) Write a Scilab script named HW6 Prob_03.sce, that will calculate the following: A barometer is used to measure atmospheric pressure and is filled with a high-density fluid. In the past, mercury was used, but because of its toxic properties it has been replaced with a variety of other fluids. The pressure is calculated using the equation: PHydro = p gH Find the height to which the liquid column will rise for pressures from 0 to 100 kPa for two different barometers. Assume that the first uses mercury, with a density of 13,560 kg/m and the second uses water, with a density of 1000 kg/m. The acceleration due to gravity is 9.81 m/s. Use the meshgrid) function for your calculations. Your answer should be a two-dimensional matrix 4.) Write a Scilab script named HW6 Prob_04.sce, that will calculate the following: Create the following matrices, and use them in the exercises that follow: [ 15 3 22 a = 3 8 5 c = [12 18 5 2] | 14 3 82 Create a matrix called d from the third column of matrix a. . Combine matrix b and matrix d to create matrix e, a two-dimensional matrix with three rows and two columns. Display matrix e. Combine matrix b and matrix d to create matrix f, a one-dimensional matrix with six rows and one column. Display matrix f. Create a matrix g from matrix a and the first three elements of matrix c, with four rows and three columns. Display matrix g Create a matrix h with the first element equal to row 1, col 3 of a, the second element equal to row 1, col 2 of c, and the third element equal to row 2. col 1 of b. Display matrix h. For this homework you will be creating scripts in SciLab. You will need to turn in the SciLab files you create to Moodle for credit. Be sure to include a line of text indicating what is being output and the units before displaying the value like we did in the ICA. Also include comments in your files to include your name, the description of what the file does, and any units in your calculations. 1.) Write a Scilab script named HW6_Prob_01.sce, that will calculate the following: Take in two vectors (A and B) of size 1x3 and calculate the resultant vector from the X, Y and Z coordinates of the two vectors Have the user input the force vector A in the format of X, Y, ZJ in units of Newtons. Have the user input the force vector B in the format of IX, Y, Z] in units of Newtons. Calculate the resultant force vector by adding the vectors A&B Output the resultant force vector in units of Newtons. Calculate the magnitude of the resultant vector using the equation below: F = [X, Y, Z] Magnitude = VX2 + y2 + Z2 Output the magnitude of the resultant force vector in units of Newtons

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

Case Studies In Business Data Bases

Authors: James Bradley

1st Edition

0030141346, 978-0030141348

More Books

Students also viewed these Databases questions

Question

e. What do you know about your ethnic background?

Answered: 1 week ago

Question

b. Why were these values considered important?

Answered: 1 week ago