# subs_repeated 関数

置換規則を、何も変わらなくなるまで繰り返し適用します。

## 書き方

### subs_repeated(expr, rules)

**expr**

任意の式：数、数式、リスト、行列。式を受け取ります。

**rules**

何を何の代わりに入れるか。規則または規則のリストを受け取ります。

## 例題

- $\displaystyle \operatorname{subs\_repeated}(a, \left[ a \to b, b \to c \right]) = c$

  `subs_repeated(a, [a -> b, b -> c])`

  ソルバーでは、`subs_repeated(a, [a -> b, b -> c])` の答えは `c` です。

  [ソルバーで開く](https://ja.hilberon.com/?q=subs_repeated%28a%2C%20%5Ba%20-%3E%20b%2C%20b%20-%3E%20c%5D%29)

## 関連する関数

- [subtract_from](https://ja.hilberon.com/library/subtract_from)

  変数からその場で値を引き、新しい値を返します。
- [slot](https://ja.hilberon.com/library/slot)

  名前のない関数のn番目の引数。function(body) の中で slot(1) は最初の引数です。
- [times_by](https://ja.hilberon.com/library/times_by)

  変数に値を掛けてその場で更新し、新しい値を返します。
- [set_delayed](https://ja.hilberon.com/library/set_delayed)

  関数を定義します。f(x) := body とも書きます。
- [with_effort](https://ja.hilberon.com/library/with_effort)

  クイック、標準、深い、徹底のいずれかの計算の深さで本体を評価します。
- [set](https://ja.hilberon.com/library/set)

  名前に値を割り当てます。name := value とも書きます。

---
Source: https://ja.hilberon.com/library/subs_repeated
