Good day, I want to assign some values in a list as in the following way:

enter image description here

The problem is that when I run the program, it does not assign any value to alpha. Does anyone know why? Thanks for your help

  • 2
    $\begingroup$ To assign values, one need to use Set (=); Equal (==) is to compare values or to establish equations. $\endgroup$ – Αλέξανδρος Ζεγγ Nov 28 '18 at 0:58
  • $\begingroup$ Do you want Table? $\endgroup$ – Kuba Dec 5 '18 at 10:14

Aside from the problem @Αλέξανδρος Ζεγγ noted, your Do repeatedly redefines alpha, rather than making a list. I imagine what you want is not a Do loop at all, but:


Do loops are rarely the best tool for the job in Mathematica.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.