Explore BrainMass


Please see the attached file for the fully formatted problems.
Problem 1
Consider the following two functions
C x =∫0
cost2 dt S  x =∫0
sin t2 dt
Write a program called <name>1.sce generates plots of these functions over the range 0&#8804;x&#8804;8 on a
single figure. Format the figure so that it is very readable and visually appealing - something you could
show in a PowerPoint presentation, for example. Look up the legend command using Scilab's help
function and use this to include a legend in your figure.
Problem 2
The function p&#57502; v&#57503; is defined implicitly by the relation p tan&#57502; p&#57503;=&#57485;v2&#8722;p2 and the condition
0&#8804;p&#8804;&#57542;/2 . Write a program called <name>2.sce that implements the function p&#57502; v&#57503; in Scilab and
generates a plot of p&#57502; v&#57503; for 0&#8804;v&#8804;3 /2 . Format the figure so that it is very readable and visually
Problem 3
Write a program called <name>3.sce that defines a function
where v is a 3-by-3 matrix in which each column gives the x,y,z coordinates of a point in space. These
three points represent the vertices of a triangular "facet" in space. r and u are 3-by-1 column vectors.
The function should determine if a line from the point r traveling in the direction u "hits" (intersects)
the facet. If not, then h='F' while if so then h='T' and d is the distance from r to the point of
Problem 4
Consider a copper wire of length L and diameter D as shown below.
The size of wire is often specified by American Wire Gauge (AWG) values. The diameter of the wire
in inches is given by
D=&#57502; 5
1000 &#57503;92
39 inch
where the integer nAWG is the AWG gauge. The resistance of a piece of wire is proportional to its
length and inversely proportional to its cross-sectional area A=&#57542;&#57502;D/2&#57503;2 . That is
R&#8733; L
Assume that 1000 feet of AWG 16 wire (that is n AWG=16 ) has a resistance of 4 &#61527;.
We might want to know what gauge of wire is needed to carry a certain current I. The power dissipated
in the wire will be Pd=I2 R . The surface area of the wire is S=&#57542; D L . We might specify that the
dissipated power per unit surface area never exceed a certain value, or else the wire will not be able to
efficiently get rid of the heat generated by the resistive dissipation. Let us take as our standard that
AWG 16 wire can carry a maximum of 10 amps of current.
Write a program called <name>4.sce that contains a Scilab function awg(I) that outputs the nAWG
value required to carry the current I. Remember that nAWG must be an integer and the specified
maximum Pd / S cannot be exceed. You program should generate a plot of nAWG vs. I for


Solution Summary

Problems are solved using SciLab. The solution is detailed and well presented. The response received a rating of "5/5" from the student who originally posted the question.