-1

I have a vector (in physic) designated asF1=250cos(60)i+250cos(60)j+250cos(45)k, and i would like to see it in a 3D graphic with the axis centered at the origin, after what i would include other vector from there. But i have been unable to graph it. I would like it to look like this:

Vector in Space

(first time user, would appreciate as much info as possible)

Thanks in advance

Seb.

1 Answers1

0
Graphics3D[Arrow[{{0, 0, 0}, {Cos[60], Cos[60], -Cos[45]}}], 
 PlotRange -> {#, #, #} &@{-1, 1}, Axes -> True, Boxed -> False, 
 AxesOrigin -> {0, 0, 0}]

Mathematica graphics

Dr. belisarius
  • 115,881
  • 13
  • 203
  • 453
  • Thanks enormously, i will be able to catch up from here. You are really helpful. – Sebastien Comtois Feb 27 '15 at 18:20
  • May i ask why you used {#,#,#}&@{-1,1}...what does it do, what does it stand for ? – Sebastien Comtois Feb 27 '15 at 18:22
  • @SebastienComtois Copy it to your notebook and evaluate it – Dr. belisarius Feb 27 '15 at 18:29
  • There is something wrong, it`s not in the good quadrant... it is supposed to be in {+,+,-} not in {-,-,-}, how is it possible that a vector(arrow) of origin {0,0,0} and end point at { Cos[60], Cos[60], -Cos[45] } can end up in that orientation ? – Sebastien Comtois Feb 27 '15 at 18:39
  • and ive tried what you said but i dont understand what the &@ ...(and everything else related to it), stands for. – Sebastien Comtois Feb 27 '15 at 18:41
  • it say >>The specified setting for the option Graphics3DBoxOptions, PlotRange cannot be used. >> if i change the ### value, for the {-1,1}, if i understand correctly, i think it`s for box orientation...size...??? – Sebastien Comtois Feb 27 '15 at 18:42
  • @SebastienComtois Well, you need to spend some time with Mathematica. Try reading this Q&A http://mathematica.stackexchange.com/q/18393/193 – Dr. belisarius Feb 27 '15 at 18:42