Math Problem


Closed Thread
Results 1 to 21 of 21

Thread: Math Problem

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    704


    Did you find this post helpful? Yes | No

    Default

    Erice1984,

    You can do a linear approximation but you are going to loose accuracy. Try doing a polynomial or exponential approximation. In EXCEL go to help and see how to add a trendline (it varies with the different versions of EXCEL). Obtaining the trendline is very simple. The trendline is going to give you a formula in the form of Y(X), X being the temperature and Y being the Resistance. Try with different options and settings until you get a good approximation. Then, you can use the resulting formula in your PBP program. That is with any value X (temperature) you can calculate a value Y (resistance).

    You should get the whole temperature range 100-250 degrees F in your graph before doing an approximation, so you get better results.

    This is one way to do it, which is very accurate. It all depends on the accuracy that you want for the resistance reading.

    Hope that this helps.

    Robert

  2. #2
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    Thank you very much!

    Wow, that was really easy!

    I lost accuracy but its in the place I don't care about!

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    I already used the following with good results.

    Curve Expert
    http://userpages.xfoneusa.net/~dhyams/cmain.htm
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    It all works, just wondering how I will try to make exponents happen..

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    What's your current formula?

    A third degree polynomial didn't fit?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    f(x) = 5167.68(0.98^x)

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    could be more simple than you think
    http://en.wikipedia.org/wiki/Exponentiation
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  8. #8
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Nope, bad link...
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  9. #9
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    well, I changed it up and am using three diff power curves to keep everything within 1 degree +/-

    only thing that is trouble is negative exponents.. tryin to figure out how to simplify it out so pbp can do it, but im am sucking on figuring this out. lol

  10. #10
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    You could still build a lookup table and use some interpolation between some points, that should do the trick and way easy to implement.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Line Graph, math problem...
    By TerdRatchett in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 6th May 2009, 04:20
  2. Math problem with string result
    By Lotondo in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 15th November 2006, 10:06
  3. PicBasic Pro Math Problem??
    By Glen65 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th March 2006, 04:36
  4. Math Formula / Variable Problem! Help!
    By bwarp in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th February 2006, 07:59
  5. Math problem...with picbasic pro
    By pcaccia in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th October 2005, 19:28

Members who have read this thread : 0

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