Question: Constructing a set/list with n elements


I was wondering if there is a more elegant way of doing this:

SX := proc ()::set; local j, sx, SEqn; Digits := 30; SEqn := {evalf(subs(EV, Eqn(1)))}; for j from 2 to n do SEqn := `union`(SEqn, {evalf(subs(EV, Eqn(j)))}) end do; sx := SEqn end proc:

thanks :)


Please Wait...