# Exponential and logarithm operations

**URL:** <https://forum.algorand.co/t/exponential-and-logarithm-operations/3322>\
**Category:** General\
**Tags:** teal, smart-contracts\
**Created:** [May 18, 2021, 2:10pm UTC](https://forum.algorand.co/t/exponential-and-logarithm-operations/3322 "2021-05-18T14:10:41Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![cotunho](https://avatars.discourse-cdn.com/v4/letter/c/ee7513/32.png) [@cotunho](https://forum.algorand.co/u/cotunho)\
**Post date:** [May 18, 2021, 2:10pm UTC](https://forum.algorand.co/t/exponential-and-logarithm-operations/3322/1 "2021-05-18T14:10:42Z")

</div>

Hi everybody,  
I’m writing a smart contract stateful in PyTeal in which I have to implement some operations, including the power and logarithm operation. It’s known that it isn’t possible to use loops in PyTeal, but which can be an arithmetic alternative to implement power and logarithm?

Thanks for all the tips!

---

_[View the full topic](https://forum.algorand.co/t/exponential-and-logarithm-operations/3322)._
