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
- :
- Error Plotting a Function

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

11-26-2014
11:40 AM

11-26-2014
11:40 AM

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.

Solved! Go to Solution.

1 ACCEPTED SOLUTION

Accepted Solutions

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

11-26-2014
12:46 PM

11-26-2014
12:46 PM

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

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

11-26-2014
12:46 PM

11-26-2014
12:46 PM

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

11-26-2014
12:48 PM

11-26-2014
12:48 PM

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.

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

11-26-2014
02:49 PM

11-26-2014
02:49 PM

Re: Error Plotting a Function

Richard Jackson wrote:

See please the Ward # 17 in the Mathcad Mad House http://communities.ptc.com/message/178791

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

11-27-2014
03:37 AM

11-27-2014
03:37 AM

Re: Error Plotting a Function

Thanks everyone. I guessed it was going to be something simple.

Ken