Last time: | Next time: |
Today:
I'm testing your projects with some of these numbers:
I should have been more specific in my instructions. Let's look at two extremes:
So what is legal? BaseForm? IntegerDigits? Those are half of CNFOBTA, so my answer is NO, these are not legal.
You may use logs, and the standard mathematical operations. You may also use string operations, or almost anything else -- but you can't use functions designed to convert from one base to another!
So -- for those of you who used a canned converter (e.g. BaseForm, IntegerDigits), I'm asking you to go back and write those:
Please try again. If you used BaseForm (or equivalent) and IntegerDigits, you need to write a procedure to do what they're doing.
Let's take a look at IntegerDigits. How do we use well-worn functions to get the integer digits in a base-10 representation of a number?
So you might be thinking "544890 -> {5,4,4,8,9,0}. How do we do that?
If you need more help, please see me. We can sit down and I'll help you figure out HOW, so that all you need to do is to make it happen.
The most important equation in the world (Physicist Charles Shirkey, BGSU):
Summary so far:
We'll take another pass through the first two methods today, which we started discussing last time.
"The need for an error tolerance is avoided by iterating until an answer of machine precision is obtained."
Check that example calculation.