precision of matlab e.gs

precision of matlab e.gs - The value of 0.5 is 0.50 fprintf...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 fprintf ('The value of 0.1 is %5.3f \n', 0.1) The value of 0.1 is 0.100 fprintf ('The value of 0.2 is %2.3f \n', 0.2) The value of 0.2 is 0.200 fprintf ('The value of 0.2 is %8.6f \n', 0.3) The value of 0.2 is 0.300000 fprintf ('The value of 0.3 is %8.6f \n', 0.3) The value of 0.3 is 0.300000 fprintf ('The value of 0.4 is %3.1f \n', 0.4) The value of 0.4 is 0.4 fprintf ('The value of 0.5 is %4.2f \n', 0.5)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: The value of 0.5 is 0.50 fprintf ('The value of 0.6 is %9.5f \n', 0.6) The value of 0.6 is 0.60000 fprintf ('The value of 0.7 is %7.4f \n', 0.7) The value of 0.7 is 0.7000 fprintf ('The value of 0.8 is %6.4f \n', 0.8) The value of 0.8 is 0.8000 fprintf ('The value of 0.9 is %8.7f \n', 0.9) The value of 0.9 is 0.9000000 fprintf ('The value of 1.0 is %9.9f \n', 1.0) The value of 1.0 is 1.000000000...
View Full Document

This note was uploaded on 10/23/2009 for the course CISC 106 taught by Professor Mcgeary during the Fall '08 term at University of Delaware.

Ask a homework question - tutors are online