Technical Support

C51: MATH FUNCTIONS

QUESTION

Can the C51 compiler compute logarithmic functions e.g.:

a * log(x) + b * pow(log(x), 2)

or square root functions e.g.:

pow(ax, 0.5) + pow(bx, 1.5) + pow(cx, 2.5)

How can I detemine the execution time for these functions?

ANSWER

Yes. The C51 compiler supports both log() and pow() functions.

You may use the Execution Profiler or the built-in Logic Analyzer in the simulator to display execution times for these functions.

MORE INFORMATION

  • Refer to log in the Cx51 User's Guide.
  • Refer to pow in the Cx51 User's Guide.

Last Reviewed: Tuesday, October 24, 2006


Did this article provide the answer you needed?
 
Yes
No
Not Sure