Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

This question already has an answer here:

What does it mean if this message appears:

{Im[(1-E^Times[<<3>>] f)/(1-Power[<<2>>] f)]-0,Im[(1-E^Times[<<3>>] f)/(1-Power[<<2>>] f)]-0} must be a list of equalities or real-valued functions. >>

while Iam trying to plot this complex function

(I α)/π (Log[(1 - E^(-((I π(1 - α))/α)) f) / (1 - E^((I π(1 - α))/α) f)])

How can I plot this function for the range {α, 0.1, 1} and {f, 0.2, 1}?

Edit

Corrected errors in the expression to be plotted.

share|improve this question
    
Something is really messed up here, can you cleanup the expression? –  Spawn1701D Apr 15 '13 at 2:35
    
Can you provide the mathematical problem itself? –  Spawn1701D Apr 15 '13 at 2:43
1  
The factor π[1 - α] in your expression is a function call in Mathematica. Did you mean π(1 - α)? –  m_goldberg Apr 15 '13 at 2:44
    
Could you post the entire Plot expression you tried? –  m_goldberg Apr 15 '13 at 2:45
    
1-(I[Alpha])/[Pi](Log[( 1 - E^(-((I[Pi][1-[Alpha]])/[Alpha]))f)/( 1 - E^((I[Pi][1-[Alpha]])/[Alpha])f)]) –  sana Apr 15 '13 at 2:47
show 1 more comment

marked as duplicate by Sjoerd C. de Vries, m_goldberg, Yves Klett, Artes, whuber Apr 15 '13 at 12:09

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

Try this:

for the real part of the expression

ContourPlot[Re[(I α)/π(Log[(1 - E^(-((I π (1 - α))/α))f)/(1 - E^((I π (1 - α))/α)f)])], 
            {α, 0.1,1}, {f, .2, 1}]

enter image description here

for the imaginary part of the expression

ContourPlot[Im[(I α)/π(Log[(1 - E^(-((I π (1 - α))/α))f)/(1 - E^((I π (1 - α))/α)f)])], 
            {α, 0.1,1}, {f, .2, 1}]

enter image description here

If you simplify the expression using ComplexExpand you will find out that this is is in fact a real function

$$ -\frac{\alpha \text{Arg}\left[\frac{1+e^{-\frac{i \pi }{\alpha }} f}{1+e^{\frac{i \pi }{\alpha }} f}\right]}{\pi } $$

Using this instead its Plot3D is:

enter image description here

share|improve this answer
    
thank u very much but may I have the 2D Plotting of the function plz? –  sana Apr 15 '13 at 8:15
    
@sana the function depends on two variables so it defines a surface in 3D. In 2D you can have its contour plot which I have given in the first plot. –  Spawn1701D Apr 15 '13 at 8:25
    
understood now.. thank you again –  sana Apr 15 '13 at 9:31
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.