17
$\begingroup$

Bug introduced in 9.0 or earlier and fixed in 11.0.0


Why does this work:

Graphics[{Circle[{0, 0}, -Pi/4]}]

But this doesn't?

Graphics[{Circle[{0, 0}, N[-Pi/4]]}]

Telling me:

Radius -0.78539816339744828 should be a positive number or pair of positive numbers, or a Scaled or Offset form.

The radius is negative in both forms.

???

$\endgroup$
8
  • 2
    $\begingroup$ Perhaps, a bug? $\endgroup$
    – bbgodfrey
    Oct 3, 2015 at 21:34
  • 1
    $\begingroup$ Interestingly this works Graphics[Circle[{0, 0}, {-Pi/4, N[- Pi/4]}]] but only when one of axis is not numerical. $\endgroup$
    – Hubble07
    Oct 3, 2015 at 21:44
  • 1
    $\begingroup$ Graphics[{Circle[{0, 0}, -1/3 Pi]}] works, Graphics[{Circle[{0, 0}, -1/Pi Pi]}] booms, I'm calling bug (both should fail, IMO). $\endgroup$
    – ciao
    Oct 4, 2015 at 0:29
  • 3
    $\begingroup$ Everybody knows this is the proper way to test for positivity. $\endgroup$
    – shrx
    Oct 4, 2015 at 7:59
  • 3
    $\begingroup$ In Mathematica 11 neither version of the code works, so the issue (i.e. the discrepancy) seems to have been resolved I think. $\endgroup$
    – C. E.
    Sep 26, 2016 at 19:08

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.