Lecture 7 Notes

00 157 314 471 628 sinx 00 10 00 10 00 sin and return

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

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ons •  “Value” is given by digits Numbers •  For given number x, how many base B digits are there? •  Frac,onal part? •  Whole part? (know this for midterm & final) Frac,onal Parts (Base 10) % frac_digits.m % f < 1, digits in base 10 clc f = 1/3; fprinv('f = %g, digits = ', f); k = 0; % # digits in frac,onal part while (k<10); fprinv('%d', floor(10*f)); f = 10*f; f = f- floor(f); k = k+1; end fprinv('\...
View Full Document

This document was uploaded on 03/11/2014 for the course CSCI 004 at Brown.

Ask a homework question - tutors are online