Question

In a fashion similar to that in Fig. 3.11, write a short program to determine the...

In a fashion similar to that in Fig. 3.11, write a short program to determine the smallest number, xmin, used on the computer you will be employing along with this book. Note that your computer will be unable to reliably distinguish between zero and a quantity that is smaller than this number.

Homework Answers

Answer #1

The figure 3.11 in the text book is the pseudo code that determine that machine epsilon for the binary computer.

Below the mat lab code code which is written in the similar fashion to determine the smallest number X_min

A=1

While (1)

If a<+0,break,end

X min=A;

A=a/2;

End

The execute the above script code,there are following steps:

  • First open the matlab Script editor
  • Now write the above code into the editor.
  • Now save this script as getmin.m
  • Now run this file info the MATLAB commend window promot with getmin.m file name.
  • Out put:
  • The following output gets display after the execution of the above code
  • Ans=4.9407e-324


Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
1)Write a program that asks a user for a number. If (and only if) the number...
1)Write a program that asks a user for a number. If (and only if) the number is greater than zero print “The number is valid” 2)Write a program that asks a user for a grade. If (and only if) the grade is greater than zero and less than 101, print “The grade is valid” 3)Write a program that asks a user how many widgets they want to buy and prints out what the user should pay. Widgets costs 10 dollars....
Need in Java coding Write a program that will allow users to enter different types of...
Need in Java coding Write a program that will allow users to enter different types of books into the program, and at the end print out everything that the user entered. Allow the user to enter as many books as they want. Please collect the following information and break down the classes as follows using inheritance/classes. I have added the extra properties that each class should include. Book types: Paper Book (nothing extra) Comic Book (issue number) Magazine (publisher, issue...
You will write a program that loops until the user selects 0 to exit. In the...
You will write a program that loops until the user selects 0 to exit. In the loop the user interactively selects a menu choice to compress or decompress a file. There are three menu options: Option 0: allows the user to exit the program. Option 1: allows the user to compress the specified input file and store the result in an output file. Option 2: allows the user to decompress the specified input file and store the result in an...
The following is the description of sales and cash receipts for the Lady’s Fashion Fair, a...
The following is the description of sales and cash receipts for the Lady’s Fashion Fair, a retail store dealing in expensive women’s clothing. Sales are for cash or credit, using the store’s own billing rather than credit cards. Each salesclerk has her own sales book with prenumbered, three-copy, multicolored sales slips attached, but perforated. Only a central cash register is used. It is operated by the store supervisor, who has been employed for 10 years by Alice Olson, the store...
PART I- TRUE-FALSE QUESTIONS Following 15 questions are True-False Questions. Write ‘T’ for True and ‘F’...
PART I- TRUE-FALSE QUESTIONS Following 15 questions are True-False Questions. Write ‘T’ for True and ‘F’ for False in the True / False Answer Box. Each question carries ‘2’ mark. Excess capacity characterizes firms in monopolistically competitive markets, even in situations of long-run equilibrium. A competitive market will typically experience entry and exit until accounting profits are zero A monopolist produces an efficient quantity of output but it is still inefficient because it charges a price that exceeds marginal cost...
Write a Python 3 program called “parse.py” using the template for a Python program that we...
Write a Python 3 program called “parse.py” using the template for a Python program that we covered in this module. Note: Use this mod7.txt input file. Name your output file “output.txt”. Build your program using a main function and at least one other function. Give your input and output file names as command line arguments. Your program will read the input file, and will output the following information to the output file as well as printing it to the screen:...
Point/Counterpoint from chapter 14. Take a stand. Do you agree or disagree? Write a minimum of...
Point/Counterpoint from chapter 14. Take a stand. Do you agree or disagree? Write a minimum of one paragraph for each one. Chapter 14 Exporting E-waste: A Fair Solution? Point Yes Exporting is always and everywhere a win-win situation: The more companies and countries export, the more they improve market efficiency. Exporting enables companies to increase sales, improve productivity, and diversify activities. Likewise, exporting helps countries generate jobs, accelerate innovation, and improve living standards. In broader terms, it promotes connections among...
Total utility can be objectively measured in numbers that indicate usefulness or benefit to the consumer....
Total utility can be objectively measured in numbers that indicate usefulness or benefit to the consumer. ____ 2. Consumers should purchase quantities of a good to the point where MU > P. ____ 3. Voluntary exchange requires that there must be mutual gain. ____ 4. Points along a budget line represent the maximum combinations of two commodities that a consumer can afford. ____ 5. The budget line represents a consumer's preferences for a commodity. ____ 6. A change in consumer...
How can differential analysis be applied here to determine if it would be profitable to invest...
How can differential analysis be applied here to determine if it would be profitable to invest in new equipment to increase capacity for a constrained resource? KRAYDEN’S CYCLE COMPONENTS INTRODUCTION: COMPANY, PRODUCT, AND SUPPLY CHAIN Krayden’s Cycle Components (KCC) is a high-end specialty fabricator that manufactures one product with many variants. The basic product is known as a rolling chassis, a key component used in manufacturing motorcycles. While there are variations across the industry, a rolling chassis typically consists of...
GoodClothes and MIS: Case from struggle to revamp Headquartered in Dubai, GoodClothes is a highly successful...
GoodClothes and MIS: Case from struggle to revamp Headquartered in Dubai, GoodClothes is a highly successful department retailer offering completely designed casual clothing and accessories. The company operates 10 stores in all seven emirates and 1 store in Al Ain. The company owns 6 stores and franchises 5. For some time, marketing managers targeted population between the ages 40 and 60 who like loose, comfortable clothes. Then, management was tempted to stock its stores with clothes for a younger population...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT