kcalc suggestions

Eike Krumbacher eike.krumbacher at x-eike.de
Sun Apr 18 11:47:35 CEST 2010


Hi!

(really thank you for reviewing my patches!)

Raphael Kubo da Costa schrieb:
> On Saturday 17 April 2010 11:58:23 Eike Krumbacher wrote:
>> Hi!
>>
>> By selecting the buttons from the menu, one has the ability to calculate
>> the square root of a5-bit number and show the result as some bits, which
>> is strange but at least gives a wrong result.
> Calculating the sqrt of 10000 (16) showed me 100 (4), which is correct, isn't 
> it?

Speaking in mathematical terms, sqrt is defined as a projection from 
positive real numbers to positive real numbers. sqrt(bin(17)) makes no 
sense, as long as we don't have a projection of binaries with respect to 
floating point arithmetic. Implementing this could be an interesting 
challenge.


>> IMHO, kcalc should have exact modes:
>>
>> 1* Easy mode: just the numbers and some basic operations
>> 2* Engineer mode: trigonometric and x^2, sqrt(x) and so on + constants
>> 3* Statistic mode engineer+statistics buttons
>> 4* Logic mode: bit edit, hex, oct, dec and bin selection, but not x! or
>> x*y^z and so on
> Do you mean having these separate, mutually exclusive modes instead of the 
> current non-exclusive "Engineering Buttons", "Logic Buttons" approach?

Yes. In my opinion, this would increase the usability as the user would 
be able to to all the tasks as before without tapping in one 
incompatible function.


> For me, if you come up with patches to do those things that look good and 
> preferrably don't introduce feature regressions, I'll just keep reviewing them 
> and committing (that is, until you get an SVN account and become KCalc's 
> maintainer ;D).

Thank you, I would then try to implement the "Mode"-thing.


Eike



More information about the Kde-utils-devel mailing list