Apr-14-2020, 07:26 PM
C needs to be calculated within the loop. Otherwise, C stays the same even though t changes because C is not recalculated.
Also, for the future, use the python tags (click on the Python button on the toolbar) so the code is displayed better.
Also, for the future, use the python tags (click on the Python button on the toolbar) so the code is displayed better.