The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
3answers
152 views

iterate method to find roots

This code gives the roots (lambda-values) of eq1 by using iteration. ...
1
vote
3answers
138 views

How can I create a new tables out of a table and plot it

I have the following problem. I have a table, call it m, which is labelled by 3 indices (say i,j,k), each of them running from 1 up to 100. I would like to be able to construct a new table which would ...
1
vote
1answer
112 views

Table/Tree of values

My question: Is there a way to create a tree of values? Something like the output of the command TreeForm, but with values in the nodes? Why do I want this? I'm trying to do a complete program to ...
7
votes
3answers
208 views

How do I avoid scoping collisions of iterator variables?

Yesterday I had an issue that kept for quite a while. My code wasn't producing the right results. Now I know why and I am wondering how to avoid the issue in future. Consider the following code. ...
2
votes
4answers
504 views

How can I format a table to look nice?

I have this code, but i would like to see the results well formated, How can I obtain a well formatted data with aligment?, similar to this one insted what i obatin, you can see here Here is ...
1
vote
3answers
164 views

Help me to find a way to do this repetitive stuff

I'm trying to do this: ...
1
vote
3answers
254 views

Summation over 3 lists

I have three lists. As an example, a = {10, 5, 6, 8, 7}; b = {4, 8, 9, 7, 9}; c = {7, 5, 12, 4, 1}; I want to get $$x(i)=\sum ...
0
votes
0answers
29 views

Error in extracting a column [duplicate]

I imported excel data to Mathematica using this command. kuruzD = Import[ "C:\\Users\\TMH\\Documents\\Problem Set 4\\kuruzData.xlsx"][[1]] //TableForm I want to ...
1
vote
1answer
137 views

Recursion evaluate Table power exceeded limit

I wrote 2 simple recursive functions for calculating the power of a table. pol3[Tb_List, n_Integer?Positive] := If[n == 1, Tb, Tb.pol3[Tb, n - 1]] and ...
1
vote
3answers
116 views

problem with Importing multiple files

I need to import about 100000 "dat" files to my progrom. I want to do this using the last answer to this question: Importing multiple files using a for-loop I know that I should define a list of all ...
1
vote
3answers
875 views

Importing multiple files using a for-loop

once again I am stuck solving a seemingly easy problem :( I would like to make a List of tables by importing data from several txt-Files. Importing the data into a table works so far and I am able to ...
2
votes
3answers
168 views

How to make a defined symbol stay in symbol form?

How to make a defined symbol stay in symbol form? w = 3; g = 4; {w, g}[[2]] 3 I want the output to be ...
0
votes
1answer
107 views

Riffle not acting as expected [closed]

I have defined two tables: R = Table[Subscript[\[ScriptCapitalR], -i], {i, -12, -1}] T = Table[Subscript[\[ScriptCapitalT], -i, -i - 1], {i, -12, -1}] I want to ...
2
votes
1answer
165 views

Mathematica 7: Problems when evaluating Fourier inside a ParallelTable

after I got such a great response for my first question on this site, I'm very encouraged to asked my second one! So here it is, very generally: To speed up a "row-wise" (i.e. 1D) operation on a ...
-1
votes
1answer
96 views

FindFit and Integration errors

First off, appologies for what may sound like a newbie question, as I am very new to using Mathematica. I am trying to find a way to get Mathematica to give me an expression that would describe the ...
2
votes
2answers
141 views

How can I create a table of sliders?

I'm trying to do the following: I have a table: w = Table[ToExpression[ToString[h] <> ToString[i]], {i, 1, Length[c]}] This table is suposed to generate ...
3
votes
3answers
679 views

How can I make the Cartesian product of a list with itself?

I'm trying to build the table {{1, 1}, {1, 2}, {2, 1}, {2, 2}} given the list {1, 2} I can do it like this ...
4
votes
2answers
181 views

Extracting data from a table under conditions

I have a very large table with two columns. Let's say the name of first column is E and the name of the second is P. How can I get the E values when P = 0.
6
votes
2answers
260 views

Merging two Lists

I have two tables. One is given by T1 = Table[{x, y, 0.}, {x, 0, V},{y, 0, V}] and from a calculation I have the second, a list of points {x, y, z} ...
1
vote
3answers
249 views

Plotting many tables in a single plot

I have several lists. ...
-1
votes
1answer
183 views

Improving ContourPlot and Table output

I am trying to examine the results of and NDSolve solution for a BVP, and the output is not at all "pretty". Here's the code: ...
2
votes
1answer
305 views

How to export/import function values [duplicate]

I have a function with two variables: f[x_,y_]:=f[x,y] = ... I calculated some values (they are fractions like 435345345/3424242424) and would like to store the ...
1
vote
1answer
83 views

Get unique values for integration limits

For an multidimensional integration I want to build up the integration limits with the following code. (the length of vars is also variable) ...
1
vote
2answers
134 views

How to incorporate functions within Do Loops

I'm attempting to repeatedly perform a simple algorithm with incremental changes of a parameter. I can easily express my changing parameter: ...
2
votes
1answer
145 views

writing a function using multiple variables

I am fairly new to Mathematica and am trying to write a function for the equation: xx = [x/(Sqrt[h^2 + d^2 + y^2]))*(Sqrt[h^2 + (d + yy)^2]) where h, d are known ...
5
votes
2answers
227 views

Is there a Break[] equivalent for short-circuiting in Table?

I am running Mathematica 7. The following is admittedly a silly example, but suppose that I have a list list whose entries are either ...
8
votes
2answers
237 views

Correct way to generate large data sets (i.e.forward yield curve )

I would like to generate a set of forward yield curve matrix of size 1000 x 100. First I defined my SparseArray of 1000 x100: ...
0
votes
2answers
222 views

What is the best way to export a table of numerics with legends ready for Word?

I want to put my table output into an MS Word document without having to edit it in word after, so I want to export it ready for Word in final version with complete legends and title. Is it possible ...
-3
votes
2answers
146 views

How to make plots scaling consistent when running a series of simulations?

In my function it returns a plot of my data, say example, using ListLinePlot, and this is the size I obtain: but when running a series of simulations inside a Table: ...
2
votes
3answers
187 views

how can I generate a sequence of assignments?

I want to make a sequence like follows r[1]= r[2]= r[3]= r[4]= .... r[n]= The above r[i] represents coordinates which I have ...
4
votes
2answers
665 views

How to create a Table of Tables with indexed variables

I want to use concise code to generate a table of values that list the addition of a set of vectors. What I am looking for is essentially a Table of Tables. I will show here the kind of lists I want, ...
1
vote
1answer
93 views

Draw from HistogramDistribution with ParallelTable

I wanted to check something, but ran into troubles using HistogramDistribution in combination with ParallelTable. The code does the following: Compute a HistogramDistribution of some sample and use ...
5
votes
1answer
207 views

Making the TableForm output into two columns

I have a program that calculates Christoffel symbols for a given metric, and the output I'm getting now is such that I have every calculated symbol in one column like this: I'd like that I could ...
9
votes
2answers
1k views

Is there a Mathematica equivalent to MATLAB's logspace? [duplicate]

Possible Duplicate: How can I get exactly 5 logarithmic divisions of an interval? I want to use Table to generate a list of items, but want the indices ...
1
vote
3answers
762 views

How to create functions of arbitrary number of variables? [duplicate]

In the following code what would be the simplest way to generalize it to say some $N_f$ number of $z$ instead of just $z_1$ and $z_2$? ...
3
votes
1answer
298 views

Why am I getting so many error messages from my pendulum simulation?

I'm doing my end of semester project for a physics class. We were supposed to graphically model a physical occurrence; I chose doing a Pendulum Wave. I have my code written, however Mathematica keeps ...
3
votes
1answer
277 views

Exporting/Importing a Table of complex numbers

I'm generating a long table of list of the form: PN={{1,2,1+i},{3.5,2.6,2}...},{...},... Using: Export["PN.dat", PN, "Table"] ...
2
votes
1answer
214 views

Why can't Mathematica parallelize this?

The following code makes mathematica print "ParallelTable::nopar1: [...] cannot be parallelized; proceeding with sequential evaluation." ...
2
votes
1answer
260 views

How to convert an output to a graphic that can be selected like a plot?

EDIT: István Zachar informed me of the Rasterize[] command, which does exactly what I need. Danke! I have a self-built function that uses Grid[] to create a table that is more presentation-friendly ...
8
votes
5answers
312 views

TableAlignments -> Left not working

For a very simple dataset TableAlignments->Left does not work: ...