Quote:
Originally posted by jim mcnamara
For what it's worth - pow() is in math.h
On PC's, before the math coprocessor (80286), you had to have
integer arithmetic libraries and floating point libraries. You still have to have them, but they are much easier to build.
What you guys are trying to implement requires two spearate libraries - one for integers, another for floating point.
Originally, in very early CPU's, what you had as native operations were integer add, subtract, plus: carrry, negative, and oveflow flags.
Now CPU's support divison & multiplication (FP and integer) as well as other primitve operations.
What I'm trying to say:
if you want to build math libraries you have to start with the four basic operations (+ - / *) and derive everything else - like with the sqrt() thing in another thread. You can't just use
pow() without writing a pow() function first.
Yeah, i know. we already have our own basic pow funtion developed, so we didn't need math.h.