> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.math_utils.is_equiv

<code class="doc-symbol doc-symbol-heading doc-symbol-function" />

#### is\_equiv

```python theme={null}
is_equiv(str1: str | None, str2: str | None) -> float
```

Returns (as a float) whether two strings containing math are equivalent up to differences of formatting in

* units
* fractions
* square roots
* superfluous LaTeX.<br />Source: [https://github.com/hendrycks/math](https://github.com/hendrycks/math)

<b>Parameters:</b>

| Name   | Description           |
| ------ | --------------------- |
| `str1` | **Type:** str \| None |
| `str2` | **Type:** str \| None |

<br />
