Hello Wolfgang,
Exactly, I should have paid more attention !

Thank you
Fabrice

Le ven. 27 févr. 2026 à 17:47, Wolfgang Schuster
<[email protected]> a écrit :
>
> Am 27.02.2026 um 16:15 schrieb Fabrice Couvreur:
> > Hi,
> > Can someone tell me where the error is in this code ?
> > Thanks for your help.
> > Fabrice
> >
> >      context.startxcell() context("%0.3f", p[i]) context.stopxcell()
> >      context.stopxrow()
> >      p[i] =512*(1-1/(2^(i+1)))
>
> You try to get the value of p[i] before it has been set.
>
> Move p[i] = ... to the begin of the loop and it will work.
>
> Wolfgang
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : [email protected] / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki     : https://wiki.contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to