Post Reply 
Constant Vector as Argument in PPL
06-18-2024, 10:01 PM
Post: #6
RE: Constant Vector as Argument in PPL
May we concentrate on the actual calculator? Differences between Mac or Windows VC are less important to me.

I just entered into a physical HP Prime G2 the program:
verbatim"
EXPORT BLA()
BEGIN
normalize([0,0,-1])
END;
"
By tapping the "Run" virtual button in the Program Catalog view, i obtain the answer:
verbatim"
BLA [0,0.31511344578,
0.904534033733,0,0,
-0.301511344578]
"
Which is unexpected to me.

On contrast, if i omit the "-" symbol in the program above, i obtain, by "Run" the answer:
verbatim"
BLA [0,0,1]
"
Which is what i'd expect.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Constant Vector as Argument in PPL - NumericDavid - 06-18-2024 10:01 PM



User(s) browsing this thread: 1 Guest(s)