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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

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

vveeran
4-Participant

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

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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:

View solution in original post

2 REPLIES 2

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:

-MFra-
21-Topaz II
(To:vveeran)

Hi vetri veeran,

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

Regards

F. M.

Top Tags