math problems (again)


Closed Thread
Results 1 to 2 of 2
  1. #1
    lab310's Avatar
    lab310 Guest

    Default math problems (again)

    I need some way to calculate x^y (power function) where x is a word variable (0-65535) and y is selection of ( 0.5 , 0.6 , ..., 0.9, 1). Is there a some eficient way to do this,meaning not calculating series or some large tables . Integer result with some marginal error would be fine.

  2. #2
    Join Date
    Jul 2005
    Posts
    7


    Did you find this post helpful? Yes | No

    Default

    Lookup tables or a series solution maybe the easiest way of calculating it.
    You could try an assembler version. Look at this page:
    http://www.piclist.com/techref/microchip/math/index.htm
    Scroll down to the PICList post "x^y routine implementation" section

    Let us know how you get on.

    Paul.

Similar Threads

  1. Pulsin Math question
    By ruijc in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 2nd April 2008, 16:15
  2. 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
  3. PIC18Fxx math 24 & 32 bit
    By ronsimpson in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 2nd December 2006, 12:52
  4. not quite understanding the MATH function
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 17th January 2006, 20:20
  5. math problems - large numbers
    By Tomasm in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 16th February 2004, 07:48

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