# Tachyon Math Library

The exponential and logarithmic calculations required for the pool equations (since a power function can be achieved with `x^a = e^(a*ln(x))` ) are done with the Tachyon math library. Tachyon is an opensource library which uses lookup tables and interpolation for very fast on-chain math. It was built by the Dyson Swap team specifically for this purpose, and has been opensourced for benefit of the community.

<https://gitlab.com/dysonswap/tachyon>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dysonswap.xyz/protocol-design/tachyon-math-library.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
