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.

Printable View

- 10-05-2007, 02:00 AMunix50G 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.

- 10-05-2007, 02:00 AMunixRe: 50G log base 2.

"Vincent" <server14@gmail.com> wrote in message

news:zq-dnR6acJfBBoTbnZ2dnUVZ_syunZ2d@giganews.com...[color=blue]

> 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.[/color]

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

log(n) / log(2)

or in RPN,

n log 2 log /

Tom Lake

- 10-05-2007, 02:00 AMunixRe: 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

- 10-05-2007, 02:00 AMunixRe: 50G log base 2.
In article <1176095997.877490.275040@o5g2000hsb.googlegroups.com>,

"TW" <timwessman@gmail.com> wrote:

[color=blue]

> 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[/color]

Or save

\<< LN 2 LN / \>>

under the name 'LN2'

or assign it to left-shift hold y^x

using Keyman or otherwise.

- 10-05-2007, 02:00 AMunixRe: 50G log base 2.

"TW" <timwessman@gmail.com> wrote in message

news:1176095997.877490.275040@o5g2000hsb.googlegroups.com...[color=blue]

> 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 / >>[/color]

Looks like you're missing a LOG in there.

<< LOG 2 LOG / >>

Tom Lake

- 10-05-2007, 02:00 AMunixRe: 50G log base 2.
On 9 Apr., 03:48, Vincent <serve...@gmail.com> wrote:[color=blue]

> 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.[/color]

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

- 10-05-2007, 02:00 AMunixRe: 50G log base 2.
"Tom Lake" <tlake@twcny.rr.com> kirjoitti

viestissä:461a0492$0$17194$4c368faf@roadrunner.com...[color=blue]

> Looks like you're missing a LOG in there.

>

> << LOG 2 LOG / >>[/color]

<< LOG 2 LOG / ->NUM >>

=)

--

Turo Takanen

- 10-05-2007, 02:00 AMunixRe: 50G log base 2.
On Apr 9, 3:56 am, Virgil <vir...@comcast.net> wrote:

[color=blue]

>

> Or save

> \<< LN 2 LN / \>>

> under the name 'LN2'

> or assign it to left-shift hold y^x

> using Keyman or otherwise.[/color]

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')

[url]http://groups.google.com/group/comp.sys.hp48/browse_thread/thread/69bb904223c14c0e/eb07a514032b8587?lnk=gst&q=LN-XROOT-LN&rnum=1#eb07a514032b8587[/url]

Perhaps a program in algebraic mode would be more useful here, since

new users seldom change to RPN mode.

Gerson.