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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Incorrect message of "function did not evaluate to a pure real value"

PhilipMoore
1-Visitor

Incorrect message of "function did not evaluate to a pure real value"

In the attached file, the function sometimes evaluates to imaginary numbers.

However, I'm trying to graph in a region where it would be a real valued function.

So, why did I get the error message and how do I fix it?

2 REPLIES 2

After fooling around with other options, I found the problem. I'm putting the answer to my problem up here for anyone else who might run into it.

Even though, in the axes tab, I had set x to range from 0 to 1 and y to range from 0 to 1, Mathcad was still trying to plot other points.

I had to go to quickplot data and change the options there. I would have thought that mathcad would change quickplot data to mirror the ranges I put in the axes tab, but that was not the case.

RichardJ
19-Tanzanite
(To:PhilipMoore)

Yes, the quickplot settings define the range over which the function is evaluated, whereas the axis settings define the range of the axes. Not very intuitive, I agree, but sometimes there may be a legitimate need to have them defined differently. A good example would be when you plot more than one function on the same graph. The quickplot data is available for each one, but of course you can only have one set of axes ranges.

If you want complete control over how the graphs are plotted look up the CreateMesh and CreateSpace functions.

Announcements

Top Tags