Re: help with mathematica 5.2-Vector
- To: mathgroup at smc.vnet.net
- Subject: [mg84492] Re: [mg84487] help with mathematica 5.2-Vector
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Sat, 29 Dec 2007 19:58:41 -0500 (EST)
- Reply-to: hanlonr at cox.net
Lists are not vectors. a = {1, 2, 3}; b = {2, 3, 4}; c = a - b; Show[Graphics3D[ Thread[{{Red, Blue, Green}, Line[{{0, 0, 0}, #}] & /@ {a, -b, c}}]], Axes -> True] Bob Hanlon ---- george <mariuska1989 at hotmail.com> wrote: > Hello! I started recently working with Mathematica 5.2 and I face a problem that I'm trying to solve but I can't find the solution: I have 2 vectors, let's say: > a=(1,2,3) > b=(2,3,4) > I want to make the graph for c=a-b(it should be an arrow, at 3-Dimensions, right?). > I use the command ListPlot(c), nevertheless it produces cartesian axes with 2 points(I suppose these are the heads of the arrows, but I'm not sure). > Is there anything to do in order to make the correct graph? > (if the graph is not supposed to be an arrow, is not supposed to be at 3-Dimensions, it would be really helpful if someone could explain me why). > Thank you in advance. >