1,486 karma · joined Jan 11, 2015 (11y ago) · 277 submissions
I'm a mathematician and software developer. Now I work with libraries (as in books, not as in software --- though I do software for the libraries) in many varied ways.
comment 2y ago · link · parent
On the one hand, it's probably true that more people can read a digital book. Ob the other hand, I have read fewer than 20 pages of a bunch of ebooks - enough to see if I might like them.
Do these count as checkouts? Am I a very expensive library user?
(And I also am happy to have several ebooks that I'll read sometime, casually renewing them until I get to them).
comment 2y ago · link · parent
It is also true that, just like with a generic math research paper, that I don't check every claim of every step of every implementation of every algorithm in the process. But checking is possible, and when we find errors (which we do frequently) we can look and try to explain what it happening.
But when we find errors in tools such as Mathematica, we cannot. We report the errors and then know nothing more. (And sometimes the errors are never fixed).
comment 2y ago · link · parent
I have also modified and extended open source implementations in sage to work with cases I needed. And I've added some of this back to sage.
It is undeniable that Mathematica evaluates crazy integrals better than most other tools. But it will happily output complete nonsense. And you can't check!
comment 2y ago · link · parent
I still take lots of paper notes. One thing that had been very useful is to make (short, simple) indices in my paper notes and to digitize just the indices.
It takes almost no time. The result is that when I want to look at old noted I can look up where in my digital indices, and then walk over to a shelf and pick out my notes. I've used this *a lot* and it's surprisingly helpful.
Caveat: I'm a mathematician, so I have a lot of paper notes and half-baked ideas. So my paper notes often look more like a set of laboratory notebooks and not idle learning notebooks. I essentoally never look back on noted I take while learning some new subject.
comment 2y ago · link · parent
But somehow this suggests to me that I might have been doing something wrong. I use vim+ultisnips+(your excellent vimtex) while you use neovim. Out of curiousity, do you specifically set your python provider for your neovim in your config?
comment 2y ago · link · parent
It's interesting that this post (or rather, the later post that discusses this) talks about the advantages of UltiSnips. The well-known vim-LaTeX posts written by Gilles Castel (RIP) relied pivotally on UltiSnips.
It's not just that UltiSnips is a snippet engine. There are many of those (including LuaSnip, the other snippet engine mentioned in the OP series of articles). It's that UltiSnips can dispatch arbitrary expressions to short python code sections, and python has a great scientific library. For example, it's trivial to write a `sympy` snippet that will simplify or compute a given expression and write the output in latex for you.
But UltiSnips works *terribly* with neovim [1] [2]. Why? Because UltiSnips uses python, and neovim's python interface is 100x slower than vim's python interface. There are design decisions for this and I'm not trying to say that neovim is bad. I use both vim and neovim. But I use vim+UltiSnips+vimtex for writing LaTeX.
LuaSnip has interpolation too. I suppose it would be possible to write more code that calls from LuaSnip to a system like sympy (or other). But that's work. On the other hand, I think it takes a true power user to actually want or use the fancy interpolation functions.
[1]: https://github.com/SirVer/ultisnips/issues/974 [2]: https://github.com/SirVer/ultisnips/issues/1533
comment 2y ago · link · parent
I always wondered how they made the markings on the high quality slide rules of yore. Were they engraved? Were there machines that would scribe them? Now we might laser engrave, but that feels too recent. Maybe some sort of acid etching? I don't know!
comment 2y ago · link · parent
This is probably an equivalent in emacs. Interestingly, this is more or less unusable in neovim because of how slow neovim's python interop is.
comment 2y ago · link · parent
At first, I thought there was a clear improvement. This problem essentially boils down to finding the intersection point of three circles. But it's also likely that with the small fuzz from imprecise time measurement that the three measured circles wouldn't actually intersect. I would guess that a small boost could be achieved by sampling points near the two intersection points of any two circles, but this is moot when it's just possible to brute force the whole grid.
comment 2y ago · link · parent
I don't know if part of the goal is to have a growing list of math problems and their solutions or not, but I see that mathjax is loaded to display the questions. It might be a good idea to note this and have a page where answerers can (if they choose) see how to write their responses in mathjax too.
comment 2y ago · link · parent
In something like python, an analogous thing is turtle graphics. Is there something more similar (but still very basic) in python for something like this? A mini graphical language?
comment 2y ago · link · parent
A commit that changes how copying (actually "registers", which is a bit more general than copying) works in emacs was recently accepted. Now emacs opens up a minibuffer that shows what is happening, requiring one to accept the change by hitting enter or equivalent. The OP thinks this is a terrible, breaking change as it changes default behavior (and possibly without the possibility of easily configuring this away). Further, this happened without much discussion.
Let's state a vim analogy. If I want to copy the current line into my `d` register, I can type `"dyy`. This proposal would do something like, after typing `"dyy`, open up a scratch buffer that tells the user the text and the buffer, requiring a keystroke to close. This is terrible for people who understand registers (the typical vim user). But I acknowledge that sometimes I don't copy the intended text into registers and have to try again. I also know many vim people who only yank from visual mode, which has a similar show-explicitly-what-is-being-copied behavior.
The rest of this article is a description of how the OP tried to raise discussion, but the commit-author, Thierry, shot it down. Implicitly the rest of the emacs dev community is at fault too.
comment 3y ago · link · parent
Presumably now Netflix will have to pay Broadcom some amount to stream over HEVC.
comment 3y ago · link · parent
Inside Interesting Integrals, by Nahin. This contains integrals with often arithmetic inspiration. Imagine things like, lots of special values of the zeta function or partial sums of harmonic numbers and that sort of thing.
Irresistible Integrals, by Boros and Moll. This is inspired by their work to prove all of the integrals in the enormous book of Gradshteyn and Ryzhik, whose references are often old and lacking (like Erdelyi's prior table of integrals).
You might also like Solved Problems for the Gamma and Beta Functions, Legendre Polynomials, and Bessel functions by Farrel and Ross. This is a bit closer to real analysis and veers towards more practical integral magic.
Finally, I'll note that all of these largely omit complex residue calculus (using complex analysis to solve real integrals). I don't know of a good book specifically aimed at this, unfortunately.
comment 3y ago · link · parent
On a sunny day, total solar energy hitting the top of the atmosphere gives about 1360 watts per square meter (source - top result from google, something something NASA). It takes about 4.184 joules to raise one ml of water by 1 degree celsius. Let's suppose that the "suitcase" proposed in the article has 1 square meter of space (a pretty large suitcase) and is able to capture 100 percent of solar energy (unreasonably effective). Then pure solar energy-wise, there is enough energy to raise 325 ml of water by one degree of celsius per second in a square meter. If the water is, say, at 16 degrees (the temperature of the ocean near me), in would take 84 seconds to bring 325 ml of water to boiling temperature. To transform boiling water to steam, each ml of water takes an additional 2257 joules. In 540 seconds, the 325 ml of water is now converted to steam.
In total, it has taken 624 seconds to steamify 325 ml of water (under very optimistic circumstances). Morally one could do this almost 6 times in an hour, giving approximately 2 litres of water per hour.
(Edit): Looking a bit closer, I see that the article's description of their work suggests that they recapture some of the energy from condensing the steam back into water. I didn't account for this. Even a moderate amount of recapture changes the math very favorably.
This makes me suspect that their claim of 4-6 liters per hour would require a rather large "suitcase"-sized device, but is within the ballpark of reason.