math help


Closed Thread
Results 1 to 4 of 4

Thread: math help

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink Arithmetics ???

    Hi, Houa

    The first step is to use the brain ...

    by multiplying a per 1000 and B per 100 ... you get integers, and so on.

    AA = 34 030 * 1E-5
    BB = 7 230 792 * 1E-3 ... over 16 bits, so,The second step is to define the precision of the result you want ...

    X = - 7 305.5717 ok ... but what is the real meaning of the last digits ???

    Here you find THE GOOD QUESTION ....

    10 Bits for an ADC or DAC is .1 % ...
    12 Bits ......................... is .025%

    do you know lots of Pic level peripherals with a better accuracy ??? Do you know how to realise those circuits ???

    so, 1 of 12 bits of your result is 1.8, say 2 ...

    .5717 really do not mean anything here, in the real world !!!

    Now, If you really want to do maths for maths ...

    Have a look to Melabs site, you'll find two valuable solutions

    1) Microchip FP files to " include" to your program
    2) arithmetic co-processor ... wich is the most simple Way.

    The last solution is to change compiler ( no, no ... not on the head ) or processor ... where those solutions are already cooked implemented.

    Hope it helps you to better see the truth !!!

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Resolution integer math assistance?
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 14th January 2010, 03:01
  2. Line Graph, math problem...
    By TerdRatchett in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 6th May 2009, 04:20
  3. Pulsin Math question
    By ruijc in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 2nd April 2008, 16:15
  4. PBPL Math...new math takes more cycles...Always?
    By skimask in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th February 2008, 10:22
  5. not quite understanding the MATH function
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 17th January 2006, 20:20

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