Beispiel #1
0
    def __rpow__(self, other) -> 'MultiVector':
        """Exponentiation of a real by a multivector, :math:`r^{M}`"""

        # Let math.log() check that other is a Python number, not something
        # else.

        # pow(x, y) == exp(y * log(x))
        newMV = taylor_expansions.exp(math.log(other) * self)

        return newMV
Beispiel #2
0
 def exp(self) -> 'MultiVector':
     return taylor_expansions.exp(self)
Beispiel #3
0
def general_exp(x, **kwargs):
    warnings.warn(
        "cf.general_exp is deprecated. Use `mv.exp()` or `np.exp(mv)` on multivectors, or `cf.taylor_expansions.exp(x)` on arbitrary objects",
        DeprecationWarning,
        stacklevel=2)
    return taylor_expansions.exp(x, **kwargs)