So I am working on a code for Newton's method. I have the newton's method down, but I cannot get the results in a table format.
I attached a screenshot of my code and the output to this post.
I am able to print out the results, each iteration, the x value, the f(x), and the difference between my current and previous x's. However, I am trying to create a table, and so forth till my loop ends, like this:
i x f(x) Abs[]
1 value value value
2 value value value
3 .....
I know I get three separate lists, but what is the command that I need to put it in 3-tuples, like {{x, y, z, t}, {x, y, x, t}...} so that I can create my table. I tried using AppendTo, by creating an empty list and appending values to the list, but that does not work.
If anyone can help, I would immensely appreciate it!
Thank you!