and everything about him
banned-users
Phi Kappa Chi ΦΚΧ <a:yeah:589703000977571860><a:ppHop:536353159615086612>
Jump to date
Saturday, September 23, 2017
Haha my dudes I did it
you ended it all?
nice.
Got it to work
you shouldn't need to cast as float when you specify 1.0
I did not specify as 1.0 at first
forgot to take that out
wanna see my version? Kappa
doesn't python 3 need things casted
and sure
specifying the decimal casts to float
alright
i was bored so i wrote a much more in depth version of what you were working on
Already excited
from math import sqrt
import numpy as np
import matplotlib.pyplot as plt
def centeredgen(L):
for i in range(L+1):
for j in range(L+1):
for k in range(L+1):
yield i,j,k
if k > 0:
yield i,j,-k
if j > 0:
yield i,-j,k
if k > 0:
yield i,-j,-k
if i > 0:
yield -i,j,k
if k > 0:
yield -i,j,-k
if j > 0:
yield -i,-j,k
if k > 0:
yield -i,-j,-k
if __name__ == "__main__":
L = 30
M = 0.0
a = []
gen = centeredgen(L)
next(gen) # skip the 0,0,0
sign2 = lambda n: " " if n >= 0 else ""
sign = lambda n: " "*(3-len(str(n)))
for i,j,k in gen:
h = ((-1.0)**(i+j+k))/sqrt(i*i+j*j+k*k)
M += h
a += [M]
print("%s%d,%s%d,%s%d -> %s%01.4f => %s%01.4f"%(sign(i),i,sign(j),j,sign(k),k,sign2(h),h,sign2(M),M))
print("\nMean estimate: %.4f" % np.mean(a))
plt.plot(a)
plt.show()
rip me
are you using 2.7 or 3.X?
I used 2.7 to do this, I have no fucking idea what the course wants
he told us we were using 3, but told us to download 2.7
in 2.7 you should use xrange instead of range
what is the difference?
in 2.7 range creates a list of all of the values and then iterates through them
xrange is a generator
so it spends time allocating all the values and wastes memory
will keep that in mind for next time. After spending 10 hours on this, I am fine with it as is
having wrote and rewrote it from the ground up 3 times
my centeregen is a generator
it goes through the code until it hits yield, then continues the next time its used
How many times did your thing run it?
i did L=30
ah, thats why
it is much more accurate than mine for L=30 lol
but thats fine with me
well i wrote it so i could take a mean safely
I’ve made a new icon and banner for myself
good banner
Kappa
It is pretty good
Kapap
Nice joke twitter
Haha my dude
fuck you m8
Kappa
Put all your points in bartering
you should put it all in telekinesis tbh
probably the most useless skill
Sunday, September 24, 2017
Fire buy me the FEW dlc
Kappa
new twitch vodchat makes me mad
Monday, September 25, 2017
Original Pokemon Theme Sung in Japanese
Translation and Coaching By Yukiko Sumi Big Thanks to all the fans who came out JULY 4th to LA's Anime EXPO. http://www.anime-expo.org/guests/jason-paige/ To...
youtu.bewat
Why
chiller is best font
holy shit those hashtags
Ha ha
This is the only way I can pretend to talk to you guys Kappa
Kappa
God damnit pika
Sorry, 13 hour days make me tired
Kappa
hey pika
did you get the soundtrack version of divinity?
it's pretty worth
Tuesday, September 26, 2017
And thus concludes the most retarded game I have ever purchased
I thought you didn’t have a lot of spare time Kappa
that is true
man, that must have been an insane amount of achievements per hour
you must have got an achievement for everything you do every 2 minutes
