Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1025243 // log - natural logarithm or logarithm with base

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (32L/1K).

static double log(double d) {
  ret Math.log(d);
}

static double log(double d, double base) {
  ret Math.log(d)/Math.log(base);
}

Author comment

Began life as a copy of #1012267

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025243
Snippet name: log - natural logarithm or logarithm with base
Eternal ID of this version: #1025243/3
Text MD5: f57e958822065e299baa3d3732a743ce
Transpilation MD5: 29fff348904de841bf3dd3418137548a
Author: stefan
Category: javax / math
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-20 07:35:50
Source code size: 136 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 201 / 278
Version history: 2 change(s)
Referenced in: [show references]