Generating square vector field

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 2K views
Superposed_Cat
Messages
388
Reaction score
5
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.
 

Attachments

  • A.jpg
    A.jpg
    44 KB · Views: 469
  • B.png
    B.png
    529 bytes · Views: 482
Mathematics news on Phys.org
Is it even possible?
 
By generate do you mean, does there exist a scalar function such that the gradient of this scalar function is the given vector field?