> So, I did the calculation in the Pascal code, and got a > value of 258.01129, which I then defined as m_k. I don't know how you managed that, but I get 1.044630 from my trusty HP 11C calculator. This value is the ratio from one output step to the next, so it should be a little larger than 1. This should give you a reasonable table most of the way, but you will probably end up with roundoff error by the time you get to the end. > I don't program in C, and to be honest I have no idea how this code > works. > ... > but all this high math is above my head. Actually, Josh, this is basic high school math. Unless you actually are a high school student and haven't gotten to logarithms and exponentials yet, you have no business trying to be an engineer. How old are you? What kind of education have you had? I suggest you learn about logarithms and exponentials before proceeding. You might want to learn a bit about C or some other high level programming language while you're at it. As long as you know one of them reasonably well, you can look at code written in another language and usually figure out what it's doing. C is actually one of the harder ones to guess at if you're not familiar with it. You would probably have an easier time trying to understand the algorithm from the Pascal I sent. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.