Reputation
3,222
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
12 43
Impact
~42k people reached

1d
comment Write list of strings to a file (as lines)?
@JasonB Thanks! If you post an answer I'll accept it.
1d
comment Specify the color of each residue in a protein (PDB)?
That's useful, but I don't want to color by residue type. I want to color by residue number. Each residue with a particular color
1d
comment Specify the color of each residue in a protein (PDB)?
@JasonB "Cartoon" is the name given in Pymol and VMD (other protein visualization software) to the ribbon diagram, with the alpha-helices and so on.
Apr
19
comment How to refer to amino acids by their single-letter abbreviations in ChemicalData[]?
Thanks! I was about to do that. Just wanted to be sure it wasn't already implemented in Mathematica's data.
Apr
3
comment How do you convert a string containing a number in C scientific notation to a Mathematica number?
Amazing that the language doesn't include a simple straightforward function to do this!
Mar
29
comment Character to replace _ in symbol names?
@dionys \[LetterSpace] is close to what I want. But I want something I can see. Is there a form of underscore that is not a symbol?
Mar
24
comment Best way to include a “singularity” in a SmoothHistogram?
You estimate $w_0$ from the data, say by counting the 0's. The width is of course arbitrary, it's just visually more appealing, I think.
Mar
24
comment Best way to include a “singularity” in a SmoothHistogram?
@JimBaldwin The main issue is that I am comparing different datasets (which probably have different $w_0$'s). If I just do a SmoothHistogram of the datasets removing 0, I don't get a plot that reflects that there may be different values of $w_0$ involved, since all the SmoothHistograms will get normalized to 1, instead of to $1-w_0$ (I rewrote the density as you suggested, thanks).
Mar
24
comment Best way to include a “singularity” in a SmoothHistogram?
I don't think the line should go to infinity. The height of the line (maybe it is more stylish to use a bar?) should represent the weight $w_0$ of $0$, or the frequency of $0$'s in the dataset.
Mar
24
comment Best way to include a “singularity” in a SmoothHistogram?
@george2079 Try putting the 0's in random positions. Other than that, yes.
Mar
21
comment Numerical solution of coupled ODEs with boundary conditions
Why are you using $0.99$ instead of $1$ in the boundary conditions?
Mar
20
comment Infinite Expression Error from NDSolve
Very nice! I was just having this problem.
Mar
17
comment SmoothHistogram inside Show doesn't respect plot range clipping?
It's version 10.4 and I'm still getting the same behavior. I filed a bug report.
Feb
27
comment How to use alphabetical autocomplete?
See also: community.wolfram.com/groups/-/m/t/806341
Feb
25
comment Distributing PlusMinus consistently
@celtschk I think your definition (the standard one) is more useful, but programming it seems more complicated, since you have to keep track of all the appearances of $\pm$ in an expression and change them consistently. I have no idea how to do that.
Feb
23
comment How to convert a sparse matrix to a list of sparse arrays?
Actually I didn't understand either, I was just happy it worked. I second @rhermans request for further explanation.
Feb
23
comment How to convert a sparse matrix to a list of sparse arrays?
Simple and fast!
Feb
23
comment How to convert a sparse matrix to a list of sparse arrays?
Yes, in the Table form you are missing most rows, that's why the timing is so small I think.
Feb
23
comment How to convert a sparse matrix to a list of sparse arrays?
@J.M. This works and gives the result that I want. However, for some reason it is very slow for me. Maybe there is a faster way?
Feb
23
comment How to convert a sparse matrix to a list of sparse arrays?
@J.M. Yes, that is the final representation I want. How do I convert an input sparse matrix to this form?