Skip to main content
20 events
when toggle format what by license comment
Sep 21, 2020 at 8:51 history edited J. M.'s missing motivation
edited tags
Sep 21, 2020 at 5:26 comment added A little mouse on the pampas @CATrevillian Thank you for your answer. I have posted a feasible method below. I hope you can provide more methods.
Sep 21, 2020 at 5:25 answer added A little mouse on the pampas timeline score: 0
Sep 21, 2020 at 4:17 vote accept A little mouse on the pampas
Sep 21, 2020 at 4:06 comment added CA Trevillian @Alittlemouseonthepampas is what I posted not what you are looking for? It does it automatically. If you’re asking to perform the initial conditions/values automatically, that is something that does not work from an algorithmic standpoint, if I’m using the correct terminology. You would need to redefine your function definitions if that’s what you want to do, which is quite outside the scope of this question & would involve the use not of Mathematica, but pen & paper to derive the proper expression so as to not need to define x[1, 0], x[2, 0], and x[3, 0] yourself.
Sep 21, 2020 at 3:10 history edited A little mouse on the pampas CC BY-SA 4.0
added 785 characters in body
Sep 21, 2020 at 2:11 comment added Michael E2 IDK, and please understand I don't have time to figure out what you want to do this evening. All I saw was Table and Hold, and you need With to insert the value of i, as I showed. It does exactly what I would want it to do. If it doesn't work for you, I can only think you don't know what Hold does and decided to stick it in for no reason. What happens if you leave it out or use ReleaseHold?
Sep 21, 2020 at 1:57 comment added A little mouse on the pampas @MichaelE2 But Table[With[{i = i}, Hold[x[i, k_] := x[i, k] = \[CapitalDelta]x[i]]], {i, 1, n}] can't define the function I want, so that the code x[1, 0] = 1.; x[2, 0] = 1.; x[3, 0] = 1.; Table[{x[1, i], x[2, i], x[3, i]}, {i, 0, 10}] can't run.
Sep 20, 2020 at 23:30 comment added Michael E2 That's exactly what I meant.
Sep 20, 2020 at 23:02 comment added A little mouse on the pampas @MichaelE2 Thank you. Can you write it in detail? I still can't meet the requirements by using Table[With[{i = i}, Hold[x[i, k_] := x[i, k] = \[CapitalDelta]x[i]]], {i, 1, n}].
Sep 20, 2020 at 20:19 comment added Michael E2 Table[With[{i = i}, Hold[...i...]], {i, n}] maybe. See docs for With, under Scope.
Sep 20, 2020 at 18:51 answer added CA Trevillian timeline score: 3
Sep 20, 2020 at 18:21 comment added CA Trevillian Is the Δx function that you have what creates the functions you show below it that you want to define automatically? It seems to be so. This should not be entirely non-trivial to achieve then.
Sep 20, 2020 at 9:58 history edited A little mouse on the pampas CC BY-SA 4.0
added 85 characters in body
Sep 20, 2020 at 5:35 comment added A little mouse on the pampas @CATrevillian Thank you for your comments. I've revised the problem statement.
Sep 20, 2020 at 5:34 history edited A little mouse on the pampas CC BY-SA 4.0
added 37 characters in body
Sep 20, 2020 at 4:55 history edited J. M.'s missing motivation
edited tags
Sep 20, 2020 at 4:51 comment added CA Trevillian Maybe it’s not exactly clear what you’re asking? At least to me it is not clear. If you define all of those expressions as you have written them, does it not run? What is the issue with it? Do errors appear? If so, what are they?
Sep 20, 2020 at 1:28 history edited A little mouse on the pampas CC BY-SA 4.0
added 59 characters in body
Sep 20, 2020 at 1:22 history asked A little mouse on the pampas CC BY-SA 4.0