
×InformationFix Windows 10 Update Issues
Resolve Windows 10 related issues for your HP computers or printers by HP Windows 10 Support Center

×InformationFix Windows 10 Update Issues
Resolve Windows 10 related issues for your HP computers or printers by HP Windows 10 Support Center
 HP Community
 >
 Other Products
 >
 Calculators
 >
 divide a vector by a scalar in RPN
 Mark Topic as New
 Mark Topic as Read
 Float this Topic for Current User
 Bookmark
 Subscribe
 Mute
 Printer Friendly Page
Create an account on the HP Community to personalize your profile and ask a question
Solved!
divide a vector by a scalar in RPN
05242018 12:01 PM
How do I divide a vector by a scalar to get a unit vector. I can enter the vector in the stack, and I can copy and determine the magnitude, but when I hit divide, it shows the original vector over the divisor. If I try to use that vector in a dot product calculation, it does not return a value.
Solved! Go to Solution.
05242018 12:57 PM
This is a puzzlement, since I just tried doing that on 8 different HP Primes with 8 different versions of the firmware, and they all did what I think you want.
There were my specific keystrokes in RPN mode in Home view:
[ 3, 4 ] ENTER (to put the vector on level 1 of the stack)
ENTER (to copy it to level 2)
ABS (obtained by pressing Shift +/)
÷ (the divide key)
> [ 0.6, 0.8 ] (the desired result)
Please tell us your exact key sequence, what the result is, and what you want the result to be.
In case it isn't obvious, RPN mode only works in Home view, not in CAS view.
Side note: You can find the "unit vector" for a complex number by executing the SIGN function. If the Complex Display mode (in Home Settings) is set to (a,b) instead of a+bi, complex numbers are even displayed as vectors, which is nice.
Disclaimer: I don't work for HP. I'm just another happy HP Prime user.
05242018 01:04 PM
Thanks Joe. My two vectors were [112] and [100] I was using the function L2 Norm in the vector menu to get the magnitude of [112] which returns SQRT(6) rather than a numerical value. If I hit evaluate, it give numerical values, but your way is much better with the shift +/ button. Thanks!
Didn't find what you were looking for? Ask the community