Hacker News new | past | comments | ask | show | jobs | submit login

What is the most significant one line of code that you have seen or written? Ideally something that takes the understanding of the system to a higher level.

I have written a flow function for extending iterated functions from discrete time to fractional or continuous time, known as a flow. One line of Mathematica code that does all the heavy lifting. This provides a foundation for extending tetration and the Ackermann function to the complex numbers.

Flow[f_, t_, x_, L_, order_ : 3] := Module[{s}, H[0] = L; H[1] = f'[L]^t ; Do[H[max] = First[r[t] /. RSolve[{r[0] == 0, r[t] == Sum[Derivative[k][f][L] BellY[max, k,Table[H[j] /. t -> t - 1, {j, max}]], {k, 2, max}] + f'[L] r[t - 1]}, r[t], t]],{max, 2, order}]; s = Sum[1/k! H[k] (x - L)^k, {k, 0, order}] ];




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: