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

Jul
15
comment How to fix the “Module” function, for implicit funcitons?
I understand. If you are from Matlab, then M arrays and matrices are not much different from Matlab's. In M, just use [[ ]] in place of Matlab's (). and in place of : in matlab, there is ;; and in place of end in Matlab, there is -1 (I actually define end=-1 in my code since I also use Matlab, so this way it is less confusing to me)
Jul
15
comment How to fix the “Module” function, for implicit funcitons?
Why do you write Part[frequencyRow, 1] like this? Hard to read. Simply frequencyRow[[1]] Just like in Matlab frequencyRow(1)
Jul
14
comment Multiple down-values with exactly the same lefthand side
oh, I did not even see the Condition you had there, since it was at the bottom of the body, I never saw condition put there!
Jul
14
comment Multiple down-values with exactly the same lefthand side
The new version of my function will never be executed because the older definition will always match first it should really have kept only the last one? !Mathematica graphics yes, this is very strange.
Jul
14
comment Are there any tutorials on version 10 notebook templating and report generation? Are there missing docs?
fyi, there seems to be other missing documentations not added, even though it shows there. Here is a post on community on a missing command even though the item shows up on help, clicking on it shows it is missing community.wolfram.com/groups/-/m/t/293654?p_p_auth=QvP6n2NJ it is MaterialData[] in this page guide/PhysicsAndChemistryDataAndComputation
Jul
14
comment How to prevent notebook from moving/reshuffling code around while one is typing?
Thanks, but as I said this was an example, where I was copying and adding a large expression. I know that what you are showing are rules of thumbs to remember and follow to reduce this shuffling problem. Do you know of a more fundamental solution to allow one to code as they want and not have the code move around? Something like with Code cell but in a standard Input cell? I also need now to try Code Cell to see if it works with CDF's. I never tried that. Thanks for your hints
Jul
14
comment Setting $RecursionLimit crashes Mathematica 10
I have to take back that $RecursionLimit = 20 causes no problems also ! It does. I found out when I do the above, now code code fails with iteration limit of 4096 exceeded. So it looks like just setting $RecursionLimit causes a problem. When I start the kernel again, the same code runs ok. Only after the above setting is one, it fails.
Jul
14
comment Setting $RecursionLimit crashes Mathematica 10
I take it back. It does cause a problem, but only after using a different command in other cell. Right after issuing $RecursionLimit = 50 there is no problem as far as anything showing in console. (but the damage has allready been done internally I assume). $RecursionLimit = 20 causes no problems.
Jul
14
comment How to prevent notebook from moving/reshuffling code around while one is typing?
@LeonidShifrin Yes, as I mentioned that is a solution, but there are other problems with using Code Cells. For example, not allowed in a Demonstration style sheet. I also remember other issues with it, but can't remember exactly now what they are, I just know I had another problem using code cells. Thanks.
Jul
14
comment How to find valleys of data using new function in V10 PeakDetect
@Pickett, sure that is better so no rotation is needed. Thanks.
Jul
14
comment How to find valleys of data using new function in V10 PeakDetect
@MarkMcClure Just saw your comment after I posted it. Yes, that is the first thing I though about also.
Jul
12
comment Labeling triangle edges in Mathematica 10
I thought you said you wanted the to label the side lengths so the labels should be the actual lengths? That is what I understood it as, It seems you just wanted any labels, but your example shows the lengths on the edges.
Jul
12
comment Dynamic with RegionNearest keeps one CPU core at 100% - Is this a bug?
me too. It crashed it few times. I thought may be it was just random dynamic thing. Was not sure.... something strange seems to be going on with this RegionIntersection function, I never used it before....
Jul
12
comment Simplifying (A+B)* C doesn't work
Expand[(A0 + B0) C0] gives A0 C0 + B0 C0 Simplify works by finding the "smallest" expression (in terms of leaf counting). So it sees (A0 + B0) C0 as simpler, that is why.
Jul
12
comment Why GridLines->function does not work with LogPlot?
@Mr.Wizard WRI wants to make it really hard not to have nice log spaced gridlines for LogPlot :)
Jul
12
comment How to get grid lines at all (log) tick marks in Version 10?
I was trying to do that, using GridLines->function but I think there is a bug, please see question I just asked on this.
Jul
12
comment How to get grid lines at all (log) tick marks in Version 10?
Nice plot from Version 7, why did WRI remove this features from LogPlot? But trying something I think I found a problem. Posting question now :)
Jul
12
comment Dynamic with RegionNearest keeps one CPU core at 100% - Is this a bug?
I do not know why the cpu goes full speed, strange things happen when Dynamic are not used correctly. Your use of Dynamic is not right really. I am not sure what you are trying to do with Dynamic[nf[pt]]. One should use Dynamic around objects that gets displayed by front end, so that the FE updates them automatically without the kernel having to do anything, and not around the computation itself that goes to the kernel. May be you wanted to do Dynamic[r] then r=nf[pt] ?
Jul
11
comment Solve differential equation with 3 variables and plotting contour
What I meant was y=2 for all x and z how could this be? y[x,z] is the solution we are after? If you know that y[x,z]=2 for all x,y, then what are we solving for? You already have the solution? I must be missing something here.
Jul
10
comment Why is Return not forcing an exit from my function?
it is documented, but as WReach showed, it is hidden here reference.wolfram.com/language/ref/message/Break/nofunc.html The second argument is used here to specify that the return should be from the enclosing Module: In addition, I am not sure that using Throw/Catch to control programming logic is a good way to do things. These are meant to be used for exceptional cases, not normal flow. But this is for another subject :)