Are you a probabilist or a physicist?
Hermite polynomials refer to two sequences of polynomials:
The "probabilist's Hermite polynomials", given by
$${He}_n(x) = (-1)^n e ^ \frac {x^2} 2 \frac {d^n} {dx^n} e ^ {-\frac {x^2} 2}$$
where \$\frac {d^n} {dx^n} f(x)\$ refers to the \$n\$th derivative o...
If you use polynomial coeff lists, then the recurrence relationship is very easy. Multiplying by x is just prepending a 0 (little-endian), and then you just subtract elementwise for the subtraction
The base case is the long bit in Jelly, otherwise the recursion is just 7 bytes
Background
In Haskell and many other functional languages, function application f(x) is simply written as f x. Also, this form of function application is left-associative, which means f x y z is ((f x) y) z, or ((f(x))(y))(z).
Haskell also has a binary operator called $. f $ x does function appli...
Searching for my real name gives a couple of (non-social) profile pages, and then a Dyalog blog post. The rest are totally unrelated because both of my first and last names are not that rare
@RedwolfPrograms The biggest Korean search engine gives like ten different sponsored results that read like it, for literally any search term (though they're about shopping, not education)
i get your site alongside a sub-result with your Merchant game, then your gh, then the risky repo, then your political simulator gh page, then your infosec SE page (???), then SO, then your UX SE, then The Great Outdoors, Physics, and WB (all of the front page is you)
yeah and everything else seems to just be your SE presence (no space)
i should make it my life goal to be below no more than ten results for earrings in search results
2
there are a few results for people with my first name performing an activity related to my last name but even those are absolutely drowned out by the earrings
but I do need to sort arrays of them quickly and qsort is much much slower than radix sort it seems for ints. If only I could get my uint128 sort to work!
It's mysterious to almost everyone. The point is that you should trust the compiler to give reasonably optimized program, not fight with it by making the code hard to read and write
And if you can't figure out how to introduce loops in that program, you should study/practice more, not bug other people to do it for you
Counting saturated domino placements code-golf grid dominoes tiling
Background
A saturated domino placement (SDP) on a rectangular grid is a non-overlapping placement of zero or more dominoes, so that no more dominoes can be added without overlapping some existing domino.
Alternatively, it can be...
How many dominoes can you fit here? code-golf restricted-complexity dominoes grid binary-matrix
Much harder than Can this pattern be made with dominoes?
Challenge
A grid of width \$w\$ and height \$h\$ is given, filled with 1s and 0s. You can place a domino somewhere on the grid only if both cell...
The C++ template system is Turing-complete at compile time.
Your challenge is to procedurally generate an image using the template system.
You must write a template class or function which takes exactly one template parameter (which is a compile-time integer constant which is the seed which will ...
In this question, it says "it must continually print 1s and only stop if the program is killed or runs out of memory." Would hitting a recursion limit be considered "running out of memory"?
@cairdcoinheringaahing I was reading the wikipedia article about polyglots, scrolled down to the external links, and saw a really neat-looking one that simply said "A polyglot in 300 different languages"
@pxeger Enforcement of Quality Standards; it's a Math.SE specific thing to control content quality, specifically questions, since a lot of people think they can just dump a homework question's problem statement and get a free answer (among other poorly formatted and badly constructed questions).
and specifically the policy is around answering - people shouldn't answer those types of questions because even if the question goes like -6, OP still gets their answer
We don't really need a live count of your reputation; it's fine to be proud of getting large milestones but you've mentioned your rep at least four times in the past day or two.
@cairdcoinheringaahing Oh yeah, I forgot I made changes to ? as well. I'm not sure if that was what you intended or not, but it was changing that node to be one of its branches, and I changed it to instead change the value of the node to be the value of one of its branches, so the structure of the tree remains unchanged.
@cairdcoinheringaahing oof, I could've sworn I used spaces instead of tabs
@cairdcoinheringaahing And as far as fixing the other commands, they worked properly; they were moving the pointer and changing the parents, but the changes were only in the local scope, so I changed it to return the new current_node and parents values
@pxeger If you change the recursion limit to be high enough that you get a segmentation fault before you reach the recursion limit, is that "running out of memory"? :p
@cairdcoinheringaahing HNQs, probably. I first stumbled across the site shortly after I started programming (when I was 10 or so), but didn't post anything for a while since I didn't have an account.
I think I first saw the site right as it was graduating, I remember reading the "congratulations, you're graduating" post shortly after it was made.
Is ;.: a valid yggdrasil quine? ; creates a branch with itself as the root and .; as the branches, then . prints the root, then : prints the left and right branches.
@AaronMiller It doesn't appear to be a "just print itself" style quine, and that it actually "encodes" the data, but quines in self-modifying langs are always a bit weird
@cairdcoinheringaahing I've just noticed: The = command gets both full branches under the pointer, but then only executes the first command. Should line 121 be in a loop, or is that by design?
It might be a good idea to get the (Jo) King of Quines, Jo King, to have a look at the potentially quines, given that they probably know more about quines than most people here
@AaronMiller So am I, but mainly in my own code :P
this document claims that list[int] (python) can be used for type signatures/hints but it gives the expected "type object is not subscriptable" error including if i import typing or from typing import *; does anyone know how to actually make this work?
Nobel disease is a hypothesized affliction that results in certain Nobel Prize winners embracing strange or scientifically unsound ideas, usually later in life. It has been argued that the effect results, in part, from a tendency for Nobel winners to feel empowered by the award to speak on topics outside their specific area of expertise combined with a tendency for Nobel winners to be the kinds of scientists who think in unconventional ways.
== Implications ==
While it remains unclear whether Nobel winners are statistically more prone to critical thinking errors than are other scientists, the...
@cairdcoinheringaahing I was working on an overambitious project to kinda extend Java by using annotations and compile-time black magic and made an account on SO to ask stupid questions about that. One day, I came upon the SO account of a classmate I disliked, clicked on his profile, saw that he had a CGCC account and made a mental note to make my own CGCC account and "beat" him by gaining more rep. A while later, I saw some code golf questions in the HNQ, came here, answered a few them the very same day
and was pleased to get upvotes so soon after posting them, so I came back. Didn't have a lot to do during the pandemic, so I came here a lot
I did a bit of code golf stuff before and saw this site (golfing tips page etc) and then when I joined the APL orchard to talk about APL I saw lots of people posting here, so decided to join in (first answer wasn't even in APL though!)
Spoiler: He now has way more rep on SO than I do, but since he literally has like one post here, I have "beaten" him. Sadly, it's not the sweet victory I imagined
@rak1507 Huh, didn't know there was much golfing outside CGCC
looks like intentions is the thing that shows the error / warning / whatevers in the sidebar (it got re-enabled by the linter) and busy-signal shows a dot in the bottom bar to show that a package is performing a task (so it shouldn't be causing any issues)
#type: ignore is supposed to make mypy ignore errors yet that itself gets marked with an error so maybe the package is just broken?
i mean there's ɠ,ɠY now i just need to figure out how to shorten that
ɠṄɠ doesn't work cuz of unparseable nilad ;-;
and ɠ⁷ɠ doesn't work in a nilad chain because the first nilad sets the monad argument and the second overwrites the value and gets smash-printed by the third