• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
The HP Community is where owners of HP products, like you, volunteer to help each other find solutions.
Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
HP Recommended

Is there any way of changing the base number in logarithms

the LOG button is set to LOG10. how would i change the base so that i could have the log to base 3?

 

 

3 REPLIES 3
HP Recommended

The easiest way to find the log of X base Y is LOG(X,Y).  Example: LOG(81,3) returns 4, because the log of 81 (base 3) is 4.  In Home, this is the easiest way because LOG and comma are primary keys.

 

Hint: in Home, press the Help key, then tap the Keys button, then press the LOG key.  Cool, huh?

 

You can also use the logb command, which looks nicer in Textbook Display mode.  It's the second-to-last item on the template key (next to the Toolbox key).

 

Caution: In CAS, LOG(x,y) must be spelled in uppercase, and logb(x,y) must be spelled in lowercase.  In Home, it doesn't matter.

 

Hope that helps!

-Joe-
HP Recommended

Search the user manual for "logb" and "User Keyboard" for the answers, or just enter and run the following program:

 

   Export UserKey()    //an arbitrarily chosen program name

   BEGIN

   END;

   KEY K_Log()              //specifies the "LOG" key for modification of functionality

   BEGIN

   RETURN"logb(,3)";     //specified what you want returned when the "LOG" key is pressed

   END    

 

After running this code, press "Shift, User" prior to pressing LOG to execute the required base 3 log. Or press "Shift, User, Shift, User" to keep keep the user functionality active until you press "Shift, User" once more.

 

HP Recommended

I discovered the way to do this in RPN is 1 of two ways:

 

1: Log Template

a) Press the Math Template key and choose the logbN template (bottom row in the middle)

b) Fill in the base and argument and press Enter

c) Press Shift-,  (Eval)

 

  Example: [Template]  [LogbN]  [2]  >  [8] [Enter] [Shift] [,]

  The answer should be 3.

 

2: Quotes

a) Press Shift-( )  (quotes)

b) Press LOG

c) Enter the argument and base and press Enter

d) Press Shift-, (Eval)

 

  Example: [Shift]  ( )  [LOG] [8] [,] [2] [Enter] [Shift] [,]

 

Almost the same number of steps.

Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.