Ticket #1937 (closed defect: notabug)

Opened 3 years ago

Last modified 3 years ago

OLPC-Calculate Activity – Unwanted star sign (multiplication sign) is appearing when clicks on Inverse option.

Reported by: Niranjala80 Owned by: rwh
Priority: Normal Milestone: Unspecified by Release Team
Component: Calculate Version: Unspecified
Severity: Trivial Keywords: OS13
Cc: Distribution/OS: Other (name your distribution in the description)
Bug Status: New

Description

Description:
Enter value. For instance, 2
Click on inverse option.
It displays like 2**-1
Here double star (multiplication sign) is unnecessary.

It should be like, 2*-1. I.e. only one star sign (multiplication sign) should appear.

Steps to recreate the defect:

1. Power on OLPC
2. Click on the calculate icon on home page.
3. Click on Algebra tab.
4. Place the cursor on entry box.
5. Enter valid value.
6. Click on Inverse option.
7. Verify the result displayed on the entry box.

Actual Result:

It displays double stars (multiplication sign) on entry box, when click on Inverse option.

Expected Result:

It should display only one star (multiplication sign) on entry box, when click on Inverse option.

Tested Environment:

OS build: 802b5
Machine type: XO1
Firmware: Q2E41
Security disable: Yes
Sugar version: 0.82.1
Activity Version: 30

OS build: OS13
Machine type: XO1
Firmware: Q2E42
Security disable: Yes
Sugar version: 0.84.14
Activity Version: 30

OS build: OS116
Machine type: XO1.5
Firmware: Q3A35
Security disable: Yes
Sugar version: 0.84.14
Activity Version: 30

Change History

Changed 3 years ago by quozl

  • status changed from new to closed
  • resolution set to notabug

I disagree with the expected result. Inverse function is mathematical inversion, not sign reversal, but "one divided by x", expressed also as "x raised to the power minus one". The "**" operator is Python "raise to the power of" notation. While the Python notation might not be the best to use in an educational environment, the action of the inverse button is correct.

References:

 http://en.wikipedia.org/wiki/Inverse_proportion#Inverse_proportionality

Note: See TracTickets for help on using tickets.