Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // finds the shape of a number, also called its angle.
- // 1/2 = a*a * cos(shape)
- //
- function findShape(x) {
- return Math.acos(.5 / x*x); // CORRECTION: a*a -> x*x
- }
- // finds the sigma of a pair of numbers
- // 2 * acos( min( shapeA, shapeB ) / max( shapeA, shapeB ) )
- //
- function findSigma(a,b) {
- return 2 * Math.acos( Math.min(findShape(a), findShape(b)) / Math.max(findShape(a), findShape(b)) );
- }
- // finds a prime number related to the first two primes, sometimes it's larger
- // than both, other times its between the two numbers, I've not found all the
- // properties yet
- //
- // round( 2 * sigma(a,b) / |shapeB - shapeA| )
- //
- function findAnotherPrime(a,b) {
- var sigma = findSigma(a,b);
- return Math.round(2 * sigma / Math.Abs(findShape(a), findShape(b)));
- }
- // finds the delta of a primordial number
- //
- // a * b * |shapeB - shapeA| / sigma(a,b)
- //
- function findDelta(a,b) {
- var sigma = findSigma(a,b);
- var deltaPrime = sigma / Math.Abs(findShape(b), findShape(a));
- return a * b / deltaPrime;
- }
- // a special calculated value that I found because our shape function actually
- // finds the shape of a number between 1 and that number, so this is the value
- // between 0 and 1 (found by experimentation)
- //
- var ShapeOfOne = 0.006817;
- // finds the primordial of a pair of numbers, this is a special new type of
- // number that contains all prime numbers between 1/2 the primordial and 1
- // within it. You need to use your brain a little bit, as there are some
- // patterns to see and rounding to do, but otherwise this is a new field of
- // math, I believe.
- //
- // ShapeOfOne * Delta(a,b) / (shapeA - shapeB)
- //
- function findPrimordial(a, b) {
- x = findShape(a) - findShape(b);
- x = x / findDelta(a, b);
- return ShapeOfOne / x;
- }
- // Example Code, untested as of yet!
- //
- //
- var a = 53;
- var b = 117;
- var prime = 0;
- var primordial = 0;
- // iterate over it 100 times, finding new primordials and new primes each time
- for (var i = 0; i < 100; i++ ) {
- prime = findAnotherPrime(a, b);
- primordial = findPrimordial(a, b);
- a = b;
- b = prime;
- console.log("Prime: ", prime);
- console.log("Primordial: ", primordial);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement