Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ ¹ ² ³ °
 

You are not logged in. #1 20100425 11:14:22
how to integrate using pythonis there a way to integrate without going through an entire list of numbers (Riemann sums and the like) or using symbolic integration while still getting an accurate answer? Visit calccrypto.wikidot.com for detailed descriptions of algorithms and other crypto related stuff (not much yet, so help would be appreciated). #2 20100425 11:33:24
Re: how to integrate using pythonHi calccrypto; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #3 20100425 13:42:24
Re: how to integrate using pythonim trying to write Cumulative distribution functions, like normalcdf, χ2cdf, tcdf Last edited by calccrypto (20100425 16:04:44) Visit calccrypto.wikidot.com for detailed descriptions of algorithms and other crypto related stuff (not much yet, so help would be appreciated). #4 20100425 16:13:51
Re: how to integrate using pythonHi; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #5 20100426 04:12:37
Re: how to integrate using pythonthanks! Visit calccrypto.wikidot.com for detailed descriptions of algorithms and other crypto related stuff (not much yet, so help would be appreciated). #6 20100426 04:42:00
Re: how to integrate using pythonIf you need any help with them just post back. In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #7 20100509 11:54:52
Re: how to integrate using pythonim having a little trouble. when doing normalcdf (using simpson's rule), the values are off slightly, but since the real values are small to begin with, the errors are pretty big. i need 2 values 0.219194 and 0.114866, but im getting 0.22649523318724421 and 0.13293551413661003 Visit calccrypto.wikidot.com for detailed descriptions of algorithms and other crypto related stuff (not much yet, so help would be appreciated). #8 20100509 15:31:29
Re: how to integrate using pythonHi cal; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #9 20100511 08:30:24
Re: how to integrate using pythonim trying to do ∫ normalpdf(x) (which i believe is e^(.5x^2)/sqrt(2pi)) dx for: Code:n = 100, z = 1.6  1.9 1  ∑ k from (n/z+1)/4 to (n/z+1)/4 of [normalcdf(100,(4k+1)z/sqrt(n))  normalcdf(100,(4k1)z/sqrt(n))] + ∑ k from (n/z3)/4 to (n/z1)/4 of [normalcdf(100,(4k+3)z/sqrt(n))  normalcdf(100,(4k+1)z/sqrt(n))] this is from nist's statistical tests for randomness Visit calccrypto.wikidot.com for detailed descriptions of algorithms and other crypto related stuff (not much yet, so help would be appreciated). #10 20100511 12:42:26
Re: how to integrate using pythonHi cal; Is this what you want? In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #11 20100511 20:21:16
Re: how to integrate using pythonno. 1.6/1.9 are the 2 values to use for z in that big mess i have in the code block Visit calccrypto.wikidot.com for detailed descriptions of algorithms and other crypto related stuff (not much yet, so help would be appreciated). #12 20100511 20:24:33
Re: how to integrate using pythonHi calccrypto; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #13 20100512 06:13:49
Re: how to integrate using pythonfrom 100 to the z scores, like normalcdf(100,1.6) (using 100 because infinity is a little too much), except the formula is a sum of normalcdfs Visit calccrypto.wikidot.com for detailed descriptions of algorithms and other crypto related stuff (not much yet, so help would be appreciated). #14 20100512 06:35:07
Re: how to integrate using pythonHi calccrypto; As you can see from above that your cutoff of 100 for  infinty is introducing a small but noticeable error in the CDF Below is a closed form for the CDF, If you put 1.6 in there you will get the value produced by the second integral 0.945200708300442. But for the life of me, I cannot determine how he is getting those 2 numbers. In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #15 20100512 08:09:25
Re: how to integrate using pythonthanks bobbym! Last edited by calccrypto (20100512 08:21:37) Visit calccrypto.wikidot.com for detailed descriptions of algorithms and other crypto related stuff (not much yet, so help would be appreciated). #16 20100512 11:45:18
Re: how to integrate using pythonHi calccrypto; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #17 20100512 12:16:02
Re: how to integrate using pythonim just trying to get a more accurate answer, to at least the thousandths place since for p values, they are usually between .01 and .1 ... Visit calccrypto.wikidot.com for detailed descriptions of algorithms and other crypto related stuff (not much yet, so help would be appreciated). #18 20100512 13:29:56
Re: how to integrate using pythonHi calccrypto; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #19 20100512 13:47:40
Re: how to integrate using pythonoh deary me... ive gotten myself into more complicated stuff than ive attempted to learn. oops. i think i'll hold off asking more about this for a few more months, when i finally get into college and have a better background in calc Visit calccrypto.wikidot.com for detailed descriptions of algorithms and other crypto related stuff (not much yet, so help would be appreciated). #20 20100512 13:56:55
Re: how to integrate using pythonHi calccrypto; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #21 20100512 20:19:58
Re: how to integrate using pythoni try to teach myself here and there and i have learned quite a bit since 2 years ago, but ive had limited experience with polynomials other than using polynomial division to write the AES algorithm in python (a big jump from having a lookup table). i still dont understand so much about polynomials that i would love to know, but are too advanced to learn by skipping around to something interesting that i see Visit calccrypto.wikidot.com for detailed descriptions of algorithms and other crypto related stuff (not much yet, so help would be appreciated). #22 20100512 20:47:14
Re: how to integrate using pythonHi calccrypto; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #23 20110815 21:05:26
Re: how to integrate using pythonHi carol33; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #24 20110903 10:32:50
Re: how to integrate using pythonCode:from scipy import integrate def myfunc(x, a, b): return (x**b) + a args = (1.0, 2.0) results = integrate.quad(myfunc, 0.5, 1.5, args) print 'Integral = ', results[0], ' with error = ', results[1] I have discovered a truly marvellous signature, which this margin is too narrow to contain. Fermat Give me a lever long enough and a fulcrum on which to place it, and I shall move the world. Archimedes Young man, in mathematics you don't understand things. You just get used to them.  Neumann 