Reference no: EM132206067
A) Write a MATLAB function that computes precision for a given reference value.
A prototype of the function is given here:
function [precision] = PrecisionVersusBase( base ) % returns precision
The algorithm for computing the precision is given in the pseudo code below
precision = base
WHILE( base + precision > base )
precision = precision / 2
precision = precision * 2
B)
Using the function from part A, compute precision for a reference value equal to 1.0 to 1e-30, reducing it by a factor of 10 each step. ( base = base/10.0; )
Write out the results of each case to a Comma Separated Values (CSV) file*. Write out the precision, and the base, along with the ratio of precision and base, in other words writeout base, precision and precision/base. Document these results in your report.
First, plot the base versus precision and then plot base versus the ratio. Due to the geometricnature in the progression of base, base/10 at each step, a log scale might be helpful.
The MATLAB function loglog is the same as plot, except each axis (x and y) will use a log scale.
Compute the volume of three different spheres
: Write a MATLAB function that computes the volume of 3 different spheres, sphere 1, sphere 2, and sphere 3, and writes them to a txt file Svol.txt.
|
Compute the solution to the system of equations
: The requirement of b as a column vector seems a bit excessive as both row and column vectors are just 1D arrays as far as Matlab is concerned.
|
Access the data type is called autonumber
: In access the data type is called "AutoNumber" in SQLServer it is called an identity field, Oracle is it called a "sequence". What do they do?
|
Write a matlab program in which you can enter
: Write a Matlab program in which you can enter the studentID's of students and then the marks obtained by eac student out of 100.
|
Write a matlab function that computes precision
: Write out the precision, and the base, along with the ratio of precision and base, in other words writeout base, precision and precision/base.
|
Investigate the botnet attack modules
: create many new business opportunities in smart home care, industry automation, and critical infrastructure protection - Evaluation of Botnet Attacks
|
Write a method that accepts a minimum integer
: Write a method that accepts a minimum integer and a maximum and prints a square line of increasing numbers.
|
Return the range of values in an array of integers
: Write a method called range that returns the range of values in an array of integers.
|
Write a method called reminder that takes an integer
: Write method distance to calculate the distance between two points (x1, y1) and (x2, y2). All numbers and return values should be of type double.
|