
Algebra PreAlgebra and Basic Algebra Math Forum 
 LinkBack  Thread Tools  Display Modes 
November 28th, 2018, 06:51 AM  #1 
Member Joined: Aug 2017 From: India Posts: 54 Thanks: 2  Best Possible Implementation
I am not sure if I can put it in this forum, but I want to know your valuable feedback. I have to implement transforms like Clarke, Park and some other mathematical calculations for Field Oriented Control. These algorithms I am implementing in micro controllers which run at 160MHz. The most critical thing is how efficiently I implement them in terms of timing. The functions like sqrt, tan if I take from it from library will take lot of cycles. Which is the shortest and the high precision way of implementing these algorithms like Inv(tan), sqrt etc? Please advise. Any look up table kind of solution?
Last edited by skipjack; November 28th, 2018 at 09:28 AM. 
November 28th, 2018, 09:20 AM  #2 
Senior Member Joined: Sep 2015 From: USA Posts: 2,529 Thanks: 1389 
A lookup table will be the fastest but you say you want high precision as well. Can you restrict the domains of the functions you need to implement? Do you have a lot of memory to play with? If you can't just do a table lookup and get the precision you need you could linearly interpolate adjacent values if your table were accurate enough. You'll do better looking and google and chasing down links and references than just asking here. Or perhaps ask on a more computational engineering site. Last edited by skipjack; November 28th, 2018 at 09:30 AM. 
November 28th, 2018, 05:04 PM  #3 
Member Joined: Aug 2017 From: India Posts: 54 Thanks: 2 
Yes memory is available.


Tags 
implementation 
Thread Tools  
Display Modes  

Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Newtontype implementation  lyurealm  Applied Math  0  October 25th, 2015 02:52 PM 
Matrices implementation in java  Peekit  Math Software  0  June 20th, 2015 03:32 PM 
database, conceptual planning, implementation, ER diagram  ungeheuer  Applied Math  0  February 26th, 2014 05:41 AM 
gravitational vector field  implementation  prolow  Algebra  14  January 30th, 2013 08:07 PM 