News for hackers. Stuff that matters.
Re: by kalimanzaro on Sunday February 26, 2023 @12:09AM (#34943234)
Wouldnt the following work in basic python:

  for a_k in 1 to n:
    for a_(k-1) in 1 to a_k:
    ....
I'm a heavy user of Mma but there are better examples. Automating the rewriting of formulas to make them more concise is a big one. (But also not as straightforward as it could be, tradeoffs between conciseness, ease of reading and speed of implementation need to be triaged, similar to Lisp/APL. Maybe sympy still has a chance to be more like math/TCS)
Re: by texaslonghorn5 on Sunday February 26, 2023 @05:08AM (#34944406)
no because k is an argument and you have to pre-write k nested loops