cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

SOLVED
Highlighted
Newbie

## Error Plotting a Function

Hi

I am fairly new to mathcad and I'm having a problem creating a graph of an equation, which describes the transient behaviour of the torque generated by a moter during a fault condition. The datasheet where the equation comes from states that the maximum value (-295.4) occurs at t=0.016s and so I have been able to check that the equation is giving the correct answer for a single value of t.

I now want to create a graph of the function, but when I try to do so, I get an error stating "Plotting failed. Replace complex values and NaNs by real numbers".

Can anyone tell me why this is going wrong? I have tried it with and without units; using t and t1 as the argument.

Thanks

Ken

My Mathcad Prime 3 worksheet is attached.

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions

## Re: Error Plotting a Function

That's a very misleading error message. You have inadvertently created a function, D(). Insert a multiplication operator so that you have D*(), and it works fine.

4 REPLIES 4

## Re: Error Plotting a Function

That's a very misleading error message. You have inadvertently created a function, D(). Insert a multiplication operator so that you have D*(), and it works fine.

## Re: Error Plotting a Function

Have you ever tried to evaluate m4(0.01 s)= ore something like that? You get the error "This value must be a function" and if you trace back that error (calculation ribbon) you land in the definition of m4() at D. You typed D(...) instead of D*(...) and so you are calling a nonexistent function D(). Add the multiplication sign between D and the parenthesis and your sheet works as expected.

## Re: Error Plotting a Function

 Richard Jackson wrote:That's a very misleading error message. You have inadvertently created a function, D(). Insert a multiplication operator so that you have D*(), and it works fine.