Bug 448 - Geometric Sequence will not work as expected
Summary: Geometric Sequence will not work as expected
Status: RESOLVED FIXED
Alias: None
Product: Group37
Classification: Unclassified
Component: Formula operation (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- major
Assignee: feiwu25-c
URL:
Depends on:
Blocks:
 
Reported: 2020-11-24 13:36 HKT by Han Yau Ming Tommy
Modified: 2020-11-25 21:38 HKT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Han Yau Ming Tommy 2020-11-24 13:36:56 HKT
Overview:
The function will present 0 after the 1st term of the G.S.

Step to Reproduce:
1) Start the calculator
2) Enter 3 to enter Formula Mode
3) Enter 4 to input the GS
4) Enter 2 3 5 for 1st term, common ratio and number of terms
5) Press enter to continue

Expected Result:
2 6 18 54 162

Actual Result:
2 0 0 0 0 

Build Date & Hardware:
24-11-2020 on Windows 10.0.18363
Comment 1 Han Yau Ming Tommy 2020-11-25 21:38:09 HKT
The Geo.java has calculated the sequence in the wrong way, which causes a wrong sequence to be displayed on the cli.
By adding a new variable to handle the inputs, it solves the problem.