# billisphere

less info
reputation
28
bio website location age member for 2 years, 7 months seen 13 hours ago profile views 31

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.

# 75 Actions

 Aug17 revised $RecursionLimit::reclim: Recursion problem Important note/caveat about my attempt at captureValues... Aug17 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. Aug15 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. Aug9 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! Aug9 revised $RecursionLimit::reclim: Recursion problem Fixed my flat-out wrong code... with a much simpler version, too. Aug8 answered$RecursionLimit::reclim: Recursion problem Aug8 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! Aug7 answered DatabaseLink Example for DB2 and Mathematica Jul28 awarded Critic Jul24 comment Problems with NMinimize What input code defines xy3d? Jul18 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) Jul18 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. Jul18 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) Jul18 revised How to refuse close de Dialog when press Enter Key Also clarified the last explanatory bit a tiny bit. Jul18 answered How to refuse close de Dialog when press Enter Key Jul14 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. Jul14 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. Jul13 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) Jul12 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). Jul12 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.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.4196718633174896, "perplexity": 1960.3029883266308}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2014-35/segments/1408500825174.42/warc/CC-MAIN-20140820021345-00192-ip-10-180-136-8.ec2.internal.warc.gz"}