How to Draw a Vector Field in MAPLE?

Click For Summary

Discussion Overview

The discussion revolves around how to draw a vector field in MAPLE, specifically focusing on examples such as the vector field of \(\vec{A} = x\hat{i} + y\hat{j}\) and \(x^2\hat{i} - y\hat{j}\). Participants share code snippets and seek clarification on the drawing process.

Discussion Character

  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant requests guidance on drawing a vector field in MAPLE, providing an example vector field.
  • Another participant seeks clarification on the nature of the request, asking whether the user wants a graph or a pictorial representation of the vector.
  • A participant provides a code snippet for drawing the vector field using MAPLE commands.
  • A follow-up question is posed about modifying the code to represent a different vector field, specifically \(x^2\hat{i} - y\hat{j}\).
  • Confirmation is given that the proposed modification to the code is correct.
  • A new participant shares a resource for additional help with MAPLE.

Areas of Agreement / Disagreement

The discussion appears to have a general agreement on the code provided for drawing vector fields, with no significant disagreements noted. However, the initial question about the nature of the drawing remains somewhat ambiguous.

Contextual Notes

The discussion does not clarify the specific requirements or preferences for the graphical representation of vector fields, leaving some assumptions about user intent unaddressed.

Who May Find This Useful

New users of MAPLE looking for guidance on drawing vector fields, as well as those seeking resources for further learning about MAPLE.

murshid_islam
Messages
468
Reaction score
21
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:
Physics news on Phys.org
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?
 
sorry i meant the vector field. i have just edited my last post
 
Last edited:
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);
 
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?
 
murshid_islam said:
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?

Yes, that's correct.
 
thanks a lot.
 
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!
 
thanks a lot to you too.
 

Similar threads

  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 16 ·
Replies
16
Views
6K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
2K
Replies
26
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K