Hello,
It may be a silly question but I am looking for a function to do the calculation of an angle between 2 lines. It can be in 2 or 3D and with 3 or 4 points (2 lines not parallel). I tried with something like:
hey, it looks good, but I still have a small question, because when I write the numbers, it gives me the numerical value, but with a value from my CVS file, it gives me the geometrical expression with ArcCos (see attachement). Somebody know which conversion need to be done? Thank you
Please check if you - is really a minus. Perhaps do FullForm[…] to investigate where the problem is. With a screenshot I can only guess where your typo is… good luck!
Hello Sander, thanks a lot for your advice. With FullForm[…] I find out that there are indeed different. However, I don’t know how to force them to be a number as N[…] is not efficient. Any advice?
Hey, ToExpression works, thanks a lot. I was looking for something like StringToNum as “ToExpression” is not obvious as a fonction for a conversion but it does the job!
It does much more than ‘StringToNum’, as it does string to everything (equations, formulas, numbers, …) so rather than having 4-5 different function, Mathematica(Wolfram language) only has one…