Given a function, say $\sin x$, can I cast this into a table of points with discretely divided values of $x$? Ideally, I would end up with a table of $xy$-values, where $x$ is the running variable and $y$ is the corresponding value of $\sin x$.


closed as off-topic by Michael E2, anderstood, m_goldberg, MarcoB, march Feb 13 '18 at 6:45

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Michael E2, anderstood, m_goldberg, MarcoB, march
If this question can be reworded to fit the rules in the help center, please edit the question.

data = {#, Sin[#]} & /@ Subdivide[2 \[Pi], 20];
 TableHeadings -> {None, {"x", "sin(x)"}}]

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