New Mathematica user here. I'm using some code from a colleague and editing it to give me more specific results in finding the zeros of a complex polynomial. I am attempting to find a way to assign a value to a variable A symbolically - i.e., give variable A an expression value that depends on other variables. It's a quotient expression, and at one point the variable in the denominator equals zero. How can I use an if statement to say, "If this variable does not equal zero, the value of 'A' should be this expression?"
For clarity, in the picture included above, the line that I'm struggling with is the first line of the second code block, where I'm attempting to assign a value to A by way of an expression. I think the problem is that when I try to put Re[z] in the denominator, there's one point where Re[z] is zero, and I need to somehow have a conditional statement that says 'only assign A the value of this expression when Re[z] does not equal zero'