The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
46 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
44 views

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

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
61 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
33 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
197 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 ...
2
votes
2answers
119 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
541 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
61 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
65 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
170 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
118 views

Selecting y-values from xy coordinate grid

Suppose I have a table, u, which is created as follows: ...
1
vote
3answers
81 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
61 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
93 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
66 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
94 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
38 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
63 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
73 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
90 views

Table is divided into several sheets when imported in excel

i wanted to calculate a Student-t table with ...
4
votes
2answers
118 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
71 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
61 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
59 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
76 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
176 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
119 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
316 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
84 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
127 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
49 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
55 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
277 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
125 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
185 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
95 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
207 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). ...
0
votes
1answer
42 views

Series not evaluating to numerical answer [closed]

I am working on an example from a book (An Engineer's Guide to Mathematica). The following code is in the book: ...
1
vote
0answers
110 views

How could I make an Excel-like table?

I am looking to build a simple Excel type of a table with four columns. I have spent some time researching Mathematica documentation, but haven't come across a way to implement that. Here is a ...
0
votes
1answer
76 views

Importing Output from Linux mpstat to Calculate Aggregate and Per-CPU Averages, Creating Tables and Graphs

I'm a Mathematica noob, running a trial version for the moment, but have run into the wall trying to handle this in Excel and am looking for other options. While running a benchmark application I'm ...
1
vote
2answers
93 views

Display Matrix of values with position [closed]

I want to find the table of values of $x^2 + y^2$ in steps of 1, from $0$ to $5$ for $x$ and $y$, together with the position $(x,y)$: something like this: I can only display the $x^2 + y^2$ value but ...
1
vote
3answers
195 views

Finding maximum value with position from Table of values

I have this table of values, how do I find the maximum value? i.e. find $z_{max}(x,y)$ ...
1
vote
2answers
55 views

TimeConstrained for Table?

Let's say that I have a function f[i] that takes quite a while to evaluate (evaluation time is different for different i) and I'd like to have as many values of ...
0
votes
0answers
121 views

Improving the speed of evaluating Table with nested functions

I am a Mathematica novice working with a stack of 1024 x 1024 WatershedComponents (or MorphologicalComponents) label matrices ...
2
votes
1answer
40 views

Can I use what “headerlines” removes from a CSV as TableHeadings for the table I create from that File?

I am reading in some data from a CSV file that has a line which gives titles to each "column". Here is an example: ...
4
votes
2answers
161 views

Table with multiple iterators running parallel

I want to use Table to generate a list, but it only allows one iterator to increment at a time. So in ...
0
votes
0answers
30 views

Generating a Table with a certian Density [duplicate]

How do I create a random table of 0's and 1's with a certain density instead of a probability? For Example: Manipulate[ Table[RandomChoice[{1 - density, density} -> {0, 1}, {10}]], ...