0

As far as I understand RegionNearest-function the last command

p = {x1, y1};
np = RegionNearest[Disk[]][p]
abs=(np - p) . (np - p) (* scalar *)

gives a result

enter image description here

which is scalar!

But if I substitude point p by {x1->1/2,y1->1/3}

abs /.{x1->1/2,y1->1/3}
(*{1/36, 1/36}*)

I get a list of values?

What's wrong here? Thanks!

Ulrich Neumann
  • 53,729
  • 2
  • 23
  • 55

0 Answers0