6.52 Tuesday, January 6, 2015

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

[Generating 250 random points crashes the kernel, but not 249] http://mathematica.stackexchange.com/questions/69891/generating-250-random-points-crashes-the-kernel-but-not-249

Consider the following function, which generates uniformly random points on the surface of the 2-sphere:

randSphere[] := Block[{z = RandomReal[{-1, 1}, 3]}, 
If[Total[z^2] > 1, randSphere[],  ...

- asked by David Zhang (23 votes), answered by Szabolcs (22 votes)

—————————-

[How to add lines in TableForm] http://mathematica.stackexchange.com/questions/69970/how-to-add-lines-in-tableform

m = { 
{3, 5, 5, 5, 5, 5, 5, 5}, 
{3, 6, 8, 8, 8, 8, 8, 8}, 
{3, 6, 10, 11, 11, 11, 11, 11}, 
{3, 6, 10, 14, 14, 14, 14, 14}, 
{3, 6, 10, 15, 17, 17, 17, 17}, 
{3, 6, 10, 15,  ...

- asked by Chen Stats Yu (17 votes), answered by kguler (10 votes)

—————————-

[Gap in a continuous plot] http://mathematica.stackexchange.com/questions/69976/gap-in-a-continuous-plot

Why do I get a gap in the plot below and how can I fix it? (If you are interested in it, you can see a new related question: How to plot an implicit value funtion, which is also a little chanlenging)

...

- asked by ben (13 votes), answered by kguler (9 votes)

—————————-

[Max element of a list with a custom ordering function] http://mathematica.stackexchange.com/questions/69971/max-element-of-a-list-with-a-custom-ordering-function

I need a function to find max element of a list according to some custom ordering function, assuming that the function implements a total order (elements being compared might not even be numbers). ...

- asked by Vladimir Reshetnikov (10 votes), answered by Mr.Wizard (8 votes)

—————————-

[Choose between ‘Apply‘ and ‘Map‘] http://mathematica.stackexchange.com/questions/70201/choose-between-apply-and-map

Even though this might be too general question(or not answerable), I want to get some advice here. I apologize in advance if it is not a relevant question.

I frequently have to process large list of ...

- asked by Sungmin (8 votes)

—————————-

[Collatz optimization] http://mathematica.stackexchange.com/questions/69902/collatz-optimization

I’m VERY new to Mathematica programming (and by new I mean two days), and was solving Project Euler question 12, which states:

Which starting number, under one million, produces the longest ...

- asked by globby (8 votes), answered by mgamer (9 votes)

—————————-

[How to connect discrete points and make them become continuous curve?] http://mathematica.stackexchange.com/questions/70102/how-to-connect-discrete-points-and-make-them-become-continuous-curve

Given that I have two variables \(\theta ,t\), for the varible \(t\), \(\theta \) always owns several values. Namely, \[\{t,\theta _1,\theta _2,\theta _3,\theta _4...\}\] where \(t\) in the interval\([0,1]\) and ...

- asked by ShutaoTang (7 votes), answered by Yi Wang (12 votes)

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

[Image processing: Floor plan - detecting rooms’ borders (area) and room names’ texts] http://mathematica.stackexchange.com/questions/19546/image-processing-floor-plan-detecting-rooms-borders-area-and-room-names-t

Here is a simple building floor plan. I would like to derive the rooms as (rectangular) components and the names of the rooms. This is very common representation of building floor plans.

The ...

- asked by s.s.o (37 votes), answered by nikie (38 votes)

—————————-

[1 Plot, 2 Scale/Axis] http://mathematica.stackexchange.com/questions/627/1-plot-2-scale-axis

I would like to plot those two datasets on top of each other. But they have very different range on the \(y\) axis. How can I have two different axis?

I found the following on the help menu but quite ...

- asked by 500 (77 votes), answered by ArgentoSapiens (70 votes)

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

[How to control pedestrians to enter the simulation region with random functions?] http://mathematica.stackexchange.com/questions/70173/how-to-control-pedestrians-to-enter-the-simulation-region-with-random-functions

I am working on simulating crowds of a cross-typed region, given that pedestrians entering from 4 gates of north, east, west and south,

spacesize = 100;width = Floor[0.1 spacesize]; 
npeople =  ...

- asked by Andy Huang (2 votes)

—————————-

[Why does Mathematica show 4095/4096 terms in TrigExpand?] http://mathematica.stackexchange.com/questions/70092/why-does-mathematica-show-4095-4096-terms-in-trigexpand

Clear[x, n]; 
expr = Cos[x]^(n - 2) (1 - Cos[x]^2 + Sin[x]); 
r=TrigExpand[expr]

Where do those 4095/4096 comes from? It is correct, but it seems very strange way to represent the result.

...

- asked by Nasser (3 votes)

—————————-

[How to get the SIFT features of an image?] http://mathematica.stackexchange.com/questions/70165/how-to-get-the-sift-features-of-an-image

According to the documentation, the function KeyPoints[] computes features only using SURF, but what about SIFT or FAST features?

- asked by M.R. (1 vote)