Skip to main content
4-Participant
March 15, 2017
Solved

I am getting error as all evaluations resulted in either an error or a complex result

  • March 15, 2017
  • 2 replies
  • 1437 views

Hi all,

I am getting an error as all evaluations resulted in either an error or a complex result

when I try plot a 2D graph in which,

x-axis ranges from 0.01 to 1

y-axis is logarithmic.

I attached my code below.

Could you please tell me how to overcome this error ?

y-axis must be logarithmic and x-axis is normal values ranging from 0.01 to 1.

Best answer by Fred_Kohlhepp

If I plot regularly, the values of f2(y) are negative.  You can't have the log of a negative number.

If I plot the negative and make the vertical scale log, you get:

2 replies

23-Emerald I
March 15, 2017

If I plot regularly, the values of f2(y) are negative.  You can't have the log of a negative number.

If I plot the negative and make the vertical scale log, you get:

21-Topaz II
March 15, 2017

Hi vetri veeran,

you have to use  the logarithmic scale for the x-axis only.

Regards

F. M.