Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Re: Function Composition

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

09-03-2012
09:13 AM

09-03-2012
09:13 AM

I have been playing around with Mathcad Prime 2.0 and have been rather impressed with how simple and intuative it is to use compared to previous versions of Mathcad. I love the mathematical notation because I don't have to learn an awful c-based programming language (eg Matlab), to do my work. That was until I discovered that to compose the functions *f(x)* and *g(x)*, instead of the intuitive mathematical notation *f.**g(x), *you have to resort to *f(g(x))*, which looks more like programming and less like maths. It looks particularly horrible when used on multiple functions *f(g(h(k(m(n(x))))))* and has you counting parentheses (somewhat reminiscent of lisp, but without the awesomeness) versus the more elegant and correct *f.g.h.k.m.n(x)*

Surely, this can't be that hard to implement?

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

09-03-2012
11:11 AM

09-03-2012
11:11 AM

I've discovered that I can fake it with a little bit of syntactic sugar!

3 REPLIES 3

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

09-03-2012
09:55 AM

09-03-2012
09:55 AM

Re: Function Composition

More simple example.

I can have in Mathcad 15** sin x** as postfix operator.

I must have in Mathcad Prime **sin(x)** not **sin x** as in Math.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

09-03-2012
11:11 AM

09-03-2012
11:11 AM

I've discovered that I can fake it with a little bit of syntactic sugar!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

09-03-2012
01:30 PM

09-03-2012
01:30 PM

Re: Function Composition

You can also partially get round it by creating a function to apply a function to a variable (or result of another function application) and then assigning the function to a symbol (eg, middot character).

It would be a nice feature to have, though ...

Stuart