Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started