1
$\begingroup$
Eout = E^x ;
For[kz = 1, kz < 4, kz++, 
  Print[Eout1[kz] = Eout];
  Print[kz]]

The output is

E^x
1
E^x
2
E^x
3

But what I want to have is

E^x
1
E^x.E^x
2
E^x.E^x.E^x
3

Is it possible to get the desired output by using Table or a loop with Do or While?

$\endgroup$

closed as off-topic by rhermans, AccidentalFourierTransform, gwr, Henrik Schumacher, Alex Trounev Jul 15 at 15:34

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – rhermans, gwr, Henrik Schumacher, Alex Trounev
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    $\begingroup$ Your question needs more from your side. Please explain better what you have and what you need. Here it's considered helpful and polite to show your own efforts and share minimal working code in a well formatted form, so we can quickly see the problem you are facing. Please help us to help you and edit your question accordingly. Also, please take the tour, it will help you understand the site. If you write an excellent question it will inspire great answers. $\endgroup$ – rhermans Jul 12 at 12:58
  • 3
    $\begingroup$ Have you seen the Mathematica function called Nest? Also NestList Would that solve your problem? Try NestList[Times[Exp[x], #] &, E0, 5] $\endgroup$ – rhermans Jul 12 at 13:00
  • 2
    $\begingroup$ Fold and FoldList could also be of interest here, in case the second argument $e^x$ changes from one step to the next. Because multiplying repeatedly by the same factor can be abbreviated by a power construct: $e^x\cdot e^x=e^{2x}$ etc. very generally, even if $x$ is a matrix. $\endgroup$ – Roman Jul 12 at 13:12
  • $\begingroup$ This will not work. $\endgroup$ – Muhammad Ali Jul 12 at 13:23
  • 3
    $\begingroup$ Glad it helped, just a heads up: Your question may be put on-hold as it seems to be off-topic, i.e it arises from a simple mistake and is unlikely to help any future visitors. In this case you where missing a function that is easily found in the documentation. Don't be discouraged by that cleaning-up policy. Your future good questions are welcome. Learn about common pitfalls here. And do take the tour! $\endgroup$ – rhermans Jul 12 at 13:41