What is the fastes way in C++ to convert an index with such a formation to X, Y and Z coordinates and back ?
EDIT:
I want for example get for the index 15 the numbers X=0, Y=1, Z=2, for the index 17 ...

I am reading The Algorithm Design Manual by Steven S. Skiena and came across the topic of logarithms. It just hit me that instead of using python for big ints in competitive programming, I could just ...

I have a file containing logged events. Each entry has a time and latency. I'm interested in plotting the cumulative distribution function of the latencies. I'm most interested in tail latencies so I ...

Problem:
The ggplot manual clearly states that scale_y_log10() and coord_trans(y="log10") behave differently. The first transforms data, the second transforms coordinates. As such, the former cannot ...

I'd like to create a bar-chart, where the X axis would include hundred of thousands of data points.
Thus, I need to employ the logarithmic scale. Alas, X == 0 is a valid data-point.
BTW, the Y axis ...

I am using a formula to calculate a parameter, the formula involves taking logarithm of a value which can be zero at times. To handle such case, I read in literature the technique to put some delta ...

I am trying to several logarithimic lines in the one plot with "semilogx fuction" by python. However, only one line goes to zero and other lines don't exactly go to zero even though they should go to ...

If I change the y-axis type to logarithmic on the meteogram example of the highcharts demo, the temperature line stops being visible. Is this a bug or is there something in the code preventing it from ...

While working through a book on machine learning and computing entropy I came across this computation Math.log10(value) / Math.log10(2.)
This obviously yields a base 2 logarithm. But would someone be ...

I am revising for my exams and this question appears on a past paper:
Show that O(loga n) = O(logb n) for any choice of logarithmic bases a and b working from the mathematical definition of the order ...

The following function computes log(x + y) given the values of log(x) and log(y), avoiding overflows or underflows if x or y are very large or very small:
double log_add(double logx, double logy)
{
...

I'm new to MATLAB, and am working on a program that deals with frequency of the human voice based on microphone input. The biggest problem I am running into is that musical notes (what I am dealing ...

I recently read some java scientific code which needs to do a lot of multiplications.
The implementation use log value because the developer thought it's faster and preciser.
For example,
If he/she ...

Hi I am trying to create a macro that computes the base 2 logarithm of a number in C. The number is supposed to be the size of a table that is #defined also as seen below.
I searched around and found ...

Related to this question: Printf width specifier to maintain precision of floating-point value.
I want to print the significant digits of a number n represented using a double d as n = 2^d.
Is there ...

I need to write a different number in each decade, in the bottom or top of my logarithmic plot.
I have these numbers in an array N. There is a way to automate the process without write a for loop for ...

I'm trying to make a program to compute all primes smaller than a given number, and the natural logarithm of the product of all those primes. So because we're working with logarithms I could also just ...

I have some log-normal data. I would like to calculate means and confidence intervals on the log-scale and transform that for plotting on an the original scale. How can I do this in ggplot2?
Here's ...

What is the complexity of function f(n),preferably the Big-O notation, and f(n) satisfies the condition n = f(n).log(f(n)) ,f(n) > 1 .Let assume that log in base 2.
I tried to isolate f(n) from the ...

Am attending a online course and for this problem Am not able to get to the correct solution. Anyone please explain how to approach the problem? What is the order of growth of the worst case running ...

I have one value that is a floating point percentage from 0-100, x, and another value that is a floating point from 0-1, y. As y gets closer to zero, it should reduce the value of x on a logarithmic ...