func (d Decimal) Pow(d2 Decimal) Decimal {
	dec := Decimal{decimal: d.decimal.Pow(d2.decimal)}

	var vars, formula string
	if d.parens {
		vars += leftParen + d.vars + rightParen + pow
		formula += leftParen + d.formula + rightParen + pow
	} else {
		vars += d.vars + pow
		formula += d.formula + pow
	}

	if d2.parens {
		vars += leftParen + d2.vars + rightParen
		formula += leftParen + d2.formula + rightParen
	} else {
		vars += d2.vars
		formula += d2.formula
	}

	dec.vars = vars
	dec.formula = formula

	return dec
}
// Pow returns d to the power d2
Pow returns d to the power d2
// Pow returns d to the power d2
func (d Decimal) Pow(d2 Decimal) Decimal {
	dec := Decimal{decimal: d.decimal.Pow(d2.decimal)}
	var vars, formula string
	if d.parens {
		vars += leftParen + d.vars + rightParen + pow
		formula += leftParen + d.formula + rightParen + pow
	} else {
		vars += d.vars + pow
		formula += d.formula + pow
	}
	if d2.parens {
		vars += leftParen + d2.vars + rightParen
		formula += leftParen + d2.formula + rightParen
	} else {
		vars += d2.vars
		formula += d2.formula
	}
	dec.vars = vars
	dec.formula = formula
	return dec
}
func ( d Decimal ) Pow ( d2 Decimal ) Decimal { dec := Decimal { decimal : d . decimal . Pow ( d2 . decimal ) } var vars , formula string if d . parens { vars += leftParen + d . vars + rightParen + pow formula += leftParen + d . formula + rightParen + pow } else { vars += d . vars + pow formula += d . formula + pow } if d2 . parens { vars += leftParen + d2 . vars + rightParen formula += leftParen + d2 . formula + rightParen } else { vars += d2 . vars formula += d2 . formula } dec . vars = vars dec . formula = formula return dec }
Pow returns d to the power d2
Pow returns d to the power d2