Reputation
31,281
Next tag badge:
91/100 score
18/20 answers
Badges
1 41 104
Impact
~308k people reached

Jun
19
comment Mathematica equivalent to Python long raw strings? handling escape characters in packages
@Pickett How to type the solution in plain text? as in .m file? I tried TextCell but not sure I am doing it correctly. Screen shot !Mathematica graphics I do not know how to do the ctrl-9 and ctrl-0 stuff in text file. I use plain text .m files. If you can show how to do it, using my example above, without using notebook interface, just using plain text input, then that will help
Jun
18
comment Plotting a 2D mapping of a 2 column ASCII
@Guesswhoitis. yes ofcourse, Flatten is no longer needed in version 2. I had it there from version 1 in which it is needed, because the way I did it before, and I forgot to remove it again for version 2. Thanks, will remove it now.
Jun
18
comment Plotting a 2D mapping of a 2 column ASCII
@Guesswhoitis. wow! thanks, I did not know this. I'll update.
Jun
18
comment Plotting a 2D mapping of a 2 column ASCII
Yes, I needed to do [[All, 2]] first, forgot about the first element is not part of data.
Jun
18
comment Plotting a 2D mapping of a 2 column ASCII
Is this what you mean? Image[Partition[pix, 5], ImageSize -> 400] where pix is the data you show. !Mathematica graphics
Jun
10
comment Mathematica keeps crashing my machine — is there a way to prevent Mma from eating up so much system resources so this doesn't happen?
see TimeConstrained and MemoryConstrained and adding $HistoryLength = 0; at the top helps also. Other than that, maybe your PC has virus if it keeps crashing like this? I recommend ESET virus protection for PC's. I've been using it for years.
Jun
10
comment How to extract notes and chords from audio?
fyi, to use Wavelet, something like : cwt = ContinuousWaveletTransform[sound, GaborWavelet[6], Padding -> 0.0, SampleRate -> 44100, WaveletScale -> Automatic]; where the SampleRate is obtained from the file. As well as the Sound (imported, using Elements). I just do not know enough about Wavelets to answer your question on sound. Here is screen shot !Mathematica graphics
Jun
9
comment How to extract notes and chords from audio?
I got the spectrum for this, But used fft. Why do you have to use WaveletTransform for this? Screen shot !Mathematica graphics
Jun
8
comment How much time should one give Mathematica for an integral evaluation?
this page has CPU time of problems used, for V 10.1. No time out is used in this one.
Jun
4
comment Preventing Power from evaluating principal value
"Exactly, E^(2 I Pi) is evaluated to 1", yes, Mathematica knows this is 1, so the evaluator automatically simplifies it. To prevent this, you can do Sqrt[Exp[x I Pi]] and now it does not simplify it. Later on, you can replace x with 2 using expression /.x->2, but you will still get 1.
Jun
3
comment Preventing Power from evaluating principal value
"refers to the ambiguity of the sqrt procedure." there is no ambiguity of the sqrt. In you case, E^(2 I Pi) is first evaluated to 1 first, then the Sqrt[1] gives 1. Please read the comments in the above answers.
Jun
3
comment Preventing Power from evaluating principal value
Duplicate of sqrt-how-to-get-negative-branch for example, using answer there, try : sqrt[E^(2 I Pi)] which gives {1,-1}
Jun
3
comment Compiling a summation
Do not use UpperCase for symbols and variables. N especially is used by Mathematica. ?N for more information
Jun
3
comment Animating a parametric plot
please do not use first UpperCase for variables, symbols and function names. If you must use single UpperCase letter, add a number to it. Say R0 and D0 and such.
Jun
1
comment Graphics different between Mathematica 10.1 vs 9.0.1
I like the V10 image more. May be WRI fixed it? :)
Jun
1
comment Why is setting SynchronousUpdating -> True causes mouse motion to pause/freeze Dynamics?
@Wizard thanks for testing. The short pauses/short freezes can become more extreme as more things are being played out. The above is a small example. In my other demo, which is larger than this ofcourse, the freezing was very bad and longer each time the mouse is moved.
May
31
comment How to convert a list of 3D points to a list of distances?
@Guesswhoitis. ok, for completion, I also added your solution. thanks
May
31
comment Why is setting SynchronousUpdating -> True causes mouse motion to pause/freeze Dynamics?
@Silvia thanks for testing. This might be windows 7 specific issue then? Do not know.
May
30
comment Manipulate on Mathematica Online
I have not tried Manipulate in the cloud for sometime, since when I tried it initially, many Dynamics did not work. Here is a link that lists something that did not work then Cloud Dynamic support
May
29
comment How can I avoid to define public all methods in a package
you only make usage:: for functions that are to be called from outside. Not for all the variables. It is similar to Java class or C++ class, where you make public functions.