This message was edited by DrMarten at 2005-3-17 18:34:38
I know this is not PASCAL specific but has anyone ever found out the algorithims that a processor uses for higher functions like COSINE etc when all a processor can really do is ADD ( at machine code level )?
SUBTRACTION is the ADDITON of a NEGated number like
> 5-2 is +5+-2 ( in the binary form )
So most coders know MULTIPLY is ( ADDITION repeated ) and
DIVISION is ( the ADDITION of NEGated numbers repeated and counted ).
I am just curious as I am am thinking of writing a program that does some number crunching etc.
Is there a book on this MACHINE CODE subject area, anyone know?