You are not logged in.
I'm trying to get my site to look somewhat authentic for my presentation, but im not very creative with words, so can people please go to
http://greenermarkets.wikidot.com/products:green-product-1
and
http://greenermarkets.wikidot.com/products:bad-product-1
and go crazy with random words about how good/bad each "product" is? add pages if you want, as long as they make sense
Hopefully this is in the right place:
Can anyone think of any way to increase a number by a lot, say at least 2^32 (not by just adding 2^32), with no estimation (so integers only), in a way that is very hard to reverse, even if you know the formula(s), but is easy to implement in a program and not computationally expensive. my main goal is to use the sum of all the values that went into the formula(s) as the output, and that value has to be very hard to decompose back into the individual values
currently, im squaring the values, moving a couple of bits around (since this is done in a program) and then adding them.
i 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
oh 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
thanks so much for the help bobbym!
im 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 ...
you know what? forget this. i have another question: how do you use the GaussKronrod quadrature formula to integrate? what's with those special nodes?
thanks bobbym!
and the values came from 1-(sum of a bunch of normalcdfs)
edit: oops. i think i referred to the wrong pages. the number on the actual page says 54, but the pdf page says 63. the formula is on the bottom of (pdf) page 62
from -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
i dont know if this helps but: http://www.scribd.com/doc/11305936/NIST-Statistical-Test-Suite-for-Random-and-PseudoRandom
page 63; 2.14.8 Example
no. 1.6/1.9 are the 2 values to use for z in that big mess i have in the code block
im trying to do ∫ normalpdf(x) (which i believe is e^(-.5x^2)/sqrt(2pi)) dx for:
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,(4k-1)z/sqrt(n))] + ∑ k from (-n/z-3)/4 to (n/z-1)/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
im 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
i wrote this python code, which from wolfram says that its supposed to return the factorial of any positive value (i probably messed up somewhere), integer or not:
from math import *
def double_factorial(n):
if int(n) == n:
n = int(n)
if [0,1].__contains__(n):
return 1
a = (n&1) + 2 # checks if its even or odd and starts the a value at 2 or 3
b = 1
while a<=n:
b*=a
a+= 2
return float(b)
else:
return factorials(n/2) * 2**(n/2) *(pi/2)**(.25 *(-1+cos(n * pi))) # go to the next definition
def factorials(n):
return pi**(.5 * sin(n*pi)**2) * 2**(-n + .25 * (-1 + cos(2*n*pi))) * double_factorial(2*n) # go back up
the problem is , say i input pi to 6 decimal places. 2*n will not become a float with 0 as its decimals any time soon, so the equation turns out to be
pi**(.5 * sin(n*pi)**2) * 2**(-n + .25 * (-1 + cos(2*n*pi))) * double_factorial(loop(loop(loop(...)))))
how would i stop the recursion and still get the answer?
ive had suggestions to add an index to the definitions or something, but the problem is, if the code stops when it reaches an index, there is still no answer to put back into the previous "nests" or whatever you call them
thanks!
im trying to write Cumulative distribution functions, like normalcdf, χ2cdf, tcdf
hello bobbym
is 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?
i think what you are asking for is a complier. python complies programs when you import them, but you still need python to run them. you can try "cx_freeze" to compile your programs (and add an icon pic), but they still need python to run them. i dont think you cant simply make an app or something and expect it to run on someone else's computer. ive tried, but nothing works, so far
and why do you need IDLE? cant you just run the scripts in cmd or double clicking the file?
thanks for visiting. sorry my site isnt fully compatible with your computer
sorry for the repeat
Kerckhoffs' principle
In cryptography, Kerckhoffs' principle (also called Kerckhoffs' assumption, axiom or law) was stated by Auguste Kerckhoffs in the 19th century: a cryptosystem should be secure even if everything about the system, except the key, is public knowledge.
Kerckhoffs' principle was reformulated (perhaps independently) by Claude Shannon as "The enemy knows the system." In that form, it is called Shannon's maxim. In contrast to "security through obscurity," it is widely embraced by cryptographers.
Show the algorithm but not the key. if it can be reconstructed without the key, it is breakable. i doubt that i can do it, but a really good cryptanalyst can probably do it
I'm writing a hashing algorithm that generates arbitrarily long hashes. the problem is, if i use one long string/list of data, the computer will run out of ram. one of the only efficient way to generate the hash is the Merkle-Damgård construction (the other methods might become copyrighted, so i'd rather not use them). however, that involves breaking data up into many pieces, called blocks, and then running each block through the actual algorithm. the question is, how big should the blocks be? I want them to be at least B (output length in nibbles) * 4 bits long, but not too large. however, the last block of data could be much smaller than the number generated by the function (that i want to find), causing errors
basically:
too big blocks→ too much time running through each block, RAM runs out
too small blocks→ the end result will be too small, too much time is wasted running through the numerous blocks, wrong output size
given A = (any value ≥0) input size in bytes, B = (any value >0) output size in nibbles (4 bits), is there a good function f(A) or f(A,B) that will tell me how large a block should be?
program page: http://calccrypto.wikidot.com/hash-2x-v2