We’re rewarding the question askers & reputations are being recalculated! Read more.

# Questions tagged [table]

Questions on the use of the Table[] command and other functionality related to lists. Use [tag:matrix] for matrix algebra and related methods, and [tag:list-manipulation] for questions about transforming or operating on existing lists.

829 questions
Filter by
Sorted by
Tagged with
38 views

### Make a nested list of variable size

I want to try to make a list of lists of variable length in the following way ...
60 views

### How can I calculate the value f(x) in this table?

I am trying to find f(0) and f(3) to list them into a table, but I can not get that values. That is mean, I want to list the ...
53 views

### How to get this table of (x-a)*(x-b), where a > b?

I am trying get a table of (x-a)*(x-b), where a > b. I tried ...
46 views

### Another tool besides Conjugate

Do you know any way besides Conjugate to normalize the following symmetric function and calculate "ParSym"? I realized that ...
28 views

### How to parallelize the following table

Consider a table: ...
68 views

### How to create a 2D table with varying step?

I would like to produce a table with 2 coordinates, where a step for one coordinate depends on the value of another one. I tried to do this in the following way: ...
128 views

### How do we optimise double Tables?

I have made the following code which I shall explain it in two parts: First Part: ...
44 views

### Sum up different arrays into a new array

I have a question regarding sums in arrays. So I have the following array: ...
121 views

### Table and FindRoot of a two-variable interpolated function

I am having difficulty solving for the roots of the following interpolating function: ...
64 views

### Table and FindRoot of a 2 variable function of x and t : cos(x + 3t)

I am trying implement mathematica commands: Table and FindRoot, of a 2 variable function <...
77 views

### How to decorate data in a matrix for reporting purposes?

I want to create a report from two matrices m1 and m2 (already created, and available) with data. The report should (roughly) look like the output of the following code: ...
65 views

### Incorrect results from simple Plot?

I came across this bizarre behaviour whilst noodling around - a change in 'Plot' results... ...
89 views

### Table the LCM of an increasing list

I want to create a table showing LCM[1,2], LCM[1,2,3], LCM[1,2,3,4], ..., LCM[1,2,3,...,m]. ...
69 views

### How to add a сolumn from one table to another?

I have a rather naive question. How does one add a column from an already existing table to another already existing table?
67 views

### ListPlot3D of the results of FindRoot

I have a system of 2 simultaneous equations where i want to calculate the values of Tc and Tc which ranging with the values of two variables which are wfc and V. I tried to evaluate it by using ...
50 views

### Problems with creating a matrix with functions

I have a function which gives me all the coordinates of a certain bloc in a lattice (with the help of another function for rows and columns): ...
123 views

### Table with varying step

I would like to produce a table Table1=Table[{j,j^2},{j,0.0001,Pi,Deltaj}] where Deltaj is 0.0001 for j < 5*10^-3 and 0.01 ...
46 views

### Why does ProgressIndicator not work in the following case?

Consider a table: ...
31 views

### How can I pair the values in 2 different tables of the same length together to make a table with 2 variables {x, y}?

I have 2 tables, the first called GenotypesMaleUp ...
40 views

### How to use a table with two variables as the values for a function with two variables (x and y)? [duplicate]

I'm sorry if this is a dumb question. I am a student and have 0 prior experience with Mathematica or any sort of coding and I have looked at various resources trying to figure it out myself but still ...
63 views

### How to transpose a data of N lists?

I am using a command like this data = Transpose[{t1, Table[z1[[i]], {i, 1, 10}]}] //Tableform There will be N lists t1,z1[],...z1[] I would like to ...
83 views

### How to make split tables in Join?

I have a command Table0[mS_]:=Table[{mS*i,i^2},{i,1,20}] Table1=Join[Table0,Table0,Table0] When calling Table1[] I expect to get the element Table0...
42 views

### Discrepancy in the solution provided by NSolve

I have a code which goes like this: First one ...
95 views

### Breaking up a list of lists

I have a list of values stored in SortedLat, where SortedLat is a list of 74 sublists, and each sublist has its first element be a string. As you can see I am trying to create the first column for a ...
48 views

### Changing the layout of an array in output

I'm curious about the following: if I want to make a table described by the following code, ...
1k views

### Why does a table with a defined constant in its index compute 10X slower?

I need to do some iterative summations. Here is a minimum working example: ...
53 views

### Remove 0.*I in imported table

I imported some table containing elements with 0.*I. I tried to remove this 0.*I by using ./{"0.*I" -> 0}, however, it did not work. Could you please tell me how to remove it? Edit. I created a table ...
114 views

### How to implement a resumable Table?

Motivation (my sob stories) Too many times I've run a notebook for hours and then Mathematica crashes (FE or Kernel, mostly FE) and things are lost. I've made various attempts at custom solutions ...
142 views

### Why doesn't Mathematica evaluate the series with recursion relationship as expected?

I define a series $dg(i)$ as the $i$th derivative of a function $g[t]$ for $i>0$ and known the first term $dg(1)=(t-x)g(t)$. In mathematica, the code is: ...
43 views

### Conditional formatting of table

I have a table (from this question) as follows: ...
30 views

### Create Table where each line is a function of the line before [duplicate]

I've been noodling around with primitive Pythagorean triples. One of the 'branches' of the ternary tree that generates all possible PPTs from the initial parent PPT ...
43 views

### Problem with multi-columns using Grid

I am working on a data table, ...
825 views

### How to speed up large double sums in a table?

I am calculating a 3-by-3 matrix whose elements are given as follows: $$M_{mn} = \frac{1}{N}\sum_{i=1}^N \sum_{j=1}^N (r^i_m - r^j_m)(r^i_n - r^j_n) \tag{1}$$ where $N$ is the total number of ...
43 views

### How to display properly Dataset with index column?

I'm trying to construct and display properly DataSet. Everything works fine, except the index column('Year'). I'm trying different variants: Example 1: ...
64 views

### Extracting data from Table to do arithmetic operations

I have a code, which goes like this: ...
57 views

### Variable nesting depth inside table

I hope my title makes sense. The idea is the make a function in which a set of variables, $l_1$, $l_2$, etc. are accessible inside the innermost body of a nested (/folded) function. Each of these ...
70 views

72 views

### ListDensityPlot using

I have two data tables with identical parts along the vertical axis. For example: ...
43 views

### Getting named functions from an sequence of parameter values applied to a parametric function [closed]

The general question is how can I loop on names and indices? An example: I have pfun = ParametricNDSolveValue[{y'[t] == a y[t], y == b}, y, {t, 0, 10}, {a,b}] ...
31 views

### Table with two functions to output matrix with values

So I have a wing modeled as an .STL and I am analyzing its structure so I need its cross sectional area and moment of inertia at points along its span. I do this by moving an infinite plane across the ...
25 views

### Gradient method in vectorfield on surface table does not work, module is slow

For teaching purposes I want to generate a vectorfield on a surface an visualize the path of the gradient method. The surface and the gradient are generated by ...