diff --git a/doc/changelog.rst b/doc/changelog.rst index 316d27b2a..fd558726f 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -7,6 +7,9 @@ Changelog New ~~~ +- Non-number exponents for the ``pow()`` function + are now supported in Taylor integrators + (`#454 `__). - It is now possible to initialise a Taylor integrator with an empty initial state vector. This will result in zero-initialization of the state vector diff --git a/src/math/pow.cpp b/src/math/pow.cpp index 7a7d7fa62..cad561728 100644 --- a/src/math/pow.cpp +++ b/src/math/pow.cpp @@ -550,9 +550,7 @@ llvm::Value *taylor_diff_pow_impl(llvm_state &s, llvm::Type *fp_t, const pow_imp auto *div = llvm_fmul(s, ord_f, b0); // Compute and return the result: ret_acc / div. - auto *ret = llvm_fdiv(s, ret_acc, div); - - return ret; + return llvm_fdiv(s, ret_acc, div); } // LCOV_EXCL_START