* @return
* @throws SBMLException
*/
private ASTNodeValue root(double rootExponent, ASTNodeValue radiant)
throws SBMLException {
UnitDefinition ud = radiant.getUnits().clone();
for (Unit u : ud.getListOfUnits()) {
if ((((u.getExponent() / rootExponent) % 1d) != 0d) && !u.isDimensionless() && !u.isInvalid()) {
new UnitException(String.format(
"Cannot perform power or root operation due to incompatibility with a unit exponent. Given are %s and %s.",
StringTools.toString(u.getExponent()), StringTools.toString(rootExponent)));
}