Skip to main content
edited tags
Link
Mr.Wizard
  • 273.1k
  • 34
  • 595
  • 1.4k
deleted 4 characters in body; edited tags
Source Link

LetsLet's look at the following example.

Ordering[{0, 20 Sqrt[5], 40 Sqrt[5], 20 Sqrt[5], 20 Sqrt[10]} // N]

which gives the right answer

{1, 2, 4, 5, 3}

but if one removes the N, one gets the wrong answer

Ordering[{0, 20 Sqrt[5], 40 Sqrt[5], 20 Sqrt[5], 20 Sqrt[10]}]
{1, 2, 4, 3, 5}

Is it a bug?

Lets look at the following example.

Ordering[{0, 20 Sqrt[5], 40 Sqrt[5], 20 Sqrt[5], 20 Sqrt[10]} // N]

which gives the right answer

{1, 2, 4, 5, 3}

but if one removes the N one gets the wrong answer

Ordering[{0, 20 Sqrt[5], 40 Sqrt[5], 20 Sqrt[5], 20 Sqrt[10]}]
{1, 2, 4, 3, 5}

Is it a bug?

Let's look at the following example.

Ordering[{0, 20 Sqrt[5], 40 Sqrt[5], 20 Sqrt[5], 20 Sqrt[10]} // N]

gives the right answer

{1, 2, 4, 5, 3}

but if one removes the N, one gets the wrong answer

Ordering[{0, 20 Sqrt[5], 40 Sqrt[5], 20 Sqrt[5], 20 Sqrt[10]}]
{1, 2, 4, 3, 5}

Is it a bug?

Tweeted twitter.com/#!/StackMma/status/177816826766569473
formatted return values
Source Link
rcollyer
  • 34.1k
  • 7
  • 94
  • 194

Lets look at the following example.

Ordering[{0, 20 Sqrt[5], 40 Sqrt[5], 20 Sqrt[5], 20 Sqrt[10]} // N]

which gives the right answer

{1, 2, 4, 5, 3}

{1, 2, 4, 5, 3}

but if one removes the N one gets the wrong answer

Ordering[{0, 20 Sqrt[5], 40 Sqrt[5], 20 Sqrt[5], 20 Sqrt[10]}]

{1, 2, 4, 3, 5}

{1, 2, 4, 3, 5}

Is it a bug?

Lets look at the following example.

Ordering[{0, 20 Sqrt[5], 40 Sqrt[5], 20 Sqrt[5], 20 Sqrt[10]} // N]

which gives the right answer

{1, 2, 4, 5, 3}

but if one removes the N one gets the wrong answer

Ordering[{0, 20 Sqrt[5], 40 Sqrt[5], 20 Sqrt[5], 20 Sqrt[10]}]

{1, 2, 4, 3, 5}

Is it a bug?

Lets look at the following example.

Ordering[{0, 20 Sqrt[5], 40 Sqrt[5], 20 Sqrt[5], 20 Sqrt[10]} // N]

which gives the right answer

{1, 2, 4, 5, 3}

but if one removes the N one gets the wrong answer

Ordering[{0, 20 Sqrt[5], 40 Sqrt[5], 20 Sqrt[5], 20 Sqrt[10]}]
{1, 2, 4, 3, 5}

Is it a bug?

Source Link
PlatoManiac
  • 14.9k
  • 2
  • 43
  • 75
Loading