userdefined functions/subroutines

23042016, 05:11 PM
Post: #1




userdefined functions/subroutines
Is it possible to return more than one result from a userdefined function/subroutine? I have been using a vector to return multiple results.
Thanks 

25042016, 07:01 AM
Post: #2




RE: userdefined functions/subroutines
Hello,
Nope, you can only return one 'object'. Of course, the object can be a list or vector (as you are doing), which solves the problem. This is what a function (a proper mathematical term) is. Something that takes 0 to n inputs and returns one single output. Cyrille 

25042016, 10:58 AM
Post: #3




RE: userdefined functions/subroutines
(25042016 07:01 AM)brebisson Wrote: Hello, Thanks 

« Next Oldest  Next Newest »

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