Questions tagged [integer-arithmetic]

All things associated with integer arithmetic, such as performing mathematical operations on integer values. This pertains mostly to programming languages that use designated data types to represent integers (such as `int` or `long` in C, C++ or Java).

How to calculate the logarithm of a positive number in Python and deal with the result of negative

Displayed below is an image: HI00008918.png The goal is to implement a logarithmic function (f(x) = (1/a)*log(x + 1), with the value of a = 0.01), on the image... Here is the code segment: import numpy as np import matplotlib.pyplot as plt import skimage ...