Calculating MKT


Closed Thread
Results 1 to 2 of 2

Thread: Calculating MKT

  1. #1
    Join Date
    Sep 2009
    Posts
    737

    Default Calculating MKT

    Hi,
    I need little help about math for calculating Mean kinetic temperature.
    I have 10-60 samples on same time interval.
    First I was thinking that I maybe put this equation in exel or matlab, and then try to get polynomial, but with 60 variables, I think that is too much.

    Second attempt is to implement logarithm and exponential in code by developing it to power series. But as far as I can see now problem is using only integers.

    Accuracy about +/-0.5 should be acceptable. Does someone have some clever way to solve this?

    p.s.
    I'm using PIC18, so I can use LONG variables.
    Thanks

  2. #2
    Join Date
    Sep 2009
    Posts
    737


    Did you find this post helpful? Yes | No

    Default Re: Calculating MKT

    delta H/R=10000, For temperature range we have range for -delta H/RTn from -30 to -40.
    e^-30 is about 10^-13
    e^-40 is about 10^-18
    So how to represent that and fit into long variable?
    Second problem is to calculate ln of that value?
    Final result is 10000, divided with -ln. So that isn't problem.

Similar Threads

  1. Calculating a checksum
    By simongie in forum General
    Replies: 4
    Last Post: - 21st August 2009, 13:08
  2. Calculating elapsed time, how?
    By Eng4444 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 1st June 2006, 09:00
  3. calculating arc tangent
    By mischl in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 14th July 2005, 07:29
  4. calculating speed of a loop
    By EDWARD in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th June 2005, 20:34
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts