5.50 Tuesday, January 19, 2016

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

[Partition a list based on specific elements? Grab the sublists beginning with a certain marker elements] http://mathematica.stackexchange.com/questions/104153/partition-a-list-based-on-specific-elements-grab-the-sublists-beginning-with-a

Say I have the list

{{a}, {0, 2, 5}, {5, 4, 1}, {a}, {1, 1, 0}, {1, 4, 2}, 
 {3, 3, 0}, {a}, {3, 2, 0}, {1, 4, 1}}

I would like to make sublists of everything beginning with the a element till ...

- asked by Jason B (11 votes), answered by Kuba (14 votes)

—————————-

[Why does Outer sometimes return a packed array, and sometimes not?] http://mathematica.stackexchange.com/questions/104040/why-does-outer-sometimes-return-a-packed-array-and-sometimes-not

For example

In[342]:= 
test3 = Flatten[Outer[Plus, Range[1000], Range[1000]], 
    1]; // AbsoluteTiming 
 
Out[342]= {0.0198735, Null}

returns PackedArray (examined by Developer‘PackedArrayQ[test3] ...

- asked by matheorem (10 votes), answered by Mr.Wizard (7 votes)

—————————-

[Interpolation function way off] http://mathematica.stackexchange.com/questions/104037/interpolation-function-way-off

I have a simple list of data points to which I would like to fit an interpolation function. However, the results given by Interpolation[] gives an oscillating function which is not warranted by the ...

- asked by Philo (9 votes), answered by Szabolcs (14 votes)

—————————-

[How to deal with bad arguments when a function’s UpValues is a pure-function?] http://mathematica.stackexchange.com/questions/103952/how-to-deal-with-bad-arguments-when-a-functions-upvalues-is-a-pure-function

In practice, I needs to define the UpValues of a user-defined function. For instance, the operation of function like differential formula , expansion and so on.

Here, I will give a example that came ...

- asked by Shutao TANG (8 votes), answered by Mr.Wizard (2 votes)

—————————-

[Using Solve to solve the equation \(x^{1/3}=-1\)] http://mathematica.stackexchange.com/questions/104281/using-solve-to-solve-the-equation-x1-3-1

I am curious why this command returned no answers:

Solve[x^(1/3) == -1, x] 
 
 
Gives this output: 
 
(* {} *) 
 
I was able to get around the problem with this: 
 
Solve[Surd[x, 3] == -1, x] 
 
 
Which  ... 

- asked by David (8 votes), answered by Jens (13 votes)

—————————-

[How do you convert RGBColor to an HTML-style string?] http://mathematica.stackexchange.com/questions/103999/how-do-you-convert-rgbcolor-to-an-html-style-string

If I run some color processing function, like:

Blend[RGBColor /@ {"#DC4E00", "#000000", "#822250", "#FCC11B"}] 
 
 
I get back a RGBColor object: 
 
RGBColor[0.5901960784313726, 0.29901960784313725,  ...

- asked by d8uv (8 votes), answered by d8uv (9 votes)

—————————-

[ReplaceAll behavior change from 10.2 to 10.3] http://mathematica.stackexchange.com/questions/104354/replaceall-behavior-change-from-10-2-to-10-3

Executing:

replace[res_] := res /. {a_Integer, b_Integer} :> (a + b); 
l1 = <|"respID" -> {1,2} , "key2" -> <|"key2" -> {2, 1}|>|>; 
l2 = {"respID" -> {1,2} , "key2" ->  ...

- asked by Murta (7 votes)

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

[Drawing a square root spiral] http://mathematica.stackexchange.com/questions/66969/drawing-a-square-root-spiral

Here is a start. I’m looking for a nice way to draw it.

Graphics[{EdgeForm[Black], White, 
  Polygon @ {{0, 0}, {-1, 0}, 
    Sqrt[2] {Cos[#], Sin[#]} &[Pi - (ArcCot[1])]}, 
  Polygon @ {{0,  ...

- asked by mathe (22 votes), answered by Bob Hanlon (16 votes)

—————————-

[Mathematica 10.0.x freezes in Initializing kernels] http://mathematica.stackexchange.com/questions/92931/mathematica-10-0-x-freezes-in-initializing-kernels

Bug caused by paclet update and fixed by paclet update.

I updated to Windows 10 and have been running Mathematica fine on it for over a month. For some reason, it has just stopped working. I don’t ...

- asked by mitcheljh (67 votes), answered by ilian (84 votes)

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

[How to find and show a point value on the line?] http://mathematica.stackexchange.com/questions/104384/how-to-find-and-show-a-point-value-on-the-line

Manipulate[ 
 Module[{eqns, f}, 
 
 
eqns = {y'[x] == 
     aa3*y[x]^3 + aa2*y[x]^2 + aa1*y[x] + aa0[t] + bb[t]/y[x], 
    y[0] == 15}; 
 
f = NDSolve[eqns, y, {x, 0, 1}][[1, 1, -1]]; 
 
Plot[f[x], {x, 0,  ...

- asked by user37037 (1 vote)

—————————-

[Is it possible for librarylink function to be Listable like that in Compile?] http://mathematica.stackexchange.com/questions/104382/is-it-possible-for-librarylink-function-to-be-listable-like-that-in-compile

We know in Compile, there is an Option RuntimeAttributes ; Listable which can let the compiled function easily explore the power of thread parallelization.

So is it possible for a librarylink ...

- asked by matheorem (2 votes)

—————————-

[How could get all escape characters in Mathematica?] http://mathematica.stackexchange.com/questions/104299/how-could-get-all-escape-characters-in-mathematica

I am evaluating expression by using KernelLink.

But the kernel will be suspended endless when meets a invalid escape character. a\abc, \[badEscape] for example.

So I have to filter all the invalid ...

- asked by Michael (3 votes)