Reference no: EM131326194
ASSIGNMENT
For this homework you will be creating scripts in SciLab. You will turn in electronically, each of the scripts requested below. This is not a group project, so do your own work. Contact me if you have any questions.
1.) Write a Scilab script named Prob_01.sce, that takes no inputs and returns the vectors below.
Use the colon operator to create a vector starting with -9 and ending with 52 in increments of 0.5.
Use the linspace function to create a vector of length 12 that is linear spaced from 15 to 70.
2.) Write a Scilab script named Prob_02.sce, that will take in any size vector and return the following information:
The sum of the values in the vector
The smallest number in the vector and its location
The largest number in the vector and its location
The average of the vector
The length of the vector
The transposed version of the vector
A 1x2 vector containing the first and last value of the vector
3.) Write a Scilab script named Prob_03.sce, that will take in any size matrix and return the following information:
The sum of the values in the matrix
The smallest number in the matrix and its location
The largest number in the matrix and its location
The average of the matrix
The size of the matrix
The transposed version of the matrix
The inverse of the matrix
A 1x2 vector containing the first and last value of the matrix
4.) Write a SciLab script named Prob_04.sce, that takes no inputs and returns a 15x15 matrix of all zeros, with the major diagonal containing the values of 12 using the ones() and diag() functions.
5.) Write a SciLab script named Prob_05.sce, that takes no inputs and returns a vector solving the following system of equations using matrix operations.
x + y - z = 6 2x - y + 2z = 3
3x + 2y + 5z = 35
6.) Write a SciLab script Prob_06.sce, that will graph each of the following equations using the subplot command. Remember to name each plot, label the axis with the correct units, and include the grid.
Radius = 0 to 10 cm in 0.1 cm increments.
Volume of a cube = Radius3
Area of a Circle = π*Radius2
Perimeter of a Circle =2π*Radius
Volume of a Sphere = (4/3)π*Radius3
Detriment of social welfare
: Appraise this statement: In equilibrium, a monopsonistic hospital will hire fewer nurses at lower wages than would a hospital in a more competitive market, to the detriment of social welfare.
|
Challenging aspects of going from a legacy system to new one
: Legacy systems are particularly difficult to replace, and the conversion strategy is often complex. What are some of the most challenging aspects of going from a legacy system to a new one? Which conversion strategy would you adopt? Support your a..
|
Is this a violation of the second law
: In an isothermal decrease of the magnetic field, heat is absorbed from one reservoir and converted completely into work. Is this a violation of the second law? Explain.
|
Seemingly contradictory facts
: Comment on this issues and provide a plausible explanation for this seemingly contradictory facts.
|
Write a scilab script named prob_01 sce
: ENGR 112: Write a SciLab script named Prob_04.sce, that takes no inputs and returns a 15x15 matrix of all zeros, with the major diagonal containing the values of 12 using the ones() and diag() functions.Write a SciLab script named Prob_05.sce, th..
|
Develop business recovery strategies for sangrafix
: Develop business recovery strategies for SanGrafix, a video game design company. The strategies should contain detailed guidance and procedures for restoring a damaged system unique to the system's security impact level and recovery requirements
|
Why do efficient markets benefit society
: What is an efficient market? Why do efficient markets benefit society? Define arbitrage and the law of one price. What role do they play in our market system?
|
Derive an expression for the heat rejected
: Such a refrigerator is called a "heat pump" and can warm a house in winter by refrigerating the ground, outside air, or water supplied in the mains. Assume a value of 5 for the coefficient of performance and comment on the effectiveness of a heat ..
|
What is storage and why is it risky
: What is storage? Why is it risky? What role does it play in the economy? Why is delivery important if so few futures contracts end in delivery?
|