Constant Vector as Argument in PPL
|
06-22-2024, 08:34 PM
Post: #10
|
|||
|
|||
RE: Constant Vector as Argument in PPL
(06-22-2024 07:10 PM)NumericDavid Wrote: I have a feeling that issue might be related to a CAS/ not CAS irritation. My application is purely numeric but normalize() seems to try to return an expression instead of numeric vector. I think you are on the right track. It appears that normalize() is a command dedicated to CAS, and passing a parameter inside a PPL program might not be handled correctly. Therefore, when you enter the program not as pure PPL, but as a CAS region, everything works correctly: Code: #cas However, a simpler solution is to substitute individual elements of the vector one by one, e.g., normalize[0,0,-1] instead of normalize([0,0,-1]). Then your program will look like this: Code: export bla() This should solve your problem. Piotr Kowalewski |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Constant Vector as Argument in PPL - NumericDavid - 06-17-2024, 07:53 PM
RE: Constant Vector as Argument in PPL - BruceH - 06-18-2024, 10:00 AM
RE: Constant Vector as Argument in PPL - ftneek - 06-18-2024, 06:39 PM
RE: Constant Vector as Argument in PPL - NumericDavid - 06-18-2024, 08:09 PM
RE: Constant Vector as Argument in PPL - ftneek - 06-18-2024, 09:05 PM
RE: Constant Vector as Argument in PPL - NumericDavid - 06-18-2024, 10:01 PM
RE: Constant Vector as Argument in PPL - ftneek - 06-19-2024, 12:10 AM
RE: Constant Vector as Argument in PPL - NumericDavid - 06-22-2024, 07:10 PM
RE: Constant Vector as Argument in PPL - komame - 06-22-2024 08:34 PM
RE: Constant Vector as Argument in PPL - NumericDavid - 06-22-2024, 07:23 PM
|
User(s) browsing this thread: 6 Guest(s)