I tried to see beyond the error to what the OP wished to achieve; now that he knows how to assign a value to each element he can either do so on each program run directly, or create a file of values on first run which can be read into the array on subsequent runs.Hated Moron wrote: ↑Mon 30 May 2022, 09:39Yes, but the actual question he asked was "I got a "LINE TOO LONG" error and the file closed. Is there a function like APPEND that adds data to an array?" so that's what my reply addressed - if not for the benefit of the OP in his specific circumstances but for more general interest.
It could also be that FN_Cavendish is a very slow and/or large function that one does not want to run every time the program is executed, if all it does is create a set of 'constants'.
In this instance there are only 22 items to create from the function; given the speed with which BBC BASIC SDL2 generates a Mandelbrot plot (each pixel generated from an iterative loop of imaginary number equations) I doubt FN_Cavendish will give it too much trouble.