Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Examine the error in representing 1/10 with a fixed number of binary digits. I have stored the binary digits for 1/10 in binstore. You need

Examine the error in representing 1/10 with a fixed number of binary digits. I have stored the binary digits for 1/10 in "binstore". You need to: -- Print the contents of binstore using a Print statement with text describing what is being printed. -- Create a routine called "calc[numdigits_] that calculates the estimate to 1/10 based on a given number of binary digits "numdigits". -- Use Manipulate to print estimate values for 1/10 (call this "est") while numdigits runs between 1 and 43. Print using ScientificForm with 16 digits. -- Use Manipulate to print the difference between "est" and 1/10, while numdigits runs between 1 and 43. Print using ScientificForm with 16 digits.

binstore = Table[0, {i, 43}]; Do[( binstore[[i*4]] = 1; binstore[[i*4 + 1]] = 1), {i, 1, 10}];

So i need like a do loop or something for this to work but i have no idea how to write the function? (A routine is a function). This is done on MATHEMATICA!

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

Intelligent Image Databases Towards Advanced Image Retrieval

Authors: Yihong Gong

1st Edition

1461375037, 978-1461375036

More Books

Students also viewed these Databases questions

Question

c. What were you expected to do when you grew up?

Answered: 1 week ago