@J.M. do you know any convenient identity for Log[Cosh[x]] that doesn't give numerical problems for very large x? I was thinking of this, specifically.
To tell the truth I am getting discouraged over it. He started from completely the wrong place in asking about parallelization whereas checking the function is well enough behaved would have IMO been more preferable.
@J.M. no, adaptive precision and significance arithmetic are not that bad. It is a quasi-analytic first order approximation of the error, which works surprisingly well provided you add a few extra digits of working precision for luck.
@OleksandrR. I didn't say it was bad; halirutan was asking how Less[] might work, and if my reading of the docs is correct, the relational operators use the same machinery as N[].
@OleksandrR. Yes, I wish the precision handling could be made less mysterious...
@OleksandrR. Heh. Yeah, I think patching up the asymptotics and the Padé approximant is the best you can do at the moment... I'm drawing a blank on the sets of identities I'm aware of.
@OleksandrR. Ah, I miss that. IIRC Paul Abbott wrote something nice as well. Too bad it was no longer applicable starting with version 5. Architecture changes, I guess.
@halirutan: still running my stuff; I'll get back to you later on the FTP bit.
@OleksandrR. @J.M. Let me clear my point. Maybe I have too less experience in this: When you compile a function down to "C" the data-type they are using is a simple double or float. What they do is to call a special comparison function. Lets say I compute 1.1+1.1+1.1 and look at the bit pattern and I want to compare it with the bitpattern of 3.3: it is obviously not the same, because the calculation and the roundoff error happened before. So how can they return False?
This here:
g = Compile[{{a, _Real, 0}, {b, _Real, 0}},
(a + a + a) > b,
CompilationTarget -> "C"]
@OleksandrR. Thanks, that helps. I've always assumed that machine precision numbers would behave exactly as a double in other systems, but never came across a case where the output differed... it's all the more confusing that the tolerance used is that of a single
@halirutan I tried compiling it to C, but still gave me false... I don't know C, so the output from CompiledPrint didn't make much sense :P
(I only use it to check if there's a MainEvaluate hanging around :D)
@OleksandrR. I'm definitely too less experienced in this area; meaning I have really no plan about error calculation of approximations. Maybe you should write a blog post one day.
Hmm, I had no idea there was a lot of research on reassembling shredded documents with image processing. I wonder if anybody's ever used Mathematica for this...
@J.M. If you have shredded paper.. who turns, de-folds and scans the small parts? I mean, that must be a lot of work anyway. You could just start puzzling by yourself then.
Ok, 4:49:36 am. Time for me too to collect my wife from the couch and carry her to bed. Good night all.
@halirutan I don't really have shredded docs; I was reading an old article that brought up the idea of reassembling shredded documents. I suppose the tedium of scanning in the shreds would be better spent actually doing the jigsaw puzzle, though. :)
When new visitors arrive to this site and post a question it's very often the case that the question looks like this one
Everyone knows what now usually happens: The question is rarely upvoted and it is heavily commented that question should contain a description what the OP has tried so f...
@J.M. Lets hope that it works with the ftp-server of the OP too. I have no idea what settings they delete, that afterwards an ftp transfer works.. Wolfram magic.
Inspired by this question I would like to know if the following code can be written without explicit loops (For, While, etc.) in a clean, efficient and non-contrived way. I have been unable to do so.
max = 5000;
a = ConstantArray[0, max];
x = y = z = n = 1;
val := 2 (2 n^2+(y-2) (z-2)+x (y+z-2)...
Well, Mathematica's very first moderator election has come to an end. Our winners are:
Please give them a warm welcome, and hearty thanks and congratulations for volunteering!
Also, a sincere thank you to the rest of our Moderators Pro Tempore, who (along with Mr.Wizard) helped shepherd the...
Given the closeness of the result and that J.M was ahead on first votes, perhaps we should appoint four mods? I am going to be away Nov dec anyway so it would spread the load.
The single transferable vote (STV) is a voting system based on proportional representation and ranked voting. Under STV, an elector's vote is initially allocated to his or her most-preferred candidate. After candidates have been either elected (winners) by reaching quota or eliminated (losers), surplus votes are transferred from winners to remaining candidates (hopefuls) according to the surplus ballots' ordered preferences.
The system minimizes "wasted" votes, provides approximately proportional representation, and enables votes to be explicitly cast for individual candidates rather tha...
Even looking at the ballot file. No one voted 6 (Eiyriou) first choice, and no one who voted 5 (F'x) first voted 2 (JM) second. There are, however, votes of 5 then 3 (Verbeia)
Diamonds and Toads or Toads and Diamonds is a French fairy tale by Charles Perrault, and titled by him "Les Fées" or "The Fairies." Andrew Lang included it in The Blue Fairy Book.
In his source, as in Mother Hulda, the kind girl was the stepdaughter, not the other daughter. The change was apparently to decrease the similarity to Cinderella.
It is Aarne-Thompson tale 480, the kind and the unkind girls. Others of this type include Shita-kiri Suzume, Mother Hulda, The Three Heads in the Well, Father Frost, The Three Little Men in the Wood, The Enchanted Wreath, The Old Witch, and The Two Ca...
Well, Mathematica's very first moderator election has come to an end. Our winners are:
Please give them a warm welcome, and hearty thanks and congratulations for volunteering!
Also, a sincere thank you our other Moderator Pro Tempore, Sjoerd C. de Vries, who (along with J. M. and Mr.Wizard)...
I just read the discussion on Area 51 on flagging. It seems like a pretty agressive thing to set a flag, and I have trouble imagining that someone would post something offensive on Mathematica SE. On the other hand you get reputation points for flags. Is this something better left to longer time...
Given the closeness of the result and that J.M was ahead on first votes, perhaps we should appoint four mods? I am going to be away Nov dec anyway so it would spread the load.
Well that was interesting! If I had gotten up half an hour later I would have missed the fun. Seriously I am not disappointed. A little relieved if anything. I was worried that my absence would have been a strain on everyone else.
I'm going to change my handle to Ruby for a while, I think