50G log base 2. - Hewlett Packard

This is a discussion on 50G log base 2. - Hewlett Packard ; Is there a way in the 50G to to logarithms without a base of 10 or e, I am a CS student and deal with log base 2 all the time, it would just be alot easier....

+ Reply to Thread
Results 1 to 8 of 8

Thread: 50G log base 2.

  1. 50G log base 2.

    Is there a way in the 50G to to logarithms without a base of 10 or e, I
    am a CS student and deal with log base 2 all the time, it would just be
    alot easier.

  2. Re: 50G log base 2.


    "Vincent" wrote in message
    news:zq-dnR6acJfBBoTbnZ2dnUVZ_syunZ2d@giganews.com...
    > Is there a way in the 50G to to logarithms without a base of 10 or e, I am
    > a CS student and deal with log base 2 all the time, it would just be alot
    > easier.


    Yes, to get the log base 2 of n do this:

    log(n) / log(2)

    or in RPN,

    n log 2 log /

    Tom Lake



  3. Re: 50G log base 2.

    1st year CS student?

    If you want, you can make tiny little program and assign it to the
    log key if typing 3 extra keypresses is giving you fits:

    << 2 LOG / >>

    TW



  4. Re: 50G log base 2.

    In article <1176095997.877490.275040@o5g2000hsb.googlegroups.c om>,
    "TW" wrote:

    > 1st year CS student?
    >
    > If you want, you can make tiny little program and assign it to the
    > log key if typing 3 extra keypresses is giving you fits:
    >
    > << 2 LOG / >>
    >
    > TW


    Or save
    \<< LN 2 LN / \>>
    under the name 'LN2'
    or assign it to left-shift hold y^x
    using Keyman or otherwise.

  5. Re: 50G log base 2.


    "TW" wrote in message
    news:1176095997.877490.275040@o5g2000hsb.googlegro ups.com...
    > 1st year CS student?
    >
    > If you want, you can make tiny little program and assign it to the
    > log key if typing 3 extra keypresses is giving you fits:
    >
    > << 2 LOG / >>


    Looks like you're missing a LOG in there.

    << LOG 2 LOG / >>

    Tom Lake



  6. Re: 50G log base 2.

    On 9 Apr., 03:48, Vincent wrote:
    > Is there a way in the 50G to to logarithms without a base of 10 or e, I
    > am a CS student and deal with log base 2 all the time, it would just be
    > alot easier.


    Vincent,

    For base 2, calculate the base 10 logarithm and divide by the base 10
    logarithm of 2. For instance, if you need the logarithm of 15 to base
    2, then (log 15)/(log 2). Or (LN 15)/(LN 2). It may look surprising
    but (log 15)/(log 2) = (LN 15)/(LN 2). Try it! In fact, the
    logarithm of any positive number N for ANY positive base B except 1
    can be calculated as (log N)/(log B) or (LN N)/LN B).

    Charles A. Huffer


  7. Re: 50G log base 2.

    "Tom Lake" kirjoitti
    viestissä:461a0492$0$17194$4c368faf@roadrunner.com ...
    > Looks like you're missing a LOG in there.
    >
    > << LOG 2 LOG / >>


    << LOG 2 LOG / ->NUM >>

    =)


    --
    Turo Takanen


  8. Re: 50G log base 2.

    On Apr 9, 3:56 am, Virgil wrote:

    >
    > Or save
    > \<< LN 2 LN / \>>
    > under the name 'LN2'
    > or assign it to left-shift hold y^x
    > using Keyman or otherwise.


    Or

    \<< 2 LN XROOT LN \>>

    However this method would be more interesting in a program to compute
    the log base b of N:

    \<< LN XROOT LN \>> (N in level 'Y' and b in level 'X')

    http://groups.google.com/group/comp....07a514032b8587

    Perhaps a program in algebraic mode would be more useful here, since
    new users seldom change to RPN mode.

    Gerson.




+ Reply to Thread