New answers tagged math
Score of -2
-2
votes
Why is an octal number the result of dividing a decimal number by 8 and getting the remainders?
Octal is to 8 what decimal is to 10, hexadecimal is 16, and binary is to 2.
When you write the number ten in decimal, you write 10, which is the same as 1*10^1 + 0 * 10^0.
In binary, it's 1010: 1 * 2^...
Score of 0
0
votes
How to integrate bessel function with variable bounds?
TL;DR
You are facing two problems:
Wrong call of quad which requires a function not a number;
Missing vectorization to recompute your integral for each x.
MCVE
Here a MCVE slightly adapting your ...
Score of 0
0
votes
Goldbach's Conjecture - Find the number of ways an even number can be written as the sum of two primes
For 1 billion I get 2274205 for 100,000 I get 291400. This result is the same as the sieve above. Except this is brute force. This code is way slower than the sieve of 6k numbers. Tried this to ...
Score of 0
0
votes
Fast but accurate trigonometric modulo range reduction for moderate magnitude inputs
The method of fast reduction of trigonometric functions using the sine function as an example is described in the article "Fast argument reduction of the sine function based on assembly ...
Score of 0
0
votes
Subtracting a large unsigned binary number from a smaller one
0101 0111 1101 (1405)_10
-1110 1011 0110 - (3766)_10
0110 1100 0111 (-2361)_10
If we(2's) complements the answer then we find the decimal equivalent answer.
such,
0110 1100 0111 &...
Top 50 recent answers are included
Related Tags
math × 46274python × 7198
algorithm × 6159
javascript × 5202
java × 4841
c++ × 3253
c# × 3103
geometry × 2344
c × 1902
php × 1718
arrays × 1262
matrix × 1160
3d × 1096
matlab × 1094
trigonometry × 1044
numpy × 1008
python-3.x × 924
random × 830
statistics × 827
vector × 822
function × 809
floating-point × 791
r × 724
android × 690
graphics × 645