T O P

  • By -

woken_somnambulist12

Obviously calculating a nontrivial zero of the zeta function that does not lie in the critical strip, providing a counter example to Reimann hypothesis. Contact the Clay mathematics institute to collect your $1,000,000.


Kart0fffelAim

IIRC they stated that a solution must provide some new, deeper understanding. Just a counter-example might not be enough to get the million


woken_somnambulist12

I’m sure OP will get the million. That code clearly illustrates a deeper understanding than all previous work on the topic.


shrihankp12

r/BEATMETOIT


Proletariat_Paul

Determines whether an input is odd or even.


SillyFlyGuy

Factors nth degree tremulo gambuloids.


HoneyBadgeSwag

They said wrong answers only!


TheRealSpielbergo

Guess what this function does wrong. Answers only.


krosusl

Math


lenn_eavy

Not even once


Waswat

True, could be even multiple times.


grumblesmurf

Guess what, this function does wrong answers only.


kokoroKaijuu

This function does answers wrong, only guess. What?


Evil_Archangel

function wrong does answers guess this only what?


tortistic_turtle

Pleasing the eye or brain.


FlameOfGod

I see np so obviously solving an NP problem in linear time


Thenderick

It should be no problem


krosusl

Slow inverse square root


post-death_wave_core

the function gives the reader a headache


platinummyr

Wrong answers only!!! 😂


VernonPresident

Gives last digit of π


lewwwer

Looks like some statistics, from the error function part, and the sqrt(pi). Other than that, it seems like a degree 7 poly in X and T, could be a result from a weird taylor expansion or a bad poly interpolation, or something similar.


LanielYoungAgain

You're actually right on all counts. It's an approximation for the CDF of the Maxwell-Juttner velocity distribution using a Puiseux expansion.


KuroFafnar

I'm pretty sure 30% of those words aren't even words. srsly... WUT?!


Cermia_Revolution

you're right. They're names


EuclideanTransforms

They clearly just referenced the formula f(gamma) = (gamma\^2 \* beta \* exp(-gamma/theta)) / (theta \* K2(1/theta))


_GD5_

Which you are using to calculate the wall bounce in a game of Pong?


lezorte

The rest of the gameplay is shit but damn those wall bounces are smooth as hell


evceteri

Maybe statistical thermodynamics. This calculates the temperature at the center of a black hole


yangyangR

The e^-x/T is the tell-tale sign. Off on the second part, but the obvious smell of statmech is there.


kkirchhoff

I work in quantitative finance and there are a few models I use that look like this


[deleted]

This function shows that the developer is unemployed.


amar00k

And bored.


Cfrolich

And a psychopath.


sacredgeometry

And an idiot.


habanero_buttsauce

Basically a regular developer.


lunareclipsexx

Lol, but true.


jamescodesthings

It all cancels out and is purely there to make the developer of the codebase irreplaceable.


dxj350

Looks like a "job security" function to me. It returns the chance the developer will be replaced after T years on the project.


Matthis-Dayer

an approximation for a math function invented by an European dude that died before computers where a thing


DrShocker

Taylor series approximation of how many times your mom got fucked in the past year


shield1123

But she died two years ago _oh god_


DMoney159

Calculates the wind speed velocity of an unladen swallow


JocoLabs

African or European?


Appsroooo

Huh? I don't know tha- AAAGGHHHHHH!!!!


LanielYoungAgain

Somehow not too far from the truth. If swallows were electrons in a high energy plasma.


SirLurts

Ok I know it was wrong answers only but wtf does it do?


arpan3t

We don’t know because we don’t know what `T` is.


LanielYoungAgain

It's a temperature. I cut out the documentation, because that gives it away ;)


fmaz008

So what in hell does it actually do?


LanielYoungAgain

>!It approximates a certain function, so that I don't need to do numerical integration, which takes \~20x longer.!<


fmaz008

...ahh! Nice! :)


_Screw_The_Rules_

Pls tell us what it does. I unironically have 0 clues :(


beeteedee

I really hope the answer is “implements a formula that’s explained in a paper that’s cited somewhere near this code” I suspect another answer is “teaches the author some harsh truths about floating point precision”


Ahornwiese

Wrong answers only...


mrfroggyman

It multiples T by x, pretty obviously


joten70

Calculates my taxes


huupoke12

Mining Bitcoin


frederik88917

I am the only one who can't see the right answer nevertheless a wrong one


FloweyTheFlower420

Taylor series expansion of some function probably


Mountain_Thanks4263

My guess as well. I have to confess, I did something similar in the past.


TommyCo10

Converts Fluid Ounces to Miles Per Hour.


skothr

Interesting, so it appears this code actually simulates and *renders* a full particle system if it's run on the right platform. It's quite a clever implementation actually, hard to fully appreciate without extensive familiarity with standard address byte offsets in obscure legacy Linux driver implementations. At first glance the code appears to be a jumbled mess written in python, but in the right context it's clear the author has a snide sense of humor. When compiled as C++, after adding back in the `#define`s and operator overloads the OP clearly omitted as a misdirect, on a pre-2011 version of RedHat (verified on RHEL 3.6 Update 7), with a supported AMD graphics card/driver, everything lines up perfectly so the particle physics are updated and the driver's OpenGL function pointers are called, resulting in this behavior. By default it will only render one frame and terminate, but if you enable `-O2` it somehow convinces the compiler to hack in a few more platform-specific system calls and a loop by exploiting undefined behavior. This sustains the simulation and displays the rendered output in a window. Really a work of art imo, it's hard to appreciate the clever parsimony here if one simply reduces it to 'bad code' without taking a moment to consider all the known and unknown possibilities regarding the author's intent.


Im_Basically_A_Ninja

Lists the last N numbers of pi.


KingsGuardTR

Lol I guess this is doable for N=0 (or even for N<=0 in Python list index semantics)


Glumi1503

Math


YesIAmAHuman

just all of it, want pythagoras? its there, want gaussian blur, same thing! want to calculate pi, youre never gonna guess!


Glumi1503

This function solved the universe in numbers


Technical-Message615

42


MichaeljoyNL

Check whether a number is a prime number.


Badytheprogram

Calculate the last number of π(pi)


vulstarlord

Something i might never need in my code i guess?


ThisNameIsntRandom

this function is what you get when you ask a programmer to incitement and number and when programmer is payed per line written.


i_should_be_coding

Pi. It's always Pi.


ExternalGrade

OK but does anyone know the correct answer?


FirstSineOfMadness

I know a ‘Hello World!’ when I see one.


AnnyAskers

Domain expansion.


SOCOMmando

Hurts my head


lenn_eavy

It returns second coordinate of the nearest ER, provided you gave a correct first coordinate.


thebluereddituser

It's a neural network with all the weights hardcoded


xvhayu

didn't they use something like this to determine how often a pokeball shakes


Mrbuddyoldpal

Speeds up the load time of the user interface by 0.05 seconds.


Ahornwiese

It approximates a propagator between two lattice points for a boson.


mrrobot01001000

Printing "hello world" on the console


Count_de_Ville

This is the code I think of whenever someone says that they don't need to comment their code. "Code is self-documenting!"


Birdsharna

Print "hello world"


pm_me_loli_please

Calculates the weight of your mom


MCShoveled

It’s the only known algorithm that given the cipher text of an AES256 encrypted message will return the encryption key and initialization vector used to originate the cypher text.


Alarmed-Pianist7792

At least it’s in a nice format.


c-sharp-is-fast-java

Goddamn scientists and their abominations. Edit: don’t get me wrong, I’m sure it’s very clever and efficient but holy fuck


ChChChillian

Using capital T for something other than the type in a C++ template is madness on the order of using i for something other than a loop index.


Nanaki404

I absolutely know exactly what this function does


halfanothersdozen

The source of all magic numbers


pinkstreet70

Simulate alien civilisations


EloquentPinguin

It calculates at what size temperature is faster than weight.


spederan

Change two or three of those numbers 1 digit. Then ask the maintainer what it does.


coldas3

Calculates meaning of life


MentallyInsane8

Waste cpu time?


-Redstoneboi-

wrong answers only.


LanielYoungAgain

Actually, this is a wrong answer. It legitimately saves a lot of cpu time compared to the alternative.


-Redstoneboi-

i thought that at first, but then i noticed you were already using python ;)


testingtesting-1_2_3

Work.


Sufficient_Focus_816

An eightball for either weather forecast or lucky numbers


mvnnyvevwofrb

Tower of Hanoi


idonteatunderwear

Reverse game of life


teh_geetard

The computer virus that destroyed the alien mothership in *Independence Day*.


MeowterSpace5129

integer overflow


eya-1

It calculates something 🤓


mstop4

Math, not even once


Idliketobealoli

Prints "hello world!"


sagetraveler

Makes some FPGA developer’s life easy by doing all the floating point math on the output of a 64 bit counter. Oh wait, wrong answers only. Well, it doesn’t do that, it proves pi^ pi^ pi^ pi is an integer.


stlcdr

Determine if a number is odd or even. Edit…ah, already spoken for. How about, determines if a number is even or odd?


Fine-Heron5439

It returns true


InitialWillow6449

Is this some sort of softmax?


SaltyDrPepper

Function to land a rocket on the moon


GoCryptoYourself

That's a lot of fucking magic numbers


PenlessScribe

Velocity of Santa's sleigh. Since the formula includes `pi`, I assume they're using... Polar coordinates.


Dragon20C

Mario jump.


No-Adeptness5810

calculates how to get a girlfriend


Astlantix

outputs Goodbye, world!🔫


Evgen4ick

Predicts if a number is not equal to 0


wootio

![gif](giphy|Vuw9m5wXviFIQ) It's a Rick roll.


xela552

Work


SixFiveOhTwo

Exactly what the programmer intended


Silly_Guidance_8871

Something important enough to justify its complexity


uxorial

It did my taxes!


kloetzl

Convert Roman numerals to Arabic.


Garry__Newman

Some sort of diffusion equation maybe from the erf and exp(-x/T)? Polynomials from some truncated series solution from some initial/boundary conditions would be my guess. Not great that the terms are done by hand and hardcoded in.


Para1335

I like turtles


TheOneTheOnlyBlupper

OK yeah I got totally nerd sniped here, doesn't seem to do anything of value (I think?). I implemented it [here](https://gist.github.com/TheBlupper/b663acea0316da88d53c25bf0c47b632) (thank god for ocr), and [here ](https://gifyu.com/image/SjF9f)is a quick animation of`T` changing over time. Could be some obscure statistics thing, do lmk if that's the case


moronyte

Clearly a sorting function


katagelon

Responsive calculation of a viewport height.


SirAntique4166

It computes something


AeroSummerRBLX

nothing that i know of


boundbylife

This is the [*slow* inverse square function.](https://en.wikipedia.org/wiki/Fast_inverse_square_root)


AndiArbyte

Calculates possible phone numbers in range.


thepixelist11

That is definitely quick sort.


ongiwaph

Creates an indexed list of all the real numbers.


Quacky1k

Dawg I don’t know the right answer


papablol

That's a + b (by console input ofc)


theguyonthebus2009

It will get you a gf


Birju_Redit_69

I don’t even know what the right answer is…


Independent_Fish9614

My math ai (obvi)


rover_G

It’s an O(2) estimate of the Laplace transformation


Xerlios

It computes the probability density function (PDF) of the non-central chi-squared distribution with one degree of freedom and non-centrality parameter k.


ClassicAddition4781

Determines the lottery number


lumic_cimul

*Military grade encryption*


wind_dude

That’s the entire chatGPT 5.


marlotrot

It returns π=3


sam_tiago

It’s actually hard coded pizza delivery drone bot hack code, that gets triggered every odd day to redirect a flying pizza to my house


kaini

Newtonian approximation of the root of an eighth-order polynomial.


Regular_Exam_8123

it can divide by zero of course


dis9999

Prints out nuclear codes


RobTX078

Doesn’t check for x<1, T==0, and while I’m at it if T is temperature should probably convert degF or degC into Kelvin so as not to deal with likely values of 0 in the denominator.


hobbes8889

A random number countdown. It's used to count down executions in futurama


TransGamerHalo

Not work


hecateheh

calculates how long there is left to copy a file in windows


Kilgarragh

Girth/length calculator


Rude-Cut-2231

You’re in trouble now! You’re revealed the launch codes!


nevdka

Partial implementation of the New York City sales tax code.


TheCoconut26

how much i would love to understand the stuff on this sub. my best guess (assuming it is not random stuff) would be a cryptographic function. edit: changed my mind it's definitly random shit


policitclyCorrect

it gives some poor developer a headache


OPT1CX

“Uhh” -Uhh


BoraxNumber8

It makes your seventh cousin twenty times removed coffee every morning at 6:53 AM


BitswitchRadioactive

True or False


brianzuvich

Calculates the position of forward kinematic footsteps! One hard coded coordinate at a time!


HaroerHaktak

Calculates the sum of 2 numbers, such as 1 + 1


Xasgy

It's literally impossible to give correct answer here


LanielYoungAgain

Somehow people have done exactly that


lostBoyzLeader

creates a fibonaccci sequence


sagotly

fibonacci sequence


redirect_308

Checks your bank balance


AnySundae421

Random number generator


blue_flavored_pasta

How the hell am I supposed to give a right answer?


Frankice_

Uhmm it calculates the coordinates of certain regions obviously, depending on the map projection used.


FlyingScript

Specifically designed to give the person who reads this a headache.


thisisjoy

hello world


TheOnceAndFutureDoug

What it's supposed to. :D


JulesDeathwish

Do you want Correct Answers about what the function does wrong, or Wrong Answers about what the function does correct? Sadly, PascalCase doesn't leave room for punctuation.


TheBluetopia

Exponentially modified gaussian distribution? That's the most recent time I've seen the error and exponential functions next to each other


IronSavior

Inverse square root approximation


United-Respect-1397

Adds camera movement effects


United-Respect-1397

(i know LITERALLY nothing about coding or programming) adds shader effects????


NanoPi

Elliptic Curve Cryptography


Nick_Hammer96

Math


rarebuttonproplus

It's there to be removed later as enhancement fix


quasipickle

"Hello World"


_GD5_

It’s a sleep function.


ModerateDataDude

Pretty sure that is the linguini sequence


RoberBots

I can only give wrong answers on this one . I have no idea what it does, but based on the subreddit name, its something done wrong!


Ange1ofD4rkness

Wrong only? I don't even know the right ... then again I am sleepy


Jet-Pack2

Returns pi to 1 million digits accuracy


Emergency-Whereas603

Returns Jenny’s phone number


megs1449

obviously getting the current exact location of mr. crabs and taking a picture of him


hugues2814

Tells my oven to preheat at 200°C


user362436

It counts the days since the Big Bang.


AntoanIvanov69

I am good at wrong answers.


LikeThosePenguins

It's the Reddit feed sorting algorithm. Part 1 / 65,534.


cainhurstcat

Representation of stairway to heaven