> For the complete documentation index, see [llms.txt](https://yingshaoxo.gitbook.io/university-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yingshaoxo.gitbook.io/university-notes/high-level-math/function-limitation-and-continuity-of-function/what-is-function.md).

# What is function?

When we talk about function, it's typically a series of instruction which in a box and when you put variables in, it will return some certain result.

For example:

```
def add(a, b):
    return a + b
```

It's the same thing as $$f(a, b) = a + b$$ , which get variables `a` and `b` and return `a + b`.

But in math, we call the `a + b` y.

毫不夸张地说，老师一直以来都欺骗了我们，把它变得非常神秘。 事实上，函数就是 a function. A function 就是一系列“代码”用来实现一个特定的任务。（比如计算平方、计算数的变化）


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://yingshaoxo.gitbook.io/university-notes/high-level-math/function-limitation-and-continuity-of-function/what-is-function.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.
