The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
3answers
67 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
50 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
57 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
63 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 ...
3
votes
2answers
75 views

Use the value of 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 another cell in the table? ...
0
votes
1answer
32 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
59 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
68 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
80 views

Table is divided into several sheets when imported in excel

i wanted to calculate a Student-t table with ...
4
votes
2answers
117 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
67 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
43 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
73 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
168 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
114 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
309 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
79 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
123 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
254 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
120 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
172 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
86 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
62 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
205 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
41 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
102 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
61 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
90 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
172 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
54 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
113 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
37 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
155 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}]], ...
2
votes
3answers
76 views

Reduction of repetitive calculations in Table

If I generate two tables inside a function which are function[n_, x_, y_]:=( table1 = Table[i* x/n^x, {i,1,n}]; table2 = Table[i* y/n^y, {i,1,n}]; ) where ...
0
votes
0answers
82 views

How to be faster at making a frequency list of increasing steps

I want to find propabilities of having a sequence in a list, by using frequencies. The case is that you will bet on an increase when the last event had an increased and bet on derease when the last ...
1
vote
0answers
58 views

Moving two Spheres in the Opposite Direction [closed]

We know that we can achieve to a box contained two spheres by the code: Graphics3D[Table[Sphere[{i, Mod[i^2, 10], Mod[i^3, 12]}], {i, 2}]] How can the left ...
1
vote
2answers
86 views

Problem with exporting lists to Excel

When I use the form Export["file", list, "Table"] to export a list to Excel, I get columns of lists. I want my Excel sheet to have each list element in a separate ...
6
votes
7answers
332 views

A problem involving classification of data

Toady, I encountered a problem while trying to classify certain data. I have the coordinates of six points. ...
2
votes
2answers
95 views

Specify column width while exporting

I am trying to export a set of data into a file but I can not force mathematica to keep a certain width for each column. For example, when I export a table: ...
0
votes
0answers
55 views

Maximum and mean of a multi-variate function over a restricted lattice

I have a function Q, and I want to find the maximum value, the corresponding arguments for the maximum value, and the mean over a certain range of arguments. I ...
1
vote
1answer
73 views

Why does one Monitor expression work while another fails?

I have a (somewhat involved) function f[x?NumericQ, y?NumericQ] and for some reason it behaves differently when given a Table ...
0
votes
1answer
66 views

Extract a smaller matrix from a bigger one [closed]

May be duplicate, but, how it is possible to make a matrix or table of smaller dimensions, from a matrix with bigger dimensions. I mean, one may want to extract a 25*25 table from a 25*50 matrix. I ...
0
votes
2answers
61 views

Import array indices from Excel

In an Excel file, I have some numbers which I will use as the indices of arrays. I want to read those numbers and assign them as the array indices in Mathematica. For instance, in Excel I have and ...
0
votes
1answer
69 views

Import a data stored in EXCEL and change it to a Table [closed]

I have an EXCEL file in which large amount of numbers is stored in a column in the first sheet, like data in the column A of the sheet1 of excel file. When I apply the Import function; the data is ...
0
votes
0answers
35 views

noninteger indices for tables

Is it bad programming practice to use non-integer values to label data tables? For example, Do[data[dBx, Bz] = Table[{x,f[dBx,Bz]}, {dBx, .1, .5, .05}, {Bz, .4, 1.5, .1}] instead of introducing ...
2
votes
1answer
70 views

Table with some editable cells

I have a table: I want it to be editable only where the zeros appear. I read this post Generating an editable table that can be used as input because it's almost exactly what I want, but I couln't ...