missing buttons: pi, arcsin, arccos, arctan, arsinh,...

Bug #817709 reported by bastik
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gcalctool (Ubuntu)
Confirmed
Wishlist
Unassigned

Bug Description

I think this is more of a feature request, but anyway:

I was unable to convert degrees to radians (with full precision). First I tried to get the value of pi, but couldn't find it in either of the available modes. To work around this, I tried 4*arctan(1), but this didn't work either, because it won't accept the arctan function.

IMHO, pi and arctan are basic features, that many people would expect to find on a pocket calculator.

Thanks for the good work!

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: gcalctool 6.0.1~git20110421-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-11.47-generic 2.6.38.8
Uname: Linux 2.6.38-11-generic i686
Architecture: i386
Date: Thu Jul 28 21:43:53 2011
ExecutablePath: /usr/bin/gcalctool
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gcalctool
UpgradeStatus: No upgrade log present (probably fresh install)
XsessionErrors: (process:9368): Gtk-WARNING **: Locale not supported by C library.

Revision history for this message
bastik (bstk) wrote :
Revision history for this message
Marcel Stimberg (marcelstimberg) wrote :

Thank you for your bug report and taking the time to make Ubuntu better.

I do actually think everything you need is already there: For converting degrees to radians you can use the general conversion mechanism present in the "advanced" mode -- In the box in the type left chose "Angles" -> "degrees" and in the one on the right chose "radians".
Pi is also there, try the "π" button (also in "advanced" mode, above "=") or use Ctrl+P
For arctan: The documentation says you can use "atan" but that apparently does not work. What does work however is using tan-¹ by typing "tan" and then pressing Ctrl+I for inversion.

I've mark the bug as invalid, please feel free to reopen it if you still think it should be filed as a bug.

Changed in gcalctool (Ubuntu):
status: New → Invalid
Revision history for this message
bastik (bstk) wrote :

Thanks for your answer.

You are right, the π is there. I think I couldn't find it because in the default font, it looks like a box with the bottom part removed. Usually, it is typeset more curvy.

Thanks for the hint with Ctrl+I, it works well. However, it is a hidden feature and I think it is not accessible enough. There should be a non-shortcut way to activate this function. Either a menu item or a button "^-1". The easiest solution would be to add arcsin, ... to the list of extra functions under the "f(x)" button in advanced mode (possibly in a submenu "trigonometry").

This is the default calculator in Ubuntu, so on a fresh system, I would like it to "just work", i. e. it should be intuitive and there should be no need to read the documentation first. (Although this is never a bad idea.)

Allowing arcsin to be entered manually would be nice as well. Personally I prefer plain text input over some advanced formatting and UTF-8 characters like √ and ×. (But it seems to be done well, I can copy & past without problems.)

Changed in gcalctool (Ubuntu):
status: Invalid → New
Revision history for this message
bastik (bstk) wrote :

I'd like to add, that sin⁻¹(x) is not a very nice notation because it conflicts with sin²(x) witch, I think, is much more common.

Revision history for this message
Marcel Stimberg (marcelstimberg) wrote : Re: [Bug 817709] Re: missing buttons: pi, arcsin, arccos, arctan, arsinh, ...

> Thanks for the hint with Ctrl+I, it works well. However, it is a hidden
> feature and I think it is not accessible enough. There should be a non-
> shortcut way to activate this function. Either a menu item or a button
> "^-1".
Well, there is a "x-¹" button which does the same as Ctrl+I…

> Allowing arcsin to be entered manually would be nice as well.
Yes, I agree. As I said before, the documentation says that it is
possible to enter "asin" which does however not work. So what about
making the report specifically about this issue (and suggest arcsin
instead of/in addition to "asin" which is more a programming language
name)?

> I'd like to add, that sin⁻¹(x) is not a very nice notation because it
> conflicts with sin²(x) witch, I think, is much more common.
Actually I do think it is ok as it is, IMO most people will read
sin⁻¹(x) as arcsin and sin²(x) as the square of the function value --
to me the latter always felt "more wrong" (why not just write sin(x)²
?).

Revision history for this message
bastik (bstk) wrote :

> Well, there is a "x-¹" button which does the same as Ctrl+I…

See, this button is very misleading. I never thought, that "x" could also stand for a function and not only for a number. You have one button that does completely different things.

2⁻¹ => 0.5
sin⁻¹0.5 => 30
sin²30 => 0.25
and:
sin⁻²0.5 => 900

The last one is very questionable, there are only 2 possible interpretations for sin⁻²0.5: Either 1/(sin²0.5) or arcsin(arcsin(0.5)), but not a mixture of both concepts (multiplicative inverse and compositional inverse).

>> Allowing arcsin to be entered manually would be nice as well.
> Yes, I agree. As I said before, the documentation says that it is
> possible to enter "asin" which does however not work. So what about
> making the report specifically about this issue (and suggest arcsin
> instead of/in addition to "asin" which is more a programming language
> name)?

Ok, sounds good.

>> I'd like to add, that sin⁻¹(x) is not a very nice notation because it
>> conflicts with sin²(x) witch, I think, is much more common.
> Actually I do think it is ok as it is, IMO most people will read
> sin⁻¹(x) as arcsin and sin²(x) as the square of the function value --

I agree, that most people would recognize it correctly. It's just strange to use both conflicting styles at the same time.

> to me the latter always felt "more wrong" (why not just write sin(x)²
> ?).

If you write sin λ without the parentheses, sin λ² would too much look like sin(λ²).

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. The issue is an upstream one and it would be nice if somebody having it could send the bug the to the people writting the software (https://wiki.ubuntu.com/Bugs/Upstream/GNOME)

Changed in gcalctool (Ubuntu):
importance: Undecided → Wishlist
Robert Roth (evfool)
Changed in gcalctool (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.