848 reputation
28
bio website
location
age
visits member for 2 years, 8 months
seen Sep 19 at 14:36

I do software engineering at a civil engineering firm. I work with C# and Wolfram Language (i.e. "The Language Formerly Known As Mathematica").

I recently learned some Go. You should, too. It's quite nice.


Aug
17
revised $RecursionLimit::reclim: Recursion problem
Important note/caveat about my attempt at `captureValues`...
Aug
17
comment $RecursionLimit::reclim: Recursion problem
@LuisFernandoMoura, I'm not sure what the expression NumericQ[tmedNum] is trying to accomplish, but yes, it should evaluate to False because tmedNum is only a symbol denoting part of a transformation rule, not itself a numeric value.
Aug
15
comment $RecursionLimit::reclim: Recursion problem
@LuisFernandoMoura, I'm not sure unfortunately, since I don't encounter that error here. In the code above, tmedNum is permanently defined to always "hand off" to tmed, so I can only guess a problem would be with whatever current function that tmed is defined as during the iteration in which you see that error. Try enabling the Debugger (under the Evaluation menu) and enable "Break at Messages" and "Show Stack", then run your code again. When the message occurs and the stack window fills, inspect the value of tmed to verify its value is what you were expecting.
Aug
9
comment $RecursionLimit::reclim: Recursion problem
@LuisFernandoMoura, no problem, glad to have been able to help. You might want to take a look at the edit I just made to introduce an updated helper function. My first attempt at the helper function was bloated and wrong in an important case that it was trying to cover (when a Function has a parameter with the same name as a previously set symbol). It still worked for your example because that case didn't come up. Anyway, fixed now. And best of luck in your master's!
Aug
9
revised $RecursionLimit::reclim: Recursion problem
Fixed my flat-out wrong code... with a much simpler version, too.
Aug
8
answered $RecursionLimit::reclim: Recursion problem
Aug
8
comment DatabaseLink Example for DB2 and Mathematica
@RickQI, glad to be able to help! If this post answered your question to your satisfaction, feel free to click the check mark next to the post to mark it as "accepted". If it didn't, definitely feel free to (a) comment on things specific to this answer here or (b) clarify your question further by editing it with clearly marked updates. (It's important to the good functioning of this site that all posts are accurately marked up to represent their actual status.) Thanks, and hope you're enjoying the community!
Aug
7
answered DatabaseLink Example for DB2 and Mathematica
Jul
28
awarded  Critic
Jul
24
comment Problems with NMinimize
What input code defines xy3d?
Jul
18
revised How to refuse close de Dialog when press Enter Key
Duh moment for me. Second argument of Overlay makes Invisible unnecessary (and seems to eliminate some extra spacing below the InputField)
Jul
18
comment How to refuse close de Dialog when press Enter Key
@d555, no problem, glad to help. I updated the answer a bit, turns out the second argument of Overlay can be used to make the DefaultButton "present" yet invisible still. So it's simpler than I'd originally explained.
Jul
18
revised How to refuse close de Dialog when press Enter Key
Duh moment for me. Second argument of Overlay makes Invisible unnecessary (and seems to eliminate some extra spacing below the InputField)
Jul
18
revised How to refuse close de Dialog when press Enter Key
Also clarified the last explanatory bit a tiny bit.
Jul
18
answered How to refuse close de Dialog when press Enter Key
Jul
14
comment Add one to a major diagonal of a matrix given a coordinate point
@ibayibay1 Btw, the following is a great doc page to read to effectively understand the evaluation mechanism of Mathematica: reference.wolfram.com/language/tutorial/Evaluation.html Reading & understanding this is essential for intermediate/advanced programming with Mathematica. For basic things, one can scrape by without it.
Jul
14
comment Add one to a major diagonal of a matrix given a coordinate point
@ibayibay1 Black-colored symbols are either built-in symbol names (e.g. functions, settings variables, etc) or symbols that you've assigned values in your own code. Blue-colored symbols are those that don't yet have an assigned value or meaning. While is the built-in control-flow construct, while while has no meaning by default. This is actually why your original definition updated only one board entry (the one above (x--) and to the left (y--) of your input); while's lack of definition means that all of its "arguments" are evaluated once, in order, when it is first seen.
Jul
13
comment Add one to a major diagonal of a matrix given a coordinate point
@ibayibay1 That's alright, I've been bitten by casing bugs when using other languages, too. But, I should definitely offer an apology to you here: I edited while in your original question to While and failed to mention this change to you, as I incorrectly assumed it was just a typo during the question write-up and not a typo from your actual definition (and thus an integral part of the question). Sorry for the oversight. (and from this I learn to be more careful in future edits)
Jul
12
comment Add one to a major diagonal of a matrix given a coordinate point
This is a near-duplicate of the second part of the answer I provided (~9 hours beforehand).
Jul
12
comment Add one to a major diagonal of a matrix given a coordinate point
@ibayibay1 You want && because you want to 'back up' x and y as long as neither x nor y equal 1. As soon as one of them equals 1, you're at a top-left edge and you want to stop the loop. Likewise for the second loop, but for the bottom-right edge. I think your intuition toward || was originally pointing you to the equivalent !(x == 1 || y == 1) (via De Morgan) for the first loop. Re it not working as intended, I've tested it again and it works correctly. If you're still stuck, show me your input (including diag1 definition) and your output.