Floating Point Math Functions - Microchip Technology
M 1997 Microchip Technology 1 INTRODUCTION This application note presents implementations of thefollowing math routines for the Microchip PICmicro microcontroller family: square root function, exponential function, base 10 exponential function, natural log function, common log function, trigonometric sine function trigonometric cosine functiontrigonometric sine and cosine func-tions power function, floor function, largest integer not greater than x, as float, Floating Point logical comparison tests integer random number generatorRoutines for the PIC16CXXX and PIC17CXXX familiesare provided in a modified IEEE 754 32-bit formattogether with versions in 24-bit reduced techniques and methods of approximation pre-sented here attempt to balance the usually conflictinggoals of execution speed verses memory consumption.
AN660 DS00660A-page 2 1997 Microchip Technology Inc. RANGE REDUCTION Since most functions of scientific interest have large domains, function identities are typically used to map
Download Floating Point Math Functions - Microchip Technology
Information
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document: