It is not clear what you are asking. You can pretty much write a program to do all of these calculations, assuming the processor you are using can provide the mathematical precision you need. Also, this is an Arduino forum so if you are using one of the Arduino boards then there must be a reason.
Please describe your application in terms of the following:
- The input interface(s) and data format(s) you will be using on the Arduino board. For example: serial, analog, digital, Bluetooth, etc.
- How will that input data be processed?
- The output interface(s) and data format(s) you expect from the Arduino. For example: serial, analog, digital, Bluetooth, LCD, relays, etc.
This will allow us to help you.