Post Reply 
Return a vector from a function?
07-06-2015, 07:44 AM
Post: #2
RE: Return a vector from a function?
OK so I solved my task by making it a program

Code:

EXPORT DEFVECT(mag,ang)
BEGIN
   RETURN([mag*COS(ang),mag*SIN(ang)]);
END;

But that really feels like tapping an exposed nail head with a sledge hammer. Is there no way to return a vector or matrix from the 'Define' window?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Return a vector from a function? - norlesh - 07-06-2015, 12:55 AM
RE: Return a vector from a function? - norlesh - 07-06-2015 07:44 AM
RE: Return a vector from a function? - DrD - 07-06-2015, 10:21 AM



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