Post Reply 
Return a vector from a function?
07-06-2015, 10:21 AM (This post was last modified: 07-06-2015 10:25 AM by DrD.)
Post: #4
RE: Return a vector from a function?
By using a list first, try this function, which will create the variables M0, mag, and ang. (Uncheck the [M0]):

[Shift] [Define]
NAME: defvect
Function: M0:=list2mat({mag*COS(ang), mag*SIN(ang)})

M0:[ ] mag:[] ang:[ ]

oops, I see Didier beat me to it!
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? - DrD - 07-06-2015 10:21 AM



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