AM263x MCU+ SDK  09.02.00
MATHLIB

Introduction

Trigonometric functions are commonly used in real-time control applications, particularly within the inner loops of control algorithms, where speed and accuracy is essential. The performance of trigonometric functions is a key careabout for designers of these systems as it can have a significant impact on the overall performance of the system. Until recently, trignometric functions based on lookup tables were considered faster than the polynomial-based methods; however, with the inclusion of floating-point units (FPUs) and faster clock speeds, polynomial-based approximations have gained favor. TI has developed C functions of the most commonly used trigonometric functions using these polynomial-based methods and has optimized them for TI's ArmĀ®-based microcontrollers (MCUs) and microprocessors (MPUs).

Features Supported

Supports Below trignometric functions (ti_arm_trig):

  • Sine
  • Cosine
  • Sine + Cosine
  • Arcsine
  • Arccosine
  • Arctangent
  • Arctangent2

Features Not Supported

NA

Additional References

App Note: Optimized Trigonometric Functions on TI Arm Cores

API

APIs for MATHLIB

FastRTS library

Addintionally, TI also offers a traditional Look-up Table based trigonometric functions for users needing the most optimized operation with the trade-off of increase data size (3344Bytes of LUT stored in .trigData). It also bypasses some limitations of the aforementioned TI Arm Trig libary such as the limited input range of 0 - 2PI for sine/cosine functions. Furthermore, the Fast Run-Time-Support (FastRTS) library also offers an optimized math operation of logs and exponents.

Features Supported

Supports Below trignometric and math functions (fastrts):

  • Sine
  • Cosine
  • Sine + Cosine
  • Arcsine
  • Arccosine
  • Arctangent
  • Arctangent2
  • Log (base of e)
  • Exponent (base of e)

Features Not Supported

NA

API

APIs for MATHLIB