I am having rather unpleasant issues with parenthesis. Sometimes, when I change some part of the code that does not relate to a line with parenthesis, this line suddenly turns red and mathematica claims that there is no closing parenthesis: The code looks like:
mAtm = 5.148*10^18;(* kg *) rE = 6.378*10^6; (* m *) hEq = (mAtm/(4/3 π*ρGas) + rE^3 )^(1/3) - rE; sMin = 0; sMax = QuantityMagnitude[hEq]; ns = 6; s = Range[sMin, sMax, (sMax - sMin)/(ns - 1)];
But Mathematica shows this:
Unfortunately I cannot give exact steps to reproduce the problem. It was ok, when I typep it, then I changed the first two lines (they used to be:
mAtm = Quantity[5.148*10^18,"Kilograms"]; rE = Quantity[6.378*10^6,"Meters"];
and once they are changed the error appears. The only way out is to retype the third line, not even copy to notepad and then back helps.
Another annoyance is that if I type a string with " after e.g. third character the cursor jumps one line down. Again, not always but sometimes. Can someone reproduce the problem or tell me what error am I doing so that these problems occur?