14,703 reputation
11863
bio website
location Sweden
age
visits member for 2 years, 9 months
seen 32 mins ago

Engineering physics student.


2h
comment Buying a new computer (specifically for Mathematica)
@Shredderroy No, in fact Linux people seem to have a lot more problems with Mathematica than users of either OS X or Windows. As you can see the hardware is different; they just happened to have Linux with that hardware. Focus on the hardware. (+1 for this answer, I didn't know about this either.)
8h
comment Unit conversion is not simplifying units
Please define SpeedOfLight and ElectronCharge such that the example is self-contained.
10h
answered How to delete specific elements from diagonal of matrix
13h
comment How to delete specific elements from diagonal of matrix
TrueMatrix = matrix[[stay, stay]]; will delete row 7 or 9, and column 7 or 9, along with the diagonal element (where the column and row intersect). Can you clarify what the elements are that you need to delete further?
13h
revised How to delete specific elements from diagonal of matrix
added 36 characters in body
1d
comment Extracting ragged array from an image
@Kuba Yes, and I would also like to have a KDTree or a Quadtree to make collision checking more scalable. Other scientific computing packages such as numpy for Python include a KDTree.
1d
comment What is the difference between Array and Table?
@yashar Then look at the online documentation, there is nothing in the item I'm talking about which is not applicable to version 9. There are many functions in Mathematica that can do the same thing as some other function without any huge benefit, other than semantics. Array produces simpler code sometimes because of what gwr said, and that is enough to motivate its existence in my opinion.
2d
answered Extracting ragged array from an image
2d
comment What is the difference between Array and Table?
Under "Properties and Relations" in the documentation for Array they show you exactly how Array relates to Table.
Dec
15
comment Simple image processing very slow
I think you should change the title/description, to be honest. Neither Import, Position or ReplacePart are image processing routines. You should rather be asking, "how can I do this with image processing routines?" or "how can I make this code faster?"
Dec
15
comment Simple image processing very slow
ImageApply[Min[{#, 255}] &, img] // AbsoluteTiming can do the last two quickly.
Dec
14
comment Simple expression syntax
Please start by reading this and beginner's tutorials. It's the fastest way to get up and running. The documentation has a lot of examples.
Dec
14
comment Millionaire quiz in mathematica
@gentrylo I've added a piece about this, but I urge you to investigate. You need to take this code apart and try each piece on its own, and compare the behavior with the documentation. That's how you learn.
Dec
14
revised Millionaire quiz in mathematica
added 894 characters in body
Dec
14
comment Millionaire quiz in mathematica
@gentrylo Sure, I'm happy to answer questions. f /@ expr is always equivalent to Map[f,expr]. In this case it evaluates ToCharacterCode on each sublist in the expression resulting from ImportString (take a look at it by evaluating ImportString[...] separately.)
Dec
13
revised Efficient way to compare animated images to tell if they are the same
added 145 characters in body
Dec
13
revised Millionaire quiz in mathematica
deleted 21 characters in body
Dec
13
answered Millionaire quiz in mathematica
Dec
13
comment How do I display a value on the screen?
You can either input it as a string, but then you can't handle it as a number after that unless you convert it back with ToExpression. Or you can increase the number of decimals that Mathematica displays, as in this answer. If you could further describe what you are trying to accomplish we might be able to suggest other better alternatives.
Dec
13
comment about the design of Part related to Association
This behavior has been noted before: (56013)