ans =
Answers not displaying symbolic results?
syms u v
atan2alt(v,u)
function Z = atan2alt(V,U)
% extension of atan2(V,U) into the complex plane
Z = -1i*log((U+1i*V)./sqrt(U.^2+V.^2));
% check for purely real input. if so, zero out the imaginary part.
realInputs = (imag(U) == 0) & (imag(V) == 0);
Z(realInputs) = real(Z(realInputs));
end
As I am editing this post, I see the expected symbolic display in the nice form as have grown to love. However, when I save the post, it does not display. (In fact, it shows up here in the discussions post.) This seems to be a new problem, as I have not seen that failure mode in the past.
You can see the problem in this Answer forum response of mine, where it did fail.
7 Comments
And again, several days later, it had been working fine. But today, broken again.
Darn. It was working too, for a few days. But again, it is broken as of today.
Hi @John D'Errico, this is a bug on our end that is preventing symbolic outputs from getting displayed in the outputs. So clearing the cache or changing browsers won't help. We are still investigating to find the root cause to fix it.
ARGH!
This happens on a daily basis to me.
And today, even doing as I described did not fix the problem. That is, clear all caches. delete all history. Quit the browser, restart (safari.) Multiple times emptied caches. Then I tried using firefox, so a totally different browser. Nothing fixes it. And it breaks daily, even when eventually it does work.
Even changing browsers did not fix it today. And I've gotten no response from @Tushal Desai
And now it is working. Along the way, I
- Restarted
- Empty caches
- Clear history
But it did finally work.