5 ms·
I tried to get the Mathematica version to do something useful, but in typical "mathematician minimalist style" it squeezed everything into one enormous, terse,
by jiggawatts 6y ago
I tried to get the Mathematica version to do something useful, but in typical "mathematician minimalist style" it squeezed everything into one enormous, terse, but useless blob. The code on GitHub works as a demo only. Even after trying a few different syntax variations for about twenty minutes, I couldn't figure out how to feed the "ILT" function something that would spit out what I expect.
In case the original authors ever come across this article: There is a standard for writing Mathematica modules! Please take a look at some other modules available online, and see how they split the code into small, reusable functions.
Even the name is too short. In the Mathematica naming convention it should be called "InverseLaplaceTransformCME[...]" or something like that. Ideally, use the same calling convention as the built-in function, documented here: https://reference.wolfram.com/language/ref/InverseLaplaceTransform.html https://reference.wolfram.com/language/ref/InverseLaplaceTra...
This would allow your function to be a drop-in replacement, allowing users to switch between the symbolic and approximate versions trivially.
You may even want to contact Wolfram Research! They just implemented a new "Asymptotics" module that includes approximate inverse Laplace transforms as a feature. See: https://reference.wolfram.com/language/guide/Asymptotics.html https://reference.wolfram.com/language/guide/Asymptotics.htm...
They might add your approach into the 12.2 release, which would mean that many thousands of people could automatically benefit from your hard work!
- gspr 6y ago> in typical "mathematician minimalist style" it squeezed everything into one enormous, terse, but useless blob You're complaining that it's both too minimalist and too enormous?
- whatshisface 6y agoImagine War and Peace, but every word is abbreviated like it's written in shorthand.
- gspr 6y agoFair enough. But also not a problem if the intended recipient is well-versed in that shorthand. An important difference is that a novel doesn't typically require a specialized skillset, but a mathematical development does.
- whatshisface 6y agoNaming functions with acronyms instead of names is totally unrelated to familiarity with math notation. You don't even use acronyms in papers, you use greek symbols and letters written in special fonts.
- gspr 6y agoYeah, and compact acronyms is the closest a lot of programming languages will let you get.
- prof-dr-ir 6y agoWould you be able to provide one or two examples of what you consider well written Mathematica modules? Or provide a reference on Mathematica programming that you liked?
- james412 6y agoThere must be some name for the effect seen here so regularly, which might best be described as the contrast in magnitudes of something being posted to the comments made about it. In this case we have a fundamental contribution to mathematics that is succinctly captured in 252 words, producing a 209 word complaint essentially about whitespace.
- jiggawatts 6y agoI can reformat whitespace, if I care to read through a piece of mis-aligned code, but that's not at all the criticism here. You missed my point entirely. This is like putting wooden wagon wheels on an F1 race car, and then complaining that people should appreciate the sleek lines of the car and stop commenting about the wheels. The code posted on GitHub is wasting the effort and the talent that went into this algorithm. It's optimising for brevity, something utterly useless, over utility, which is essential.
- james412 6y agoThe race car in this instance would be the paper, it is well presented and assuming it survives scrutiny, eternal. One particular manifestation of it for one contemporary system might better be thought of as the garnish on the free salad bowl placed next to the car
- rudedogg 6y ago> The race car in this instance would be the paper, it is well presented and assuming it survives scrutiny, eternal. The parent is pointing out how the code is the only approachable version of the paper for many people. Making it read like mathematics renders it useless - since it only speaks to the audience that can already understand the paper. I fall into this category. If the code had reasonable variable names and comments I could probably figure out how it works. But since it reads like the wall of LaTeX on the linked page - I can't pierce it without learning a lot of mathematics. I think that says a lot about mathematic notation.
- mikorym 6y ago
- jes5199 6y agoworking code can always be refactored to meet conventions
- coliveira 6y agoThe researchers already did the hard work! Programmers should see this as an opportunity to thank scientists and develop their own polished version. We shouldn't expect to receive everything ready to import directly into our projects.