Base-Negative Numbers?

Discussion in 'Computers and The Internet' started by AceK, Feb 19, 2015.

  1. Gyro Gearloose

    Gyro Gearloose Senior Member

    Messages:
    3,980
    Likes Received:
    244
    Hello,

    I made a table with all the cases for r < 0 and came up with the following:

    http://pastebin.com/EVKEuNMG

    I think that could be done nice ;). And it have to be more generalized to incoporate r >= 0.

    Regards
    Gyro
     
    1 person likes this.
  2. AceK

    AceK Scientia Potentia Est

    Messages:
    7,824
    Likes Received:
    961
    works with positive and negative bases now. i don't see anything wrong with this. removed old comments too :D
    btw, nice solution with the different cases of positive and negatives for the negative base without having static or extern vars ;)

    http://pastebin.com/qG3d3nhA
     
  3. Gyro Gearloose

    Gyro Gearloose Senior Member

    Messages:
    3,980
    Likes Received:
    244
    Hello,

    great, good work ;).

    Regards
    Gyro
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice