# Table out of function [closed]

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?

Table[
{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] &


• Thank you all for your responses! It works! Oct 19, 2016 at 18:47
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}}]