19,945 reputation
12767
bio website
location
age
visits member for 2 years, 6 months
seen yesterday

Jul
16
comment how to write string to file without Quotation mark
@Algohi First, it is WriteString[file, "\n"] where file is the file handle returned from the OpenAppend call. Second, yes, you can do "\n" on its own, it will go to the end of the last written string and make new line. WriteString does not add "\n" on its own. The user has control on that. You can write WriteString[file,"A\nB\n"] if you want.
Jul
16
comment Overloading ClearAll[] to take no arguments
corrected what I meant above. I typed it wrong.
Jul
16
comment Overloading ClearAll[] to take no arguments
OP might have issued the SyntaxInformation.. command after doing the Protect like you did?
Jul
16
comment Kernel crash after idle in version 10.0
amazing bug. Kernel crashes because it can't connect to the internet !
Jul
16
comment Is there a bug in AssociatePairs?
is GeneralUtilities supposed to be an official thing? or some kind of still-in-work package? If it is official, where to find official documentation about it? When I type reference.wolfram.com/search/?q=GeneralUtilities I do not see it?
Jul
16
comment Overloading ClearAll[] to take no arguments
But if you defined ClearAll[] in global context, would not then calling ClearAll[] first time clears your own ClearAll[] that you just defined? Since ClearAll from the system is in the system context Context[ClearAll]. I agree with you, it will be nice to have a system command to clear all, without having to specify the context. I always mixes up the * and the ` order
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.