How can I draw vectors on a computer using LaTeX for a math assignment?

AI Thread Summary
For drawing vectors in a math assignment, LaTeX is a viable option, though it requires overcoming a learning curve. The pgf/TikZ package is highly recommended for creating graphics inline within LaTeX documents, offering flexibility in drawing coordinate systems and vectors. Alternatives like Asymptote and Metapost are also suitable. Users can utilize the \vector command for basic vector representation, but for more complex designs, the \qbezier command can provide additional freedom, albeit with some limitations. Including other packages like PSTricks can further enhance drawing capabilities. Resources and examples are available online to assist with using these tools effectively.
Tricore
Messages
20
Reaction score
0
I need to draw a couple of vectors for a math assignment. Any recommendations as to what program to use for this? Can LaTeX do it?

Thanks in advance :smile:
 
Computer science news on Phys.org
The draeing toolbar in Powerpoint isn't too bad, you can draw the vector, right-click on it to look at the prpoerties then scale & rotate as you need to do to finish the assignment. Latex will work, but you will have to get thru the learning curve.
 
Okay thanks, I'm doing my assignment in LaTeX anyhow so I'd prefer using that to draw too, but I can't find anything on drawing coordinate systems / vectors in LaTeX, got any links?
 
There are a number of drawing systems for LaTeX, all of which can do what you ask. My personal favorite is http://www.ctan.org/tex-archive/help/Catalogue/entries/pgf.html, but Asymptote and Metapost seem like reasonable alternatives. pgf/Tikz can be used inline in a LaTeX document. Its default length unit is centimeters, the origin is in the lower left corner, and the drawing area expands automatically to fit its contents.
 
I just had a look a Tigz, and I must say it looks awesome! Simply fantastic, thanks a bunch guys!
 
For simple graphics...

Look at my example in #6 [click on the picture] and my last post to see how I did it
https://www.physicsforums.com/showthread.php?t=113915

You probably want to use the \vector command
see: http://cs5.ecok.edu/ByExample/node49.html
http://www.ursoswald.ch/LaTeXGraphics/picture/picture.html

Note the limitations on the available slopes.
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html/ltx-43.html For more freedom, you can use \qbezier
https://www.physicsforums.com/showpost.php?p=1278147&postcount=17
https://www.physicsforums.com/showpost.php?p=969925&postcount=695
but you might have to draw the arrowheads yourself.The above are all constrained by the LaTeX features available at PF.
Alternatively, you can try to include other packages
like http://tug.org/PSTricks/ .
 
Last edited by a moderator:
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Back
Top