6.43 Tuesday, March 10, 2015

================================== 
Top new questions this week: 
==================================

[Different floating-point numbers equal?] http://mathematica.stackexchange.com/questions/76896/different-floating-point-numbers-equal

Let’s define two different numbers.

x = 1. 
y = 1. + 2^-52 (* equivalently, 1 + $MachineEpsilon *) 
 
 
Let's make sure they're different with FullForm: 
 
x // FullForm (* 1.` *) 
y // FullForm (*  ... 

- asked by 2012rcampion (12 votes), answered by Karsten 7. (8 votes)

—————————-

[Major slowdown when using a ColorFunction with more than one named scheme] http://mathematica.stackexchange.com/questions/76610/major-slowdown-when-using-a-colorfunction-with-more-than-one-named-scheme

Earlier Kuba noted a major slowdown with code Simon Woods posted. Here is a simplified example.

First a color function using two different named gradient schemes:

fn = ColorData[If[# < 0.5,  ...

- asked by Mr.Wizard (12 votes), answered by Mr.Wizard (15 votes)

—————————-

[Min, Max are slow on TimeObjects]http://mathematica.stackexchange.com/questions/76652/min-max-are-slow-on-timeobjects

There’s something wrong with how Min and Max are implemented for TimeObject:

times = TimeObject[List[0, 14, 55.99‘]], TimeObject[List[0, 14, 57.8‘]], TimeObject[List[0, 14, 59.09‘]], ...

- asked by alancalvitti (12 votes), answered by Mr.Wizard (10 votes)

—————————-

[How to properly inject iterators into table?]http://mathematica.stackexchange.com/questions/76917/how-to-properly-inject-iterators-into-table

Goofing off on a prior question, I was fiddling with other methods, which led me to the need to inject a constructed set of iterators into a table construct.

Now,

ClearAll[a, b, z, z2]

z = a, 2, ...

- asked by rasher (8 votes), answered by Kuba (7 votes)

—————————-

[How to make a movie from a complex demonstration?]http://mathematica.stackexchange.com/questions/76832/how-to-make-a-movie-from-a-complex-demonstration

I have a complex Manipulate-based demonstration containing a few sliders and a Setterbar.

I would like to make a movie out of it, avi, or whatever else. The movie will then be used for a journal ...

- asked by Alexei Boulbitch (8 votes), answered by Karsten 7. (6 votes)

—————————-

[Mathematica not honoring the distributive property of multiplication?] http://mathematica.stackexchange.com/questions/76457/mathematica-not-honoring-the-distributive-property-of-multiplication

Reduce[ ForAll[ multiplicant, summandA, summandB, Element[multiplicant, summandA, summandB, Reals], multiplicant*summandA - multiplicant*summandB == multiplicant*(summandA - ...

- asked by gaazkam (8 votes), answered by Adam Strzebonski (10 votes)

—————————-

[How to Map a function with HoldAll attribute]http://mathematica.stackexchange.com/questions/76558/how-to-map-a-function-with-holdall-attribute

First of all, I’m not sure about the title of this question, so please correct me if there is any title more sensible than mine. The problem is the following: I have a function f that checks if a ...

- asked by bobknight (7 votes), answered by kguler (5 votes)

================================== Greatest hits from previous weeks: ==================================

[How to make use of Associations?]http://mathematica.stackexchange.com/questions/52393/how-to-make-use-of-associations

I have been curious about it for long. Now that Mathematica 10 arrives, I think it’s time to ask the question: How the new Association data structure would be used to improve Mathematica programming?

...

- asked by Yi Wang (71 votes), answered by Leonid Shifrin (71 votes)

—————————-

[How to create a new "person curve"?] http://mathematica.stackexchange.com/questions/17704/how-to-create-a-new-person-curve

Wolfram|Alpha has a whole collection of parametric curves that create 
images of famous people. To see them, enter WolframAlpha["person curve"] 
into a Mathematica notebook, or person curve into  ...

- asked by Simon (49 votes), answered by Vitaliy Kaurov (21 votes)

================================== Can you answer these? ==================================

[How to force the writing of buffers onto disk?]http://mathematica.stackexchange.com/questions/76351/how-to-force-the-writing-of-buffers-onto-disk

Usually, buffering is good; except when you critically need to write data to disk. Is there a way to force the writing of buffers onto disk? (I’m using a binary file)

I believe a Close[ ] followed ...

- asked by richard (4 votes)

—————————-

[Trouble using Solve and NSolve with functions involving Erf]http://mathematica.stackexchange.com/questions/76429/trouble-using-solve-and-nsolve-with-functions-involving-erf

I have the following functions:

R[k_, x_, t_] := -.5*(k - x)*(1 + Erf[-(k - x)/t]) 
L[k_, c_, x_, t_] := .5*c*(k - x)*(1 + Erf[(k - x)/t])

I’m interested in finding the k that solves some equation ...

- asked by Pburg (1 vote)

—————————-

[Packages and Notebooks as a Databin]http://mathematica.stackexchange.com/questions/76474/packages-and-notebooks-as-a-databin

The new Data Drop product sounds interesting. Can I use Databin to share Packages and Notebooks?

If yes. How? Something like:

bin = CreateDatabin[] 
DatabinAdd[bin, <|"myPack" -> "???"|>]

...

- asked by Murta (1 vote)