For my thesis, I have been looking for an equation that calculates an exp(x) with Vyper smart contract. I choose Vyper over Solidity for its ability to handle fixed-point numbers. However, I couldn't find an efficient to do this since Vyper doesn't allow me to do exponentiation with a decimal base.
What I was trying to do is e**x (e = constant Euler number = about 2.718281828. x is the variable of a decimal that can be negative or positive)
I tried looking for a Vyper math library that provides exponentiation function for decimals but with no luck. Someone somewhere suggested using look-up tables for exponential e to minimize computation time. However, I have no idea how can I implement that in Vyper.
I'm currently trying to develop an exponential function based on Taylor's series, https://en.wikipedia.org/wiki/Taylor_series.
Is this the only way to calculate this problem? I feel like there could be a better solution.