How to iteratively increase the number of power operations

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Loops 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