Quantcast
Channel: PTC Community : All Content - PTC Mathcad
Viewing all articles
Browse latest Browse all 3331

Neater Functions

$
0
0

Hi all,

 

A question regarding functions...

 

If I have two functions, say:

 

bob(one, two, three) := ..............

sue(four,five,six) := .................

 

If I want to define a third function which is a combination of these, say:

 

tom(bob(one,two,three),sue(four,five,six)) := .....................

 

If I want to vary any of the arguments in either bob or sue then I have to include them both in tom. The trouble is, with more complex funcitons with lots of arguments, and in cases where a higher level function depends on lots of others, it's easy for the last function to become a bit unweildy and out of hand and hard to keep track. It also doensn't look very good!

 

Is there a clever way around this? Or is there a better way which I'm just not aware of?

 

Thanks.


Viewing all articles
Browse latest Browse all 3331

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>