12,162 reputation
11352
bio website
location Sweden
age
visits member for 2 years, 5 months
seen 16 mins ago

Engineering physics student.


4h
comment UnFlatten an array into a ragged matrix
@lalmei I'm afraid not; to test it we can try something like Compile[{}, Internal`PartitionRagged[Range[10], {5, 5}]][] and it turns out PartitionRagged that is not compilable.
18h
comment Program file deleted while running
If the "program file" is your notebook you should be OK. The code in the frontend does not affect the code that has been sent to the kernel for evaluation, those two are separate programs. However you should try to find a way to save intermediate results. I wouldn't count on Mathematica working non-stop for months.
19h
comment Find maximum value of interpolation function - obviously wrong result
@anderstood Ah yes, I deleted my comment when I realized. Thanks for asking this question, I learned something from it :)
22h
comment UnFlatten an array into a ragged matrix
You were probably thinking about Mr.Wizard's dynP function.
22h
answered UnFlatten an array into a ragged matrix
1d
revised How to do DateDifference on table items containing dates
added 217 characters in body
1d
answered How to do DateDifference on table items containing dates
1d
revised Can you apply the Cellular Automata function to a grid containing numbers?
added 574 characters in body
1d
revised Can you apply the Cellular Automata function to a grid containing numbers?
deleted 466 characters in body
1d
comment Plotting an function defined by an integral
Do you want something like this? Plot[T[e], {e, -2, 2}]
1d
comment Plotting an function defined by an integral
@Geo If it works for you in Mathematica, better copy and paste it so you don't introduce errors.
1d
comment Plotting an function defined by an integral
You have many trivial problems in your code such as NIntegral instead of NIntegrate, missing square brackets and parenthesis instead of square brackets. Those you should be able to fix yourself if you pay attention to the documentation on those functions. You are on the right site, though.
1d
comment Need mathematica to convert images to pure black and white
...which is what the second argument can help you with.
1d
comment Need mathematica to convert images to pure black and white
Use Binarize: Binarize@Import["http://i.imgur.com/a3u8QJi.png"], there is a second argument that can improve the result further.
1d
comment Replace Missing[Unmatched] with zero
@MitchellKaplan Please read this including especially WReach's answer to that question, which establishes the rules that Asssociation adheres to. Association flattens its arguments and when the same key appears several times the last key always wins. In my solution default precedes data so it is usually overwritten, but when I delete keys with missing values defaults will not be overwritten for those keys.
2d
revised Replace Missing[Unmatched] with zero
added 153 characters in body
2d
revised Replace Missing[Unmatched] with zero
edited body
2d
answered Replace Missing[Unmatched] with zero
2d
comment Selectively updating individual graphics in a dynamic, multiple-plot Show
Your code generates errors because of how you use Dynamic inside Locator, just so you know. ("Cannot assign to raw object 0.08`" etc.)
2d
comment Table with dynamic iterator
You need to think about where you place Dynamic. In this simple example you should place it outside of Table. If you wrap Table in something else, Dynamic might have to be moved even further away from Table. The idea is to make the expression dynamic, not just one variable. Without knowing what you are planning on using this for any answers that we can provide might not help you that much.