Post Reply 
Constant Vector as Argument in PPL
06-17-2024, 07:53 PM
Post: #1
Constant Vector as Argument in PPL
Hello Prime Friends,

I see a strange difference between the two PPL functions

export bla()
begin
return normalize([0,0,-1]);
end;
export blu()
begin
return normalize([0,0,1]);
end;

SIZE(bla) equals 6 and the numbers don't seem to make a sense. I'd expect bla = [0,0,-1] since normalize(v) should be v/abs(v).

blu and SIZE(blu) are [0,0,1] and 3 as expected.

Do you know what's going on?

Best Wishes,
David
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Constant Vector as Argument in PPL - NumericDavid - 06-17-2024 07:53 PM



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