20,561 reputation
12870
bio website
location
age
visits member for 2 years, 8 months
seen 11 hours ago

1d
comment Tracking Initialization
@MichaelE2 I know for Manipulate that the following happens, and I would assume the same for DyanmicModule, since Manipulate is just a DynamicModule: The body of Manipulate (the expression part) is checked for valid input/form, but it is not evaluated until Initialization is finished. The question of when Initialization is run or not is separate. But when it needs to be evaluated, then yes, the body/dynamics/expression will wait until Initialization is finished running.
1d
comment Tracking Initialization
I do not think what I said is different from what you are saying. Initialization is evaluated to generate the dynamic expression first time it is needed to be displayed on the screen.
1d
comment Tracking Initialization
I am not sure I understand what you mean by this tracking to be reflected in Dynamic updating Since Initialization is processed once from top down. (to generate the initial expression). Once this is done, Initialization basically goes away.
1d
comment Tracking Initialization
You can always use Print :) DynamicModule[{x}, Dynamic[x], Initialization :> (x = 1; Print["x=2"]; x = 2; Print["x=3"]; x = 3) ]
2d
comment Manipulate a parameter within the PlotLabel
f = {1, 2, 3, 4, 5, 6}; Manipulate[ Plot[Sin[f[[g]] x], {x, -2, 2}, PlotLabel -> Row[{"f = ", f[[g]]}]], {{g, 1, "index"}, 1, Length[f], 1, Appearance -> "Labeled"} ]
Sep
5
comment Mathematica 10 loads too long time
fyi, some discussion related here community.wolfram.com/groups/-/m/t/291612?p_p_auth=CDjlQwC5 "Can my start up time for Mathematica 10 be decreased?" do not know if it is the same issue as you are having.
Sep
4
comment Giving hints to Integrate
could you rewrite this without using the letter l as variable? Makes it hard to read as you have 1 and l next to each others.
Aug
31
comment Real and Imaginary parts of solutions to a complex linear ODE system
Is there an issue with getting the solution and then using Re and Im to separate the real and imaginary parts? May be coupled with the use of ComplexExpand? A full MWE also helps.
Aug
29
comment After editing a file Mathematica 10 interprets […]^2 as […(])^2
I can't reproduce it. V10 on windows. Screen shot. !Mathematica graphics may be you have some hidden char inserted by mistake. If you post the notebook somewhere may be someone can better help you.
Aug
28
comment InterplationOrder, ListPlot3D and using AbsoluteOption to find value used. Slow using InterpolationOrder
I see. So none of options such as PlotStyle used can be queried using AbsoluteOptions. Just tried it on normal plot: p0 = Plot[Sin[x], {x, -1, 1}, PlotStyle -> Red]; AbsoluteOptions[p0, PlotStyle] and this also gave an error. This makes AbsoluteOptions not as useful as I thought before. May be this is what the book means by "special options" in the screen shot I posted. Thanks.
Aug
28
comment InterplationOrder, ListPlot3D and using AbsoluteOption to find value used. Slow using InterpolationOrder
@Mr.Wizard Yes, but this is one part of it. The other part is why I get an error when query this option? I did not want to split this to 2 questions. But may be I should have. What do you think? Should they be separate? I can do that. ps. the slow down is really large as can be seen by the numbers. A bit of slow down ok, but 10 times slower?
Aug
28
comment The correct pattern for Cases
nice. May be you explain a little for us newbies how this works :)
Aug
25
comment implement the ZOH in mathematica
@NatanBravoG. There is an option that allows you to bypass stateSpaceConversion. I've updated my answer for your example above.
Aug
23
comment Error when using EquationTrekker
on version 10, windows 7, it hanged. But I saw message Message text not found -- (PropertyValue[{canvas ,canvasPane ,All},Name->trekPane ]) (1) >> show up before it hanged
Aug
21
comment How to combine one or more rotated graphics objects?
Would'nt be easier to just change the order of Graphics and Rotate? Like this: e1 = Graphics[Rotate[{Blue, Opacity[.75], Disk[{0, 0}, {1/3, 1/4}]}, \[Pi]/3]]; e2 = Graphics[Rotate[{Red, Opacity[.75], Disk[{0, 0}, {1/3, 1/4}]}, \[Pi]/7]]; Show[{e1, e2}] !Mathematica graphics
Jul
22
comment Is there a list of Octave functions mapped to the related Mathematica one?
there are lots of problems solved by Matlab and Mathematica side-by-side here
Jul
22
comment How to convert \[Formal…] symbols to standard ones in an expression?
yes. These are solutions from a set of differential equations that I am processing. So it will really include x and y as these are the same symbols used for each equation. It is just that M sometimes returns solutions using \Formal which causes problem for Latex. I am not using the solution for anything other than converting it to Latex.
Jul
22
comment How to convert \[Formal…] symbols to standard ones in an expression?
Thanks, yes, that is good. no unicode. It is not critical that x and y are being replaced by a and b. (x,y just happened to be more common to use) but will live with this solution. thank you
Jul
22
comment How to convert \[Formal…] symbols to standard ones in an expression?
The generated code (from TeXForm) still contain those trouble invalid code) which are the \unicode. When I do TeXForm[%] on the result from your code, it still shows up with invlaid latex code that uses \unicode. The main reason I wanted to remove those \Formal and replace them with normal symbols is to avoid this unicode being generated. I'll update the question to make it more clear. You have removed all the other unicode, good, but one is still there. !Mathematica graphics
Jul
22
comment HoldForm doesn't hold form
comparing the difference in ??Plot between V9 and V10, I noticed only difference is PlotTheme:> was added to V10. I do not know if this has anything to do with this change of behavior or not. This change might break existing code which used HoldForm in labels.