Recent content by wrong_class
-
W
Python Finding primitive roots using python
can you show me? I am not seeing it. I didnt put this in, but later on, I am going to be choosing a random value from the primitive roots to use for calculations- wrong_class
- Post #9
- Forum: Programming and Computer Science
-
W
Python Finding primitive roots using python
hm... you gave me an idea...since i don't need the actual list, i'll calculate the actual totient value, rather than the set that makes them up. i do need the list, which is a problem im using values up to 2048 bits. since the values I am getting are changed so that they become the closest...- wrong_class
- Post #7
- Forum: Programming and Computer Science
-
W
Python Finding primitive roots using python
def gcd(a, b): a, b = max(a, b), min(a, b) c = 1 while c: c = a % b a = b b = c return a def tot(n): phi = [] x = 1 while x < n:# not for x in xrange(n) because the input is too big for xrange if gcd(x, n) == 1: phi += [x] x += 1 return phi pow is the built in command...- wrong_class
- Post #5
- Forum: Programming and Computer Science
-
W
Python Finding primitive roots using python
Im not using any library at all. I like to write programs with as few outside sources as possible. my code is currently: def prim_root(value): # `tot` gets the list of values coprime to the input, # so len(tot()) is the correct totient value totient = tot(value) roots = [] exp =...- wrong_class
- Post #3
- Forum: Programming and Computer Science
-
W
Python Finding primitive roots using python
Im not sure if this should go in the math/number theory section or here, but here it goes: how do programs calculate the primitive roots mod n of extremely large primes? My program will only go up to 12-14 bits before having memory errors caused by storage of the totient of the prime number...- wrong_class
- Thread
- Primitive Python Roots
- Replies: 9
- Forum: Programming and Computer Science
-
W
What Do e and V Represent in the PN Junction Current Equation?
What are e and V in exponent of the equation I = I0(eeV/kT - 1)? is it really one variable "eV", as in electron volts, or is e just 2.718... and V for volts?- wrong_class
- Thread
- Current Junction Pn junction
- Replies: 3
- Forum: Advanced Physics Homework Help
-
W
Weird Dot Product Homework Q: Unusual Answer?
can someone clarify this for me?: given r(t) is a vector, how do you find the line integral if f(x(t),(y(t)) returns a scalar? A vector? do you always get 2 scalars (magnitude of f and magnitude of r' ) and multiply them? do you take the gradient if f is scalar and then dot deL_f and r' ?- wrong_class
- Post #5
- Forum: Calculus and Beyond Homework Help
-
W
Weird Dot Product Homework Q: Unusual Answer?
so the integrals are different. So why did someone who learned this already tell me these two are the same? thats the answer I am getting. thanks!- wrong_class
- Post #4
- Forum: Calculus and Beyond Homework Help
-
W
Weird Dot Product Homework Q: Unusual Answer?
Homework Statement i have the vector m(x(t), y(t)) = r = (s^t cos(t), e^t sin(t)) and want to find the line integral of itHomework Equations 1. \int m \centerdot r' dt 2. \int |m| |r'| dtThe Attempt at a Solution the answer is sqrt(2)/2 (e^pi - 1). when i do the problem the first way, i do not...- wrong_class
- Thread
- Dot Dot product Product Weird
- Replies: 4
- Forum: Calculus and Beyond Homework Help
-
W
LC Ocillations given only one piece of data
if the period is 2pi, then it would be at T = pi/2? edit: forget it. it was a "N". my mistake- wrong_class
- Post #8
- Forum: Introductory Physics Homework Help
-
W
LC Ocillations given only one piece of data
T/4. so.. divide my answer by 4?- wrong_class
- Post #6
- Forum: Introductory Physics Homework Help
-
W
LC Ocillations given only one piece of data
2 times?- wrong_class
- Post #4
- Forum: Introductory Physics Homework Help
-
W
LC Ocillations given only one piece of data
anyone?- wrong_class
- Post #2
- Forum: Introductory Physics Homework Help
-
W
How can I use the range equation to find the initial velocity of a projectile?
You know the x distance: x0 = 0, xf = 23m, so 23 = Vx * t gives you Vx you have the y time: solve for Vy with 0 = Dy(t). there will be 2 answers: 0 and the Vy you are looking for- wrong_class
- Post #4
- Forum: Introductory Physics Homework Help