HP-35S and angle between two segments in the space



I have three points in the space, X, Y, Z, each identified with three space coordinates.

Now I have two segments, one from X1 to X2, the other from X2 to X3.

How can I quickly get the angle between these segments with my HP-35S and the vectors capabilities?

Thanks in advance to anyone answering.

-- Antonio


Not sure about vector operations but the easiest way to me seems to be calculating the distance between the points.. giving you a triangle with known side lengths. Then you can calculate internal angles with the law of cosines. This could easily be written into a program.


There are a number of ways, but here is one that uses the equation feature and the dot product.

Store points X1, X2, and X3, into A, B, and C.

In EQN , create:


and evaluate the EQN.

[EDIT] Be careful with the order the points are entered. My equation makes two vectors B to A, and B to C, or the angle ABC.


Edited: 24 Apr 2008, 5:43 p.m. after one or more responses were posted



In EQN , create:


and evaluate the EQN.

Although that generally should work, the following is from the HP-35S Manual:

Dot Product
Function DOT is used to calculate the dot product of two vectors with the same
length. Attempting to calculate the dot product of two vectors of different length
causes an error message “Invalid Data”.

So it might be better to divide each vector by it's absolute value before using the dot product just to be safe.


Well, if this is so, the HP35 implementation of the dot product is wrong. My 28C does things as it should. The mathematical definition of the dot product limits it by no means to two normalized vectors.



Invalid Data is when multiplying vectors [1,2,3] and [4,5], which of course can't be done. "Length" in the manual refers to "number of components", not the Norm of the vector (or at least I assumed this.)



Thanks to anyone.

-- Antonio

Possibly Related Threads...
Thread Author Replies Views Last Post
  Missing LCD segments (48 SX) Matti Övermark 2 607 09-18-2013, 03:50 PM
Last Post: Matti Övermark
  HP-12C: Missing Segments Stefan Ramonat 2 626 06-28-2013, 10:59 AM
Last Post: Stefan Ramonat
  Too wide spaces between segments of emulated WP34S? René Franquinet 3 600 02-22-2013, 11:14 AM
Last Post: René Franquinet
  Default angle mode Eric Smith 71 4,613 12-06-2012, 01:19 AM
Last Post: Eddie W. Shore
  HP50G Max SDcard Storage space?? mr-scorpio 9 1,207 08-22-2012, 09:57 AM
Last Post: Bart (UK)
  OT - Arduino In Space from HP41 Hacker PeterP 3 710 06-16-2012, 10:43 PM
Last Post: PeterP
  OT: Space ship Michael Eckstein 18 1,643 04-04-2012, 12:31 PM
Last Post: Michael Eckstein
  LCD repair tip: Missing segments on heat seated ribbon McAllan 7 1,015 03-11-2012, 08:50 PM
Last Post: Joerg Woerner
  missing segments on 20b running 34s db (martinez, ca.) 4 709 10-05-2011, 01:27 AM
Last Post: Walter B
  [alpha][space] in WP34S fhub 23 2,207 08-10-2011, 04:21 PM
Last Post: Marcus von Cube, Germany

Forum Jump: