67,728 reputation
5164381
bio website szhorvat.net/pelican/pages/…
location ND
age
visits member for 3 years, 2 months
seen 3 mins ago

contact details

Please do not write me with Q/A related questions. Post them on the site instead!

Visit Mathematica.SE


5h
revised Reduce and roots of an irrational inequality
added 1 character in body
7h
comment Reduce and roots of an irrational inequality
What Reals does is that it assumes that all subexpressions are real, at least according to the documentation (which often simplifies things). This makes things much simpler because it needs to restrict each of Sqrt[4 x + 5], Sqrt[-6 x + 10] and Sqrt[2 x - 1] to be real separately. I still don't understand where x < -5/4 comes from and it is clearly a wrong answer. Do you understand how it arrives to this wrong result? (Other than the fact that 4x+5 changes sign at that value.)
8h
comment Reduce and roots of an irrational inequality
Yes, my understanding is that the question is about why x < -5/4 is returned and whether it is a bug. An inequality should implicitly assume that both sides are real. But then there are some edge cases that require a bit more thought before hastily declaring them a bug, even if strictly mathematically they're incorrect ... e.g. what about Reduce[x + Sqrt[-x] < x^2 + Sqrt[-x], x]? It says x < 0 || x > 1. But for x>1, both sides have imaginary components ... which do cancel out.
8h
revised Reduce and roots of an irrational inequality
edited tags
8h
comment Reduce and roots of an irrational inequality
Please do not use the bugs tag when posting new question. It will be added later if deemed appropriate.
8h
revised TimeConstrained[Delete[Range[1],1]] causes kernel crash
added 28 characters in body
8h
comment How to get Mathematica to compile with target C?
What @Simon said, but include both Compiler`$CCompilerOptions = {"ShellOutputFunction" -> Print, "ShellCommandFunction" -> Print}. It will show you both the compiler command line and any errors the compiler shows. This is likely due to something going wrong during compiling C code to an executable, e.g. missing libraries. I don't think it's a problem with compiling Mathematica to C or with finding the C compiler
8h
comment Replacing a for-loop with something functional
@mrbaozi Look at the syntax of Partition carefully and check what the third argument does.
8h
comment Simplify a composition of functions
@DavidG.Stork @* and /* are new operators introduced in version 10.
8h
comment Font style in Mathematica and .tex file
@TMM Maybe like this. Note how AbsoluteOptions changes the ticks though ...
8h
comment Font style in Mathematica and .tex file
@TMM For ticks, I would recommend simply using the Latin Modern font instead of MaTeX. While theoretically it should be possible to auto-process tick labels, there are many obstacle ... Option 1: Use FullGraphics to render the axes and ticks as graphics objects, then go from there. FullGraphics has stayed neglected since Mma6 and it's practically unusable in v10. Option 2: Get the tick labels using AbsoluteOptions, then process those. This works better, but not perfectly. Often, what AbsoluteOptions returns is quite a bit different from the automatically rendered ticks.
13h
comment Extra spaces when exporting strings into pdf (bug, linux)
There are a number of weird spacing and positioning issues when exporting mildly complex formulas to PDFs. Just like you, I wanted to use these formulas as labels or annotations in publication figures. My workaround now is to use LaTeX to create these labels, through a small package I wrote. You might find it useful too, until the bug gets fixed.
18h
awarded  Revival
23h
comment What's real analogue for FromDigits?
Click the StackExchange logo at the top of the page, and click chat. Or click here: Mathematica Chat. Unlike the main site, the chat is free, any topic goes.
1d
revised What's real analogue for FromDigits?
added 480 characters in body
1d
comment Is the letter “s” special in Mathematica?
Somewhat counterintuitively, variable names do affect the result of some symbolic operations. That's due to ordering that happens e.g. when c+b+a evaluates to a+b+c.
1d
revised What's real analogue for FromDigits?
added 11 characters in body
1d
comment Using SendMail with new Google Security Rules
Welcome to StackExchange and thank you for posting a useful answer. On StackExchange, users are encouraged to write self contained answers instead of simply giving links to the full description. While not always possible, it's best to include all details in the post. What if the site you are linking to disappears or simply changes its URL? While W|C unlikely to go away, they might easily change the URL structure which would make the link invalid and make this answer much harder to follow.
1d
answered What's real analogue for FromDigits?
1d
comment What's real analogue for FromDigits?
I believe the question is: How can we parse floating point numbers? This doesn't answer that.