# 数式 & TeX

mathTeX形式を使用して、ドキュメントに数式を含めることができます。これを提供しているのは [KaTeX](https://katex.org/docs/supported.html) ライブラリです。

mathTeXも追加できます [インラインコンテンツとして](/docs/documentation/ja-gitbook-documentation/creating-content/formatting/inline.md#math-and-tex).

### Math & TeXブロックの例

$$
s = \sqrt{\frac{1}{N-1} \sum\_{i=1}^N (x\_i - \overline{x})^2}
$$

### Markdown での表現

$$f(x) = x \* e^{2 pi i \xi x}$$

```markdown
# 数式と TeX ブロック

$$f(x) = x * e^{2 pi i \xi x}$$
```


---

# 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://gitbook.com/docs/documentation/ja-gitbook-documentation/creating-content/blocks/math-and-tex.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.
