Just curiosity about the standard sqrt() from math.h on GCC works. I coded my own sqrt() using Newton-Raphson to do it!

## Get reverse of an equation – JavaScript

Let's say I have this formula, for example: function getExperience(level) { let a = 0; for (let x = 1; x < level; x += 1) { a += Math.floor(x + (200 * (2 ** (x / 3)))); } return Math.floor(a / 4); } for (var i = 1; i...

## Why do the hash values differ for NaN and Inf – Inf?

I use this hash function a lot, i.e. to record the value of a dataframe. Wanted to see if I could break it. Why aren't these hash values identical?

## Given (a, b) compute the maximum value of k such that a^{1/k} and b^{1/k} are whole numbers

I'm writing a program in C++ that tries to find the minimum value of k > 1 such that the kth root of a and b (which are both given) equals a whole number.

## Given (a, b) compute the minimum value of k such that a^{1/k} and b^{1/k} are whole numbers

## Find first digit of a number using ONLY integer operations

I can't understand how to solve the problem that the teacher gave me. Given a number N (0 <= N <= 100), find its first digit.

## Round a decimal to the first decimal position that is not zero

I want to shorten a number to the first decimal position that is not null. The Decimal places behind should be rounded.

## Generate a list a(n) is not of the form prime + a(k), k < n

How to generate this list in Python? a(n) is not of the form prime + a(k), k < n.Here is the list on oeis http://oeis.org/A025043

## How to round to nearest even integer?

My last goal is always to round to the nearest even integer.For example, the number 1122.5196 I want as result 1122. I have tried this options:

## Math function to find the biggest multiple of a number within a range

I want to know if there is a math expression that I can use to find this relation between two numbers.