Better HN
topnewbestaskshowjobs
Log inSign up

MathLab

2 karma · joined Aug 4, 2015 (11y ago) · 4 submissions

Submissions

comment 1mo ago · link · parent

In 2013, during my internship at the University of Brighton, I implemented a kinetic scheme for the shallow water equations (Perthame & Simeoni, 2001) in C. A a math student, I remember fighting with C language.

This week I pointed Claude at the repo and asked for a review. Some of what it found:

> PI was defined as 3.1415. The closed-form fluxes mix it with acos(), so a lake at rest, which the scheme is proven to keep perfectly still, slowly started to move. Fixing that one constant made the drift 750 times smaller.

> My error norm was multiplied by dx, which hid errors by a factor of 50.

> A sign typo in one of the paper’s closed-form integrals. My code had it right; I just never noticed the paper didn’t.

> The remaining drift came from a midpoint quadrature on an integrand with square-root singularities at both ends. A tanh-sinh rule fixed it and made the run 20 times faster.

I enjoyed the process, but it left me with one question I keep coming back to: how would the younger me would have felt if he had had such a tool ? Would he have learned more, or less?

2.

I let Claude review the C code I wrote as a math intern in 2013(mitsudomoe.github.io ↗)

4 points · by MathLab · 1mo ago · 1 comment

comment 9y ago · link · parent

But humans do or can be fooled... The problem is that the more data you have, the more likely you are to find a set that confirms your priors. Further, as N. N. Taleb pointed out, in large data sets, noise grows faster than real information. So beware of big data (if such a thing exists).

comment 9y ago · link · parent

Check this: https://www.compose.com/