This is a very basic question that I cannot seem to find a solution to.
The following line throws an error in Modelica:
parameter Real chargeDensity(unit = "C/m")=10^-10;
The error is:
File "<interactive>", line 6, column 90, after '^' and before '-':
Syntax error: At this point, a primary expression is expected, e.g., a value literal, a component reference, or a function call.
The only way I have found to do this is:
parameter Real chargeDensity(unit = "C/m")=1/10^10
Is there a power function or operator in Modelica that accepts a negative exponent? Would I have to use an if clause to check the sign of an exponent variable?