Answer How can you create a set of variables: x1 to xn using the Table, or some similar function? I need a large list of variables to use in a linear program and so far have to type them out manually. David One easy was is for example ta = Table[Subscript[q, j], {j, 10}]. This gives you 10 subscripted variables... 16 Jun 2010 06:40
O'Reilly Ebook Deal of Day: Mathematica Cookbook ($9.99) Group: I purchased the brand new Mathematica Cookbook when it came out and just noticed it was listed as an ebook 'deal of the day' a while back... I'm not sure how long the offer stays open---so get on it!! (FYI, I did check and the code worked for me as of June, 9th.) http://oreilly.com/catalog/9780596521004... 2 Jul 2010 03:40
Programatically creating delayed Hi Stuart, for completeness, let me mention that my function will fail in case when some of the <aelement[i]> has some value at the moment when we create our delayed assignment. Observe: In[1]:= Table[aelement[i] = i, {i, 3}] Out[1]= {1, 2, 3} In[2]:= Scan[assignElements[#, "element", 3] &, {"a", "b"}] ... 10 Jun 2010 08:52
Nonlinear Least Squares lsqnonlin I'm trying to solve a system of non-linear equations that involves logarithms of several variables. I have developed code in another system to do so using the function lsqnonlin. Is there an equivalent function in Mathematica 7? I need to input the function matrix, the initial approximation vector, and the prec... 9 Jun 2010 07:31
difficulty using FindRoot The question of a q-form infinite exponential series solving to give Pi came up. I had absolutely no luck with infinite sums on this! I tried a plot of the function to narrow it down: Clear[f, x, n, i] f[x_] := 1 + Sum[1/Product[1 - x^i, {i, 1, n}], {n, 1, 100}] Plot[f[x], {x, 1.0218311988251147504058735648868605... 15 Jun 2010 03:15
name this algorithm please Hi, Does anyone know the name of this type of pattern? here is the link on the wolfram site: http://www.wolfram.com/broadcast/?video Thanks, Rich ... 9 Jun 2010 07:31
Question How can you create a set of variables: x1 to xn using the Table, or some similar function? I need a large list of variables to use in a linear program and so far have to type them out manually. David ... 11 Jun 2010 02:42
Manipulate Plot command - blank plot Sin[nx] should be replaced with Sin[n x] --- frmsrcurl: http://compgroups.net/comp.soft-sys.math.mathematica/Re-Manipulate-Plot-command-blank-plot ... 8 Jun 2010 08:02
Eliminating vertical lines in piecewise plot Hi All, I am plotting a piecewise function. Mathematica is joining the step points with vertical lines. How can I get rid of these vertical lines which makes my plot ugly. I tried Exclusions option but did not help. To be more specific I have the following plot: Plot[Piecewise[{{1, First[Max[EBProfit1se... 9 Jun 2010 07:31
GraphPlot and Vertex Weights How does a graph in GraphPlot take vertex-weights that will influence the spring-electrical model; i.e., heavier verticies will move less? Christopher Arthur ... 8 Jun 2010 08:02 |