Question Details

(Solution) - The following Maple procedure chops a floating point number x to

Brief item decscription

Solution download

Item details:

The following Maple procedure chops a floating-point number x to t digits. (Use the Shift and Enter keys at the end of each line when creating the procedure.)
chop := proc(x, t);
local e, x2;
if x = 0 then 0
e := ceil (evalf (log10(abs(x))));
x2 := evalf (trunc (x · 10(t?e)) · 10(e?t));
end if
Verify the procedure works for the following values.
a. x = 124.031, t = 5
b. x = 124.036, t = 5
c. x = ?124.031, t = 5
d. x = ?124.036, t = 5
e. x = 0.00653, t = 2
f. x = 0.00656, t = 2
g. x = ?0.00653, t = 2
h. x = ?0.00656, t = 2


About this question:

This question was answered on: Jul 11, 2017

PRICE: $15 (18.37 KB)

Buy this answer for only: $15

Pay using PayPal (No PayPal account Required) or your credit card. All your purchases are securely protected by PayPal.

Need a similar solution fast, written anew from scratch? Place your own custom order

We have top-notch tutors who can help you with your essay at a reasonable cost and then you can simply use that essay as a template to build your own arguments. This we believe is a better way of understanding a problem and makes use of the efficiency of time of the student. New solution orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.

Order Now