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
- :
- Piecewise Functions (Prime 1.0)

Options

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

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

Showing results for

Highlighted
##

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

04-29-2011
10:47 AM

04-29-2011
10:47 AM

Piecewise Functions (Prime 1.0)

Just trying to input a Piecewise function in Prime and about ready to chuck my laptop out the window...

Below is the fuction that I'm trying to input into MathCAD and then plot for the range of values between 0 and Wc. Can anyone assist me on this? Once I see it once I believe I will have a better understanding of the PLOT function and the use of it specifically with Piecewise functions.

Whats incredibly frustrating is when I can easily do things by hand that end up being a ton of frustration while I learn this software. Much like yesterdays debacle of learning the summation function...haha.

Thanks for all your help everyone!

3 REPLIES 3

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

04-29-2011
11:20 AM

04-29-2011
11:20 AM

Re: Piecewise Functions (Prime 1.0)

If there's only two possibilities the best way to do it would be the "if" function. With more possibilities the best option is a program. Note the use of the "return" statement to exit the program if the condition is met, and the use of "else" to trap other cases.

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

04-30-2011
01:14 AM

04-30-2011
01:14 AM

Re: Piecewise Functions (Prime 1.0)

Richard Jackson wrote:

I think the second operator must (better) be **else if** (new in Mathcad Prime) operator not **if** one. The second **if** is valid with the **return** operator but not without one.

One real typical piecewise function - a function of tax calculation - see

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

04-30-2011
07:56 AM

04-30-2011
07:56 AM

Re: Piecewise Functions (Prime 1.0)

I think the second operator must (better) be else if(new in Mathcad Prime) operator notifone.

Yes, you are right. I forgot about the new "else if", even though I was one of the people that requested it

Top Tags