Iteration

Issue #867 new
Former user created an issue

Hi, I use SpeedCrunch everyday, but sometimes I must switch to Python or Win calculator just to make a simple loop calculation. Are you planning on adding a simple loop function in the future? For example I want to calculate something simple like 1% increase on each day during 1 month Even using Windows calculator, pressing ENTER will repeat the last calculation for example: 10*1.1, pressing ENTER 30 times I get what I wish for. In SpeedCrunch, pressing ENTER with an empty field does nothing Thanks

Comments (1)

  1. Helder Correia repo owner

    You can press the Arrow Up key to bring the last expression automatically. If you keep reusing the special variable ans, you can easily achieve your goal:

    10
    = 10
    
    ans*1.1
    = 11
    
    ans*1.1
    = 12,1
    
    ans*1.1
    = 13,31
    

    Alternatively, you can use the proper interest formula in one go:

    10*1.1^3
    = 13,31
    
  2. Log in to comment