Bug 35900 - KCalc needs more functions & constants
Summary: KCalc needs more functions & constants
Status: RESOLVED FIXED
Alias: None
Product: kcalc
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR wishlist
Target Milestone: ---
Assignee: Evan Teran
URL:
Keywords:
: 75571 78052 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-12-08 04:03 UTC by Aaron Williams
Modified: 2013-07-03 12:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Williams 2001-12-08 03:57:46 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kcalc
Version:           KDE 2.2.2 
Severity:          wishlist
Installed from:    Compiled From Sources
Compiler:          gcc 2.95.3 for Sparc
OS:                Solaris
OS/Compiler notes: Solaris 2.7 Sun Ultrasparc

I have found that for engineering purposes KCalc is missing some functions that would be very useful.

In hex binary and octal modes the Xor Not Rsh and ARsh functions would be very useful.

In decimal mode for scientific computing the sqrt function is needed.  In addition some common constants would be very useful.  The following constants should be present:

Pi
e
c (speed of light)

as well as some other constants used in areas like chemistry (Avagrado's number).

Conversions would also be useful.  For us stuck in the backwards USA conversion between English and Metric would be useful.

I also think fraction support would be cool.



(Submitted via bugs.kde.org)
Comment 1 Sander Devrieze 2003-09-07 00:50:46 UTC
Pi is in KDE CVS I see.
Comment 2 Claes 2004-01-01 18:29:09 UTC
I don't think c should be present - it is not a mathematical constant.
Comment 3 Sander Devrieze 2004-02-07 23:10:21 UTC
Maybe in an "others" group?
Comment 4 Olivier Wehner 2004-02-15 20:25:37 UTC
SQRT please. x^0.5 is not realy sexy - and not realy a common thing to know for the ordinary frogs.
Comment 5 Dominique Devriese 2004-03-19 16:15:19 UTC
*** Bug 75571 has been marked as a duplicate of this bug. ***
Comment 6 Aaron Williams 2004-03-19 22:18:04 UTC
It would also be really cool if a user could add their own constants.  For example, for some of the networking stuff I do I'm frequently using numbers like 2488320000 (OC-48 bit rate).
Comment 7 Tommi Tervo 2004-03-20 08:36:35 UTC
*** Bug 78052 has been marked as a duplicate of this bug. ***
Comment 8 Klaus Niederkrüger 2005-01-05 17:28:33 UTC
I have added some physical constants in the CVS-tree for the KDE-3.4 version. Maybe more constants would be better, but the infrastructure is there, so if anyone would like to add more, just tell me (or add them yourself).

The problem with sqrt has been fixed a long time ago, and the required HEX-mode functions are also there.

Klaus
Comment 9 cyclotron 2013-07-03 00:04:04 UTC
Guys still no sqrt button? At least I learnt that  x^0.5 works but this one is really needed!
Comment 10 Evan Teran 2013-07-03 12:25:03 UTC
cyclotron@freestateprojects.org, there *is* a square root button, it's been there for quite some time.

In either Science or Statistic mode, click on "Shift" and the "x²" button will turn into "√x". As with other calculators, the "Shift" function will present inverted operations for many of the buttons.

Also, please don't post the same comment on multiple bugs.