n乗根が小数で表され​てしまうがn乗根のま​ま表記して欲しい

4 visualizaciones (últimos 30 días)
Takeru Asaka
Takeru Asaka el 9 de Feb. de 2021
Comentada: Takeru Asaka el 11 de Feb. de 2021
sqrt(2)
だと、ちゃんと
2^(1/2)
と表記してくれるのですが、
sqrt(sqrt(2))
2^(1/3)
だと近似値の小数で表記されてしまいます。もちろん、本当にしたいことはより四則計算の入り混じったものについてn乗根を用いて厳密な値を表記してほしいです。どうしたら良いでしょうか。

Respuesta aceptada

madhan ravi
madhan ravi el 9 de Feb. de 2021
sqrt(sym(2))
ans = 
sqrt(2)
ans = 1.4142
  1 comentario
Takeru Asaka
Takeru Asaka el 11 de Feb. de 2021
大変ありがとうございます。
sqrt(sqrt(sym(2)))+sqrt(sqrt(sym(2)))
とすると
2*2^(1/4)
と表示されたのでちゃんと計算も行ってくれています。ありがとうございました。

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!