I want to create a table 4x4 that uses values n=1,2,3 and 4 and ksi=100, 250,600 and 950, out of this function:
FindRoot[SpheroidalS1[1, n, c, ksi], {c, BesselJZero[n + 1/2, 1]}]
How could we do that?
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityTable[
{n, ksi,
c /. FindRoot[
SpheroidalS1[1, n, c, ksi],
{c, BesselJZero[n + 1/2, 1]}]},
{n, 4}, {ksi, {100, 250, 600, 950}}] //
Flatten[#, 1] & //
Prepend[(Style[#, 14, Bold] & /@
{"n", "ksi", "c"})] //
Grid[#, Frame -> All] &
t = Table[{n, ksi,
c /. FindRoot[
SpheroidalS1[1, n, c, ksi], {c, BesselJZero[n + 1/2, 1]}]}, {n,
1, 4}, {ksi, {100, 250, 600, 950}}];
t[[;; , ;; , 3]] //
TableForm[#, TableHeadings -> {Range@4, {100, 250, 600, 950}}] &
This works:
Table[FindRoot[SpheroidalS1[1, n, c, ksi], {c, BesselJZero[n + 1/2, 1]}]
, {n, {1, 2, 3, 4}}, {ksi, {100, 250, 600, 950}}]
Should be simple:
Table[FindRoot[SpheroidalS1[1, n, c, ksi], {c, BesselJZero[n + 1/2, 1]}],
{n, 1, 4}, {ksi, {100, 250, 600, 950}}]