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
- :
- 'All evaluations resulted in either an error or a ...

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

06-05-2020
06:31 AM

06-05-2020
06:31 AM

'All evaluations resulted in either an error or a complex result

I am getting error as 'All evaluations resulted in either an error or a complex result.

Labels:

5 REPLIES 5

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

06-05-2020
07:52 AM

06-05-2020
07:52 AM

Re: 'All evaluations resulted in either an error or a complex result

You have redefined x to become an array, between the definition of F(x) and the plot.

If you move the plot upper left corner to just above the redefinition of x to an array, your plot should show.

The error message "All evaluations..." is cryptic at first sight. In this case case 'all evaluations resulted in an error' applies, because you cannot compare a singular value (such as -1, 2 or 5 with an array (that you redefined x to).

Success!

Luc

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

06-05-2020
11:24 AM

06-05-2020
11:24 AM

Re: 'All evaluations resulted in either an error or a complex result

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

06-05-2020
11:40 AM

06-05-2020
11:40 AM

Re: 'All evaluations resulted in either an error or a complex result

The definition of F(x) was not the cause of the problem of the OP.

He redefined x to be a 4 element array between the definition of F(x) and the plot (not shown in his picture). That would fail with your definition of F(x) as well.

Luc

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

06-08-2020
03:57 AM

06-08-2020
03:57 AM

Re: 'All evaluations resulted in either an error or a complex result

You're absolutely right. My answer is based on what the photo shows. Only now I have opened the file provided by FedexRight.

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

06-07-2020
03:35 PM

06-07-2020
03:35 PM

Re: 'All evaluations resulted in either an error or a complex result

Luc already explained why your plot failed - the definition of x as a vector.

Here are a few more suggestions and an explanation, why F(x) fails if x is a vector.

If you are new to this, I understand that the difference between a range and a vector can be quite confusing.

MC15 worksheet attached