Earlier quoted context omitted.
Sure! But it's a bit surprising that they do not use the language-provided linear solver and write simply f=A\b
Wow! It seems you have the magical capacity to ingest the reference to an equation and instantly derive an intuition for how it works and what it's useful for. Learning technology this advanced has never been seen before by humankind, I hope you share it with the rest of us!
Poisson's Equation
21–30 of 167 posts
Re: Poisson's Equation
#22Edit - it looked something like this:
https://thumbs.dreamstime.com/b/broken-badminton-racket-phot...
Re: Poisson's Equation
#23Earlier quoted context omitted.
This is a typical issue with HN posts. Some poor soul wrote a somewhat competent and maybe even lengthy blog post / article about something they really care about and are knowledgeable about. It may be directed at a specific audience, or maybe just screaming into the void to record down some insight they had for themselves to read again later, or similar. And they use a more-than-necessary general title like "the bes…
I'd rather have more submissions like this on the HN frontpage than the slew of entrepreneurship advice (good or bad), programming-languages-du-jour and disguised content marketing. Anyway, the premise that "everything I see has to appeal to me" would best stay on YouTube where it originated.
The HN crowd has a different average toolbox than the article's author, so the apparent mismatch between headline and article content was confusing.
Re: Poisson's Equation
#24Earlier quoted context omitted.
At the end the author mentions there are a large number of methods available for solving. Also mentions there are a much larger set of applications that those discussed.
Sure! But it's a bit surprising that they do not use the language-provided linear solver and write simply f=A\b
Re: Poisson's Equation
#25Great post, one nitpick -- I wouldn't say that a matrix is a "sparsely defined" function, but rather a function defined on a finite grid. It might also be worth pointing out that same approach works for any graph, not just a grid.
Also, what's confusing is that algebra usually uses matrices to describe linear functions from n-dimensional to m-dimensional vector spaces. Matrix has n rows, m columns, you give it an n-dim vector and after matrix multiplication you get back an m-dim vector. The author uses a matrix quite differently. You give it two integer coordinates i and j and it gives you the value at position (i, j) back. That's a valid use,…
Re: Poisson's Equation
#26This was a very interesting read even as someone who probably has no practical use for these tools.
> probably can lead you to some fun places.
Re: Poisson's Equation
#27What confused me is that the author is not treating the matrix as a function from vectors to vectors, as is the customary way to treat matrices as functions. Rather, they're using the matrix to represent a sparse, regular sampling of a function from vectors to scalars.
---
This article makes no sense right off the bat. Here's the first substantive passage:
"[Laplace's Equation means] Find me a function f where every value everywhere is the average of the values around it ... In this post, when we talk about a function f we mean a 2D matrix where each element is some scalar value like temperature or pressure or electric potential ... If it seems weird to call a matrix a function, just remember that all matrices map input coordinates (i,j) to output values f(i,j). Matrices are functions that are just sparsely defined. This particular matrix does satisfy Laplace's equation because each element [of the matrix] is equal to the average of its neighbors."
The values of a function are the outputs it maps its inputs to. The elements of the matrix are neither inputs nor outputs.
Re: Poisson's Equation
#28EDIT: I'm leaving this here to help anyone else who might have been confused by this, which I imagine is likely. What confused me is that the author is not treating the matrix as a function from vectors to vectors, as is the customary way to treat matrices as functions. Rather, they're using the matrix to represent a sparse, regular sampling of a function from vectors to scalars. --- This article makes no sense right…
Take, for example, f(x) = x*x. Its matrix would be: f = [0, 1, 4, 9, 16].
Re: Poisson's Equation
#29Earlier quoted context omitted.
This is a typical issue with HN posts. Some poor soul wrote a somewhat competent and maybe even lengthy blog post / article about something they really care about and are knowledgeable about. It may be directed at a specific audience, or maybe just screaming into the void to record down some insight they had for themselves to read again later, or similar. And they use a more-than-necessary general title like "the bes…
Just to point out, it seems like the author themselves submitted the story to HN. Still I agree with your reasoning, but I think slight clickbaity titles do get clicks which is why we keep seeing them.