Questions tagged [table]
The table tag has no summary.
157 questions
1
vote
2
answers
339
views
Creating a spiral
This is both a math question and a Mathematica question. I am trying to draw a simple spiral, and found this diagram that fits what I am trying to create.
Implementing the math, using Mathematica, I'...
0
votes
0
answers
68
views
The cases of Piecewise function are not recognized when calculated in Table
Before describing the problem, a short background on how it pops up.
I am solving a PDE problem on the [0,1]x[0,1] domain. To this end, I want to find the decomposition of some derivatives of the ...
0
votes
0
answers
157
views
How to syntax products and append each result to a table?
I'm still trying to learn how to code the results of the LHS and RHS of this famous equation into a table:
$$\sum_{n=1}^\infty \frac1n=\prod_{i=1}^\infty\frac{1}{1-\frac{1}{p_i}}\tag{A}$$
I asked this ...
0
votes
2
answers
158
views
How to output results of the sum, $\sum_{a=1}^2\sum_{b=1}^a\sum_{c=1}^b 2^a3^b 5^c$ into a list (table)?
I'm trying to write a code that can approximate the following formula,
$$\sum_{n=1}^\infty \frac1n=\prod_{i=1}^\infty\frac{1}{1-\frac{1}{p_i}}\tag{A}$$
In this M.SE question I was convinced that $(\...
0
votes
1
answer
89
views
NDSolve using table
I have the following code that works well.
...
1
vote
1
answer
201
views
I want to print all values
I want to print all 10-values of n and n^2 using both of the codes written below. But, I am not getting it, only getting 10th value. Do not know where is the problem.
...
0
votes
0
answers
87
views
How can I prevent infinite recursion when using `Table` to multiply symbolic basis elements in Mathematica?
I admit I’m a bit desperate for a solution here, I have defined in Mathematica:
A basis newBasis (built from a function ...
1
vote
1
answer
106
views
How to join many tables one under the other? [closed]
Suppose I have three tables with index 1, 2, 3
...
1
vote
2
answers
148
views
How to Write[] output to a .txt file without using Table[]
I want to use a function which requires two lists as input.
Dimension[list1]
$(5000)$
Dimension[list2]
$(\begin{matrix} 5000 \\...
-1
votes
1
answer
79
views
How to compute and plot cross-correlation between two time series? [closed]
I'm trying to compute the cross-correlation between two time series xi and xj, each of length 100, in Wolfram Mathematica.
Here ...
0
votes
2
answers
109
views
Regarding exporting a csv file in a particular arrangement
I have a CSV file, containing multiple columns $f_i$ , $g_i$ and $h_i$ in the following format. The columns with the same index correspond to one set of values.
...
3
votes
1
answer
151
views
Plotting multiple traces each with its own ColorFunction
I want to plot multiple traces f(x), each colored according to a function g(x).
For example, I can do three traces like this:
<...
1
vote
1
answer
210
views
Replacement is not working in Table
What is exactly happening here?
Table[{(x^2 + y), (x^2 + y) /. x -> 2}, {x, 0, 3}]
As the output I am getting:
...
1
vote
1
answer
136
views
Extreme Points - Parameter Changes and Table
I want to simulate extreme points and illustrate results with exogenous parameters and optimal values. I created the input table and table with the optimization problem.
My initial one with a 3x15 ...
0
votes
1
answer
201
views
Modified version of `Table[]` command to make a 1-Dimensional list with several local iteration variables [closed]
Suppose several lists X, Y, Z, ... all have the same length, and f is a function. The command
Table[f[X[[i]], Y[[i]], Z[[i]]], {i, 1, Length[X]}]
is inelegant, but ...