77 reputation
5
bio website stretchandsquash.co.uk
location
age
visits member for 1 year, 10 months
seen yesterday

Apr
15
awarded  Nice Question
Aug
20
accepted How to clear variables in a manipulate without enabling dynamic content?
Aug
20
revised How to clear variables in a manipulate without enabling dynamic content?
edited title
Aug
17
comment How to clear variables in a manipulate without enabling dynamic content?
That's really useful, I think I'm going to have to go and read up a lot more on the use of Dynamic if I'm to make the most of the Manipulate routines. How complex would it be to add the Show command back in to introduce a straight line which connects through the solutions of the FindRoot? I've tried to do this myself by prefixing the Plot line with Show[ and then add a Graphics line to cycle through the points before TrackedSymbols, but it gives errors so I'm assuming my syntax must be off, or it needs special treatment with the Dynamic wrapper?
Aug
17
revised How to clear variables in a manipulate without enabling dynamic content?
added 349 characters in body
Aug
17
revised How to clear variables in a manipulate without enabling dynamic content?
Additional code posted to show the effect of adding a plot function after the Manipulate appears to cause the Manipulate to enter a strange loop.
Aug
17
comment How to clear variables in a manipulate without enabling dynamic content?
@AlbertRetey thanks for the comment, even with fixed variables or having the variables defined the graph crashes as soon as the nSeg slider is incremented, which is strange as nothing for the plot range of f[x] is updated.
Aug
17
comment How to clear variables in a manipulate without enabling dynamic content?
That's an interesting way of getting round the Clear function, and it works well for the symbolic aspect, but if you were to add a Plot function near the end so that it was to draw the graph of the curve, as you increment the nSeg value the graphing element crashes, where if you Remove or Clear the x variable this doesn't happen, but I can't understand why. I added this line just above the nSeg call for the manipulate. Show[Plot[f[x], {x, x[1], x[nSeg + 1]}]],
Aug
17
comment How to clear variables in a manipulate without enabling dynamic content?
Thanks for the link, I've already been through that thread and the problem seems to be clearing variables within the Manipulate command. I've been through and simplified my code removing the subscripts and I still get the same problem unfortunately so perhaps it's not just limited to subscripted variables but clearing variables generally...
Aug
17
revised How to clear variables in a manipulate without enabling dynamic content?
added 724 characters in body
Aug
17
asked How to clear variables in a manipulate without enabling dynamic content?
Aug
10
awarded  Editor
Aug
10
revised How do I split up a curve into segments of equal length?
Additional upper and lower values added to the FindRoot routine to prevent solutions being provided greater than upVal
Aug
10
suggested suggested edit on How do I split up a curve into segments of equal length?
Aug
10
awarded  Supporter
Aug
10
comment How do I split up a curve into segments of equal length?
Having lived with this for a couple of days and tinkered, what I've found is that for some parabolic curves, the code as posted can often give co-ordinates that are beyond the upVal range and then the segments start to fold back on themselves. This is usually a problem with higher values of nSeg. I've tweaked the code a little to constrain the solutions between 0 and upVal. vars = Append[{Subscript[x, #], #, x[1] + 10^-6, upVal - 10^-6} & /@ Range[2, nSeg], {d, 1}];
Aug
1
comment How do I split up a curve into segments of equal length?
Sure not a problem, if it makes it easier for future users to search for it. I'm just tinkering now to get the solutions to write to the variables for the list as it can change length.
Aug
1
awarded  Scholar
Aug
1
comment How do I split up a curve into segments of equal length?
Thanks, I hadn't appreciated I could do it this way...
Aug
1
accepted How do I split up a curve into segments of equal length?