<< Ones SYMSCI Toolbox Reshape >>

SYMSCI Toolbox >> SYMSCI Toolbox > Pow

Pow

(^,**) symbolic power operator

Syntax

c = Pow( a, b )
c = a ^ b
c = a ** b

Arguments

a, b

symbolic, double, or integer

c

symbolic

Description

Returns the exponentiation with base a and exponent b, i.e. c = a ^ b.

It is mandatory, that at least one of the operands a or b is symbolic. Double and integer arguments are converted automatically to a symbolic representation, before the operation is carried out.

Examples

// some expressions
a = Sym("-x^5+y*x-z")
b = Sym("x+y")

// some powers
a^b

a^1.23

int32(5)^b

See Also

Authors

Bibliography

SymEngine: C++ library for fast symbolic manipulation.


Report an issue
<< Ones SYMSCI Toolbox Reshape >>