Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Maple help needed

  1. Dec 11, 2006 #1
    i am new in using MAPLE. can anyone please tell me how i can draw a vector field in MAPLE? suppose i want to draw the vector field of [tex]\vec{A} = x\hat{i} + y\hat{j}[/tex]. or you can take any other vector you like to demostrate how i can draw it.
     
    Last edited: Dec 11, 2006
  2. jcsd
  3. Dec 11, 2006 #2

    cristo

    User Avatar
    Staff Emeritus
    Science Advisor

    I don't think I really understand the question. In what sense do you want to draw the vector? For example, do you just want a graph, or do you actually want a picture of a vector?
     
  4. Dec 11, 2006 #3
    sorry i meant the vector field. i have just edited my last post
     
    Last edited: Dec 11, 2006
  5. Dec 11, 2006 #4

    cristo

    User Avatar
    Staff Emeritus
    Science Advisor

    For your vector field, it is done by the following command:

    > with(linalg):
    > F := (x,y) -> [x,y]:
    > with(plots):
    > fieldplot(F(x,y), x=-1..1, y=-1..1);
     
  6. Dec 12, 2006 #5
    thanks a lot cristo. i just have one more question: to draw the vector field of [tex]x^2\hat{i}-y\hat{j}[/tex] i just have to replace the second line of your code with F := (x,y) -> [x^2, -y]:
    am i right?
     
  7. Dec 13, 2006 #6

    cristo

    User Avatar
    Staff Emeritus
    Science Advisor

    Yes, that's correct.
     
  8. Dec 14, 2006 #7
    thanks a lot.
     
  9. Dec 21, 2006 #8
    hello there,
    as a newby in maple, I found usefull this site:
    www.mapleprimes.com
    There are a lot of maple-nuts there who
    know everything!
     
  10. Dec 23, 2006 #9
    thanks a lot to you too.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Maple help needed
  1. Maple help (Replies: 5)

  2. Help with maple (Replies: 0)

Loading...