フィルターのクリア

How to iteratively increase the number of power operations

1 回表示 (過去 30 日間)
patr chri
patr chri 2022 年 1 月 27 日
回答済み: David Hill 2022 年 1 月 27 日
Hello,
I want to write a loop in which I will iteratively increase the number of power operations I do.
For example:
Loop 1: x(1) = 2^(1/2)
Loop 2: x(2) = 2^(1/2)^(1/2)
Loop 3: x(3) = 2^(1/2)^(1/2)^(1/2)
... (and so on)
Is this possible to be done?

採用された回答

David Hill
David Hill 2022 年 1 月 27 日
n=10;%how many do you want
x=2.^((.5).^(1:n))

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by