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.

I have the following output. How can I convert this unnecessarily long expression into a single result (like z=u+iv) ?

$\frac{(\text{} (0.0000540641 +0. i)-(0.0000422121 -0.0000372664 i)) \text{}^*-\text{} (0.0000422121 +0.0000372664 i)-(0.0815183 +0. i)}{(\text{} (0.0000195917 +0.00735289 i)-(0.00102104 +0.00774092 i)) ((0.0000195917 -0.00735289 i) \text{}^*-(0.00102104 -0.00774092 i))}$

share|improve this question

closed as too localized by Szabolcs, acl, Oleksandr R., Sjoerd C. de Vries, rm -rf Mar 7 '13 at 21:32

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

What do the "@" and "*" mean? (In Mathematica's interpretation they would amount to nonsense, which could be a large part of your problem.) –  whuber Feb 5 '13 at 13:15
"@" is not included at the output. Please just ignore it. Somehow it comes by default when I "copy as" the output in Latex format. Weird! –  ivan Feb 5 '13 at 13:24
Copy as Input Text and then paste it in the question, highlight it and click the {} button –  ssch Feb 5 '13 at 13:26
Input text+highlight+{} did not work well. Anyway, I just removed the "@"s by hand. –  ivan Feb 5 '13 at 13:33
Let me pose the question other way around. Why Mathematica does not just take the complex conjugates then subtract the expressions and finally divide them. I do not get it. I used Simplify and some other commands. But still problem stands! Help please. –  ivan Feb 5 '13 at 14:01

1 Answer 1

Please paste Mathematica code instead, if you had just entered it into Mathematica it would have been simplified for you automatically:

expr = ToExpression[
    "$\\frac{(\\text{} (0.0000540641@ +0. i)-(0.0000422121@ \
    -0.0000372664 i)) \\text{}^*-\\text{} (0.0000422121@ +0.0000372664 \
    i)-(0.0815183@ +0. i)}{(\\text{} (0.0000195917@ +0.00735289 \
    i)-(0.00102104@ +0.00774092 i)) ((0.0000195917@ -0.00735289 i) \
    \\text{}^*-(0.00102104@ -0.00774092 i))}$"
    , {"@" -> "", "i" -> "I", "\\text{}" -> ""}], TeXForm];
expr /. SuperStar -> Conjugate

I didn't verify it parsed to the same thing but it gives -2115.25 - 4552.06 I

share|improve this answer

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