The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
69 views

What is the difference between Array and Table?

I cannot understand the difference between Array command and Table. I can reproduce the example in ...
0
votes
0answers
24 views

List of symbol names using `SymbolName` [duplicate]

With a list of variables, I want to create a table with variable names as TableHeadings. I am trying to get the list of variable names using the following code: ...
1
vote
2answers
112 views

GPA calculation from a set of randomly generated marks obtained

So, this is a homework question posed by my teacher: "A student has 10 courses. Find the ceiling value of the obtained marks and corresponding grade according to the following data Print the result ...
3
votes
1answer
93 views
0
votes
0answers
33 views

How to avoid losing the done part of `Table` when stopping it? [duplicate]

Often, when I use Table, it takes too long to compute all the elements of the would-be table. I then stop it with Alt+. and ...
1
vote
0answers
35 views

Problem with ParallelTable in using externaly defined iterator [closed]

In order to reduce my computation time, I'm making some tests with parallel computation, especially with ParallelTable. Here is a simple code : ...
1
vote
2answers
81 views

Strange behaviour of TableForm

...
1
vote
1answer
85 views

Constructing new lists using Table

I tried to modify an old notebook to show a spreadsheet style output in a table. I am not getting any errors when it runs, so I think the data I am gathering and the new variables I added, ...
-1
votes
0answers
17 views

how can I get the differece between a residual difference between a plot point and a 3d plane [duplicate]

I wish to both dynamically sum them up and also draw them rising or falling verically to the plane in the graph, is there a function to do this?
-2
votes
1answer
54 views

Create a matrix by crossing a list

I've a list L of elements. I want to create a matrix by laying each elements of L in both rows and columns where each ...
1
vote
2answers
49 views

How to Hold/Defer only one (only given) level?

Is it possible to Hold/Defer some of outer expressions, having evaluates inner ones? For example, I want to prepare a table of expression values, like this ...
1
vote
0answers
52 views

Is the “Table” function limited in number of elements it can compute? [closed]

i tried using "Table" to compute a list of 400,000 strings but the output takes forever to get. I have tried with smaller size of about 100 and i get results as fast as possible. But when the number ...
0
votes
1answer
88 views

Block matrix and calculate it's inverse

How to define the following block matrix $$ A=\begin{bmatrix} H-G_1 & -G_1 & \ldots & -G_1 \\ -G_2 & H-G_2 & \ldots & -G_2 \\ \vdots & \ldots & \vdots & \vdots ...
2
votes
1answer
38 views

Plot several columns of table with variable number of columns and display the legend accordingly

I use this command to plot all values from the 1st column of Table "results" against all values from the 2nd column: ListLinePlot[{results[[All, {1, 2}]]} Now, ...
0
votes
1answer
49 views

If works wrongly under Table or Sum [closed]

Table[If[i != j, 1/(j - i), 0], {i, 1, 5}] This line returns in Mathematica 9 the table with equations where i is still symbolic! Thanks for help! Sergey
2
votes
4answers
206 views

How do I find the position of the maximum value in each column of a table?

Given a table of values, I know how to find find maximum values, but how do I find the position of the maximum value in each column. For example, given ...
3
votes
2answers
138 views

How do I display the plane of best fit in 3D?

I'm trying to display the plane of best fit in the same 3D-box. Currently, I have the following code which spits out a plot of the points in 3D. I want to have a plane of best fit, can Mathematica do ...
6
votes
5answers
554 views

What is the best way to draw a shaded table?

I'm trying to format a raster-style table with row and column headings and in which each cell is shaded according to the value in the cell, and the value of the cell is displayed in as text in a ...
0
votes
0answers
34 views

Combination of interpolations doesn't work?

I have a table valued functions f[i_] and g[i_] and I need to plot various combinations of the function and its derivatives (for example: f''f, f'/f). I tried interpolating f[i_] to ->f[x] and ...
2
votes
3answers
64 views

How to manipulate one column of a table using the value in another column

Let's imagine I have the following table structure data = {{a, b}, {c, d}, {e, f}}; and I want to transform it into the following table ...
1
vote
2answers
66 views

replace two elements in a list with the sum of those two elements?

I have a list: G[3] = {2, 4, 2, 4, 2, 4, 2, 4, 2, 4} (there's a 3 in there for the 3rd Prime) Recursively defined by: ...
2
votes
5answers
174 views

Is there a way to use Table[] without having to calculate my function twice?

I'm trying to use Table[] more to be more in the spirit of Mathematica. So for example, I might replace this piece of code: ...
4
votes
2answers
135 views

Selecting y-values from xy coordinate grid

Suppose I have a table, u, which is created as follows: ...
1
vote
3answers
83 views

Iterations with Table?

Is the following code efficient? Has it any advantages? s[0] = Sqrt[2]; Table[s[t + 1] = s[t]^2, {t, 0, 4}] {2, 4, 16, 256, 65536} Should be efficient in the ...
1
vote
1answer
65 views

Exclude Infinite Value in Table

I'm creating a plot of a family of lines using their endpoints and plotting it like so: Graphics[Line[Table[{{x1, y1}, {x2, y2}}, {u, 0, 2 \[Pi], ustep}]]] Where ...
0
votes
1answer
104 views

Define a Recurrence Table involving other tables

I'm relatively new to using Mathematica. Previously I used Matlab, but lately I noticed that the numbers i got in both of them do not match (mostly it seems that Matlab lacks precision...). The ...
1
vote
2answers
68 views

How do you (sanely) fix up data in a csv/table?

I have data in a CSV file I've Import[]ed. Some of the data needs fixing up - date formats changed, data normalized, etc. After fixing up I'll insert it into an SQL database. My CSV file has ...
4
votes
2answers
99 views

Use the value of a cell in a table as the argument to a function

I just got Mathematica from my school and I'm trying to learn the basics. How could I use the value of a cell in a table (as in Insert->Table) and pass it as an argument to a function whose value is ...
0
votes
1answer
42 views

Table of central binomial coefficients [closed]

I'm trying to construct a table of pairs {n, N[Log[cb[n]]]} for n from 0 through 250, and make a list plot of the results. So far I have this: ...
0
votes
1answer
66 views

Applying natural log to a table of values [closed]

I know this is a simple question, but I am new to Mathematica. How do I go about natural log to a table of values? I tried this: ...
1
vote
2answers
75 views

Generating a table with two entries for each i

Disclaimer: I'm not a mathematica expert, I have some programming experience but am still learning how to work mathematica. Also, some of the code from the first block here is not my own, ...
2
votes
3answers
91 views

Table is divided into several sheets when imported in excel

i wanted to calculate a Student-t table with ...
4
votes
2answers
120 views

Inferring interest rate of a loan from payment

Be patient with me since this is my first post here. I don't know how to use the Math notation. I wish to compute the interest rate for an existing loan given the original loan amount, length of ...
0
votes
2answers
74 views

Getting table headings when creating a table with two variables

I have created a table, and I want the variables that run through to create it, as the headings in their respective place. So when my table is created by variable ...
0
votes
1answer
63 views

Solving at zeroes of a matrix - code only works for simple equation

I have a matrix of zeroes (True) and non-zeroes (False). The matrix is generated from a table of values of two other variables. I'm trying to observe how the solution for p3 changes with small ...
2
votes
1answer
67 views

Listplot x axis - Using tranpose of two tables?

I'm trying to augment the x axis of a listplot to fit the number of steps. Secondly, since there are a large number of steps (50), there will be 50 ticks which will make the graph messy. How do I get ...
2
votes
2answers
81 views

Problem with NumberForm when exporting

I have a two-part question regarding NumberForm First question In my attempt at answering this i stumbled upon a strange behavior by NumberForm when the final result is exported. Lets say I ...
5
votes
4answers
180 views

Getting the number of frequency in a list

I want to know how to make a tally board in a specific data appear in a list. E.G. n ={1,2,1,4,3,1,4,5,3,2,4,5,6,3,4,2,2,5,2} and get ...
5
votes
4answers
125 views

Syntax for Table with a pure function

I have: g = #1^2 + a #2^3 / #1 & Now I wish to make a Table evaluating this from 1 ...
4
votes
3answers
318 views

How to create a table?

I have looked here at the forum and on the mathematica documentation center though still couldn't get it to work. I have two lists ...
0
votes
2answers
89 views

Replace $z$ with interpolated function and plotting

I start off with this equation $z(x,y) = sin(xy)$. I create an interpolation from $0 < x < 5$ and $0 < y < 5$. I then use this interpolation on a simple function $w(x,y) = x + y + z(x,y)$ ...
-2
votes
1answer
130 views

Creating a table giving the statistics of random polynomials [closed]

I already have a formula for generating random polynomials as well as for counting the real roots of every polynomial (see my previous question). But now I face the problem of how to organize the ...
1
vote
0answers
50 views

Problem with importing numbers resulting from an executed file in Mathematica [closed]

I am running Mathematica 10 and I have a mathematica file, MBdebug.m, that contains the line val = Import["! ./MBpart1ep0", "Table"]; MBpart1ep0 is an ...
1
vote
0answers
57 views

Make a table of changes in US coinage

I thought of an innovative use of Mathematica/Alpha that I think Stephen Wolfram would really love, but I can't figure out how to get it to work. The idea is to make a table that would chart the ...
3
votes
2answers
298 views

How to create a 'shortest-path link matrix'?

I am currently struggling with a problem in Mathematica. I have a randomly generated weighted Barabasi-Albert graph and a corresponding demand matrix of the same size. I'm generating the graph with ...
2
votes
2answers
131 views

How to initialize several elements per iteration with Table?

I would like to initialize this kind of vector : {0,0,1,1,0,1,0,1,1,1,1,1} with Table. I tried ...
3
votes
5answers
195 views

Creating a conditional table

I'm trying to create a conditional table. Let's say I want to have such result: {1,2,3,4,5,0,0,0,0,0}. The idea is to create a table of n elements (10 in a given example), but when one element takes ...
2
votes
1answer
98 views

Multiple plots using dynamics

I am studying Dynamic and DynamicModule, and I have tried to make a simple plot of a family of real functions. The number of functions should be a dynamic variable controlled by a slider. So I have ...
0
votes
1answer
63 views

Matrix consisting of the matrices [duplicate]

I need Dirac Matrix in my work. They consists of PauliMatrix and ZeroMatrix, which is: ZeroMatrix:=IdentityMatrix[2]-IdentityMatrix[2] I define Dirac Matrix as: ...
4
votes
3answers
211 views

Skipping over iterator values in a Table

I have been using the built-in function Table for some computations. (The following is not an actual representation of the equations I am using). ...