MathGroup Archive 1995

[Date Index] [Thread Index] [Author Index]

Search the Archive

How to write a loop

  • Subject: [mg2538] How to write a loop
  • From: ewalke1 at gl.umbc.edu ("Enrico C. Walker")
  • Date: Fri, 17 Nov 1995 05:19:50 GMT
  • Approved: usenet@wri.com
  • Distribution: local
  • Newsgroups: wri.mathgroup
  • Organization: University of Maryland, Baltimore County
  • Sender: daemon at wri.com ( )

 I need to raise a number to some large exponent - i.e. 245 ^ 500.
I know that I may run into a problem by plugging it directly. so I'd like to find the result 
by using some sort of programming loop such.
 
     DO 250 times
         begin

              x = x * 245 ^ 2

         end
     PRINT X

Can I do such programming in MATHEMATICA? Please advise.

-RICO-



  • Prev by Date: Re: help
  • Next by Date: Re: (fix) bizarre mathematica replacement rule error
  • Previous by thread: Re: Why no simplification ?
  • Next by thread: How to write a loop