User Portlet
Featured Contributor
| Discussions |
|---|
| Hello hanxu xiao, I tried to replay step by step your procedure and then I get: In[2]:= {a, b, c, d, e} = {{0, 0}, {1, 0}, {0, 1}, {1, 1}, {-1/2, 3/2}} In[8]:= sub = {{x -> a[[1]], y -> a[[2]]}, {x -> b[[1]], y ->... |
| Hello Peter, the ;; is a short form for "All" but is a very simple way to manipulate array without explicit index. have a look at the Mathematica help about **Span** it is very clearly explained. BTW in that particular case, Paul's proposal is even... |
| Please provide your code...but the most likely is that you do not use a SetDelayed (:=) for the definition of u[n] or that you don't Clear u before redefining it. In[1]:= Clear[u] u[0] = 1; u[n_] := (2^u[n - 1])/n In[4]:=... |
| Thank you very much David! It works very well. Christian |
| Hello Katrine, I probably comes from the Ti2 misspelled as T2i in the equation of T1==... I found it by running your code with the Print section inside the loop for more visibility. The first iteration gave a numerical output + a remaining... |
| Hi Ivan, Thank you!! It really helped!! I just copied you code and "zap!": I could even do the fit into a Manipulate loop and still get quasi real time display of data and fit residues on graphs... Thank you also for the nice programming style.... |
| Hi Ilian, Thanks also for this other solution.And I thought Polygon was only a graphic primitive...:-) Definitively another good reason to switch to V10! * Christian *= incidentally i just got an upgrade proposal in my mailbox this... |
| Hello again, Here is a more representative data sample I use to build the polygonal chains I need: [mcode]sampledata={{{171.797, 143.727}, {165.422, 143.727}}, {{165.422, 143.727}, {165.422, 140.844}}, {{165.422, 140.844}, {165.223, ... |
| I used the following approach on large sparse matrix (10000 x 10000): A = T + Transpose[T]-Diagonal[T]I Suppose your initial matrix is called T , the diagonal is Ok as well as the lower triangular (or the upper, does not matter), I... |
| Hello, My name is Christian Néel, I am an engineer, my field of expertise is electrical engineering and control systems theory. My company (located in the south of France) works in the field of high accuracy intrumentation for industrial and... |