# Math Help - How I plot this function in Mathcad?

1. ## How I plot this function in Mathcad?

Hi Folks!

I'm starting to learn PTC Mathcad Prime 3.0 and I need to plot this function:

Can anyone help me?

Thanks a lot!

2. ## Re: How I plot this function in Mathcad?

Originally Posted by Grundy
Hi Folks!

I'm starting to learn PTC Mathcad Prime 3.0 and I need to plot this function:

Can anyone help me?

Thanks a lot!
There are two main ways I believe.

1) use a series of nested if functions. It should be pretty clear how to do this, just keep using if's in the false expression to evaluate the next interval possibility.

2) use the fact that boolean expressions evaluate to 1 and 0 for true and false. It would look like

$x(x<1)+3(x=1)+(2-x^2)(1<x\leq 2)+(x-3)(x>2)$

3. ## Re: How I plot this function in Mathcad?

It's working

Thanks a lot romsek!