1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Generating square vector field

  1. Nov 3, 2013 #1
    Hi all, my friend is writing a sci-fi/fantasy book and for it he asked me for a function that generates a vector field like picture A. So far the closest I've got is i*-(1/x)+1/-yj, which generates B. How would I generate B without using conditions? any help appreciated, thanks.

    Attached Files:

    • A.jpg
      File size:
      44 KB
    • B.png
      File size:
      510 bytes
  2. jcsd
  3. Nov 3, 2013 #2
    Is it even possible?
  4. Nov 3, 2013 #3
    By generate do you mean, does there exist a scalar function such that the gradient of this scalar function is the given vector field?
  5. Nov 3, 2013 #4
  6. Nov 9, 2013 #5
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook