Im working on RSA so I'm dealing with very large numbers (308 digits). In RSA a number N is the product of 2 primes p and q. My N: For the task I' ...
Im working on RSA so I'm dealing with very large numbers (308 digits). In RSA a number N is the product of 2 primes p and q. My N: For the task I' ...
I'm having performance issues when trying to check whether integer n is a perfect square (sqrt is a whole number) when using BigInt. Using normal numb ...
Is there a way to do a substitution in sympy of all occurences that satisfy a given pattern? For example, if I have an expression that contains multip ...
Write a program in python to list the special trianglesperimeters of which are less than 500 (no user input). I tried writing this but it didn't ...
Just trying to create an analog of sqrt() in Swift, but it throws .noRoot in all the matched cases. Also I add the error .outOfBound, this is working ...
How I can diff with sympy next code : How I can sqrt or something else with symbol? ...
In the for loop why is the sqrt function is used? Because for checking if the number n is a prime number, shouldn't we check till n? ...
I am trying to find a fastest way to make square root of any float number in C++. I am using this type of function in a huge particles movement calcul ...
I need to calculate the square root of some numbers, for example √9 = 3 and √2 = 1.4142. How can I do it in Python? The inputs will probably be all p ...
I am trying to approach the rooting Swift exercise without using sqrt() method. My idea was following: But on the lines I left comments for you, I ...
I am trying to calculate the square root of each element of the .diagonal() of a Eigen::Matrix3d. Using std::sqrt(matrix.diagonal().row()) will ...
I am working on a project where I must design some code that models and simulates 2D particle collisions in a gas. The collisions are assumed to be el ...
We all know that the Pythagorean theorem formula is: a2 + b2 = c2. I wanted to implement this formula, for calculating the distance between two points ...
I'm new to this site, I'm recently trying to learn how to code in Python again, and now I'm doing an exercise that I could complete, but it's happenin ...
I'm leaving the title more general, but I specifically want a fast 64-bit square root (sqrt) function for inputs between 0.5 and 1.0. (Actually, some ...
I'm receiving this error and I'm not really sure why considering I've got the import math line there. NameError: name 'sqrt' is not defined EDIT: ...
I'm compiling c++ to web assembly using clang --target=wasm32 --no-standard-libraries. Is there a way to convince clang to generate sqrt? It's not fin ...
I know in this site homework or assigment stuff is not really welcome but I need help. I have an homework it contains 2 questions I already finished f ...
I have been implementing control software in C and one of the control algorithms requires square root calculation. I have been looking for suitable sq ...
Let me pose a hypothetical question. Given these two blocks of C# code, is the second version faster? I've researched and tested/timed this quite a bi ...