Top "Logarithm" questions

The logarithm of a number is the exponent by which another fixed value, the base, has to be raised to produce that number.

Plot logarithmic axes with matplotlib in python

I want to plot a graph with one logarithmic axis using matplotlib. I've been reading the docs, but can't figure …

python matplotlib scale logarithm
ValueError: math domain error

I was just testing an example from Numerical Methods in Engineering with Python. from numpy import zeros, array from math …

python runtime-error logarithm
How do you do natural logs (e.g. "ln()") with numpy in Python?

Using numpy, how can I do the following: ln(x) Is it equivalent to: np.log(x) I apologise for …

python numpy logarithm natural-logarithm
How to expand and compute log(a + b)?

I would like to know the complete expansion of log(a + b). For example log(a * b) = log(a) + log(…

math logarithm
How do you calculate log base 2 in Java for integers?

I use the following function to calculate log base 2 for integers: public static int log2(int n){ if(n <= 0) …

java performance discrete-mathematics logarithm
Log to the base 2 in python

How should I compute log to the base two in python. Eg. I have this equation where I am using …

python logarithm
Python math module

Whenever I try to use any of the built-in functions of Python's exponentiation and logarithms module, I get an error …

python math module import logarithm
Histogram with Logarithmic Scale and custom breaks

I'm trying to generate a histogram in R with a logarithmic scale for y. Currently I do: hist(mydata$V3, …

r histogram logarithm
python: scatter plot logarithmic scale

In my code, I take the logarithm of two data series and plot them. I would like to change each …

python matplotlib logarithm
set ticks with logarithmic scale

It seems that the set_xticks is not working in log scale: from matplotlib import pyplot as plt fig1, ax1 = …

matplotlib plot logarithm