# Maple help needed

1. Dec 11, 2006

### murshid_islam

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 $$\vec{A} = x\hat{i} + y\hat{j}$$. or you can take any other vector you like to demostrate how i can draw it.

Last edited: Dec 11, 2006
2. Dec 11, 2006

### cristo

Staff Emeritus
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?

3. Dec 11, 2006

### murshid_islam

sorry i meant the vector field. i have just edited my last post

Last edited: Dec 11, 2006
4. Dec 11, 2006

### cristo

Staff Emeritus
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);

5. Dec 12, 2006

### murshid_islam

thanks a lot cristo. i just have one more question: to draw the vector field of $$x^2\hat{i}-y\hat{j}$$ i just have to replace the second line of your code with F := (x,y) -> [x^2, -y]:
am i right?

6. Dec 13, 2006

### cristo

Staff Emeritus
Yes, that's correct.

7. Dec 14, 2006

### murshid_islam

thanks a lot.

8. Dec 21, 2006

### geor

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!

9. Dec 23, 2006

### murshid_islam

thanks a lot to you too.