ghostwheel
6th April 2008, 06:39 PM
If I'm already releasing alpha software, why not this one, too...
SEE BUG REPORT AT END.
Here is a calculator for the dash. The idea is similar to Lygea 123 and 1-calc for the s620, in that it displays a replacement keyboard on the screen. This way one can use our dash almost like any other scientific calculator. Why did I make this one when the other two already exist?
Lygea 123 is not a scientific calculator, but instead just a financial/business calculator, so it didn't have the features I wanted. And I didn't like the interface of 1-calc....
It is very rough, and I'm sure has some bugs. But it is quite usable - it is the calculator that I use. The problem is that I don't have time to work on it now, but I think people might already enjoy it!
It might be a bit strange to use - it is a mixture of infix and prefix. You can use it as a regular calculator if you like, and everything should work as expected.
Here is an example of how it can be used:
say you want to calculate
2*sin(40+35)
you enter: 2 * sin ( 40 + 35 ) =
you can also enter: 2 * ( 40 + 35 ) sin =
(which would be like a regular calculator - infix)
to calculate sin(60) you can enter
60 sin =
or
sin 60 =
to calculate 1/4 +3 you can type
[1/x] 4 + 3 =
or
4 [1/x] + 3 =
Notice that because of this strange way to calculate things, the result of 4 [1/x] is only displayed when you type '+'. (maybe a later version will not have this 'problem')
the button 'ANS' recalls the last answer (the result of the last time '=' was pressed)
There is now prelimnary unit conversion. It isn't really optimal. What I'd really like is to be able to do
1 [m] + 3 [feet] =
Currently, it just switches the current number displayed. So to convert m to inches, do this:
2.5 [m] [inch]
To switch to unit conversion mode, press right. To switch back, press left.
To store in a memory location, hit STO, and then write the location. Valid locations are 0..99
memory locations 0..9 are displayed under the respective key.
STO+ STO- STO* STO/ do operations on those locations.
example:
1+4 = [STO] 9 =
memory location 9 now contains 5.
You can also do operations while doing calculations.
34 + 60 [STO] 3 =
displays 94, and 60 is stored in memory location 3.
To recall simply hit recall, and the location
34 [STO] 3 =
5 + [RCL] 3 * 9 + [RCL] 3 =
should give
5 + 34 * 9 + 34, i.e. 345.
The calculator still does not remember things across separate invocations.....
################################################
BUG:
There currently is a problem with using the calculator postfix.
So you can calculate
sin(60) by typing
60 sin =
or
sin 60 =
But there are problems with using two operations postfix.
sin(60^2) will give the wrong result if done like this:
60 [x^2] sin
but the right result if done like this:
sin [x^2] 60
So for now, if you envoke multiple functions in a row, use prefix - type the function before the operand.
This is especially annoying for RC, for doing calculations on stored values.
You have to type
sin RCL 2
and not
RCL 2 sin
------------------
update: now a cab file is available! And, new version will run only one instance at time.
------------------
update: keys have the letters on them now. Also moved keys a bit. Now / and * are in the right place.
------------------
update:
1. added a few functions (factorial, n choose k)
2. added deg-rad-grad for trigonometric functions. Switch between them with up-down
3. added preliminary unit conversion. Celsius<->Fahrenheit.
4. added preliminary unit conversion for lengths and weights. Switch between modes using left-right.
------------------
update: v2.01
The two current ugliest bugs fixed:
keys don't wander down any more on a long press (I kinda liked it...)
Pressing * twice doesn't crash any more.
In addition, a small change: You can leave the shift (yellow key) pressed when pressing another key. In this case the alternate
function is used, but the keys do not remained shifted. Pressing only shift leaves it locked.
------------------
update: v2.02
made a bit more stable. Can now calculate up to 170 factorial. Log window scrolls.
------------------
update: v2.03
Added memory functions.
To store in a memory location, hit STO, and then write the location. Valid locations are 0..99
memory locations 0..9 are displayed under the respective key.
STO+ STO- STO* STO/ do operations on those locations.
To recall, hit RCL, and then location.
------------------
update: v2.031: small cosmetic change.
SEE BUG REPORT AT END.
Here is a calculator for the dash. The idea is similar to Lygea 123 and 1-calc for the s620, in that it displays a replacement keyboard on the screen. This way one can use our dash almost like any other scientific calculator. Why did I make this one when the other two already exist?
Lygea 123 is not a scientific calculator, but instead just a financial/business calculator, so it didn't have the features I wanted. And I didn't like the interface of 1-calc....
It is very rough, and I'm sure has some bugs. But it is quite usable - it is the calculator that I use. The problem is that I don't have time to work on it now, but I think people might already enjoy it!
It might be a bit strange to use - it is a mixture of infix and prefix. You can use it as a regular calculator if you like, and everything should work as expected.
Here is an example of how it can be used:
say you want to calculate
2*sin(40+35)
you enter: 2 * sin ( 40 + 35 ) =
you can also enter: 2 * ( 40 + 35 ) sin =
(which would be like a regular calculator - infix)
to calculate sin(60) you can enter
60 sin =
or
sin 60 =
to calculate 1/4 +3 you can type
[1/x] 4 + 3 =
or
4 [1/x] + 3 =
Notice that because of this strange way to calculate things, the result of 4 [1/x] is only displayed when you type '+'. (maybe a later version will not have this 'problem')
the button 'ANS' recalls the last answer (the result of the last time '=' was pressed)
There is now prelimnary unit conversion. It isn't really optimal. What I'd really like is to be able to do
1 [m] + 3 [feet] =
Currently, it just switches the current number displayed. So to convert m to inches, do this:
2.5 [m] [inch]
To switch to unit conversion mode, press right. To switch back, press left.
To store in a memory location, hit STO, and then write the location. Valid locations are 0..99
memory locations 0..9 are displayed under the respective key.
STO+ STO- STO* STO/ do operations on those locations.
example:
1+4 = [STO] 9 =
memory location 9 now contains 5.
You can also do operations while doing calculations.
34 + 60 [STO] 3 =
displays 94, and 60 is stored in memory location 3.
To recall simply hit recall, and the location
34 [STO] 3 =
5 + [RCL] 3 * 9 + [RCL] 3 =
should give
5 + 34 * 9 + 34, i.e. 345.
The calculator still does not remember things across separate invocations.....
################################################
BUG:
There currently is a problem with using the calculator postfix.
So you can calculate
sin(60) by typing
60 sin =
or
sin 60 =
But there are problems with using two operations postfix.
sin(60^2) will give the wrong result if done like this:
60 [x^2] sin
but the right result if done like this:
sin [x^2] 60
So for now, if you envoke multiple functions in a row, use prefix - type the function before the operand.
This is especially annoying for RC, for doing calculations on stored values.
You have to type
sin RCL 2
and not
RCL 2 sin
------------------
update: now a cab file is available! And, new version will run only one instance at time.
------------------
update: keys have the letters on them now. Also moved keys a bit. Now / and * are in the right place.
------------------
update:
1. added a few functions (factorial, n choose k)
2. added deg-rad-grad for trigonometric functions. Switch between them with up-down
3. added preliminary unit conversion. Celsius<->Fahrenheit.
4. added preliminary unit conversion for lengths and weights. Switch between modes using left-right.
------------------
update: v2.01
The two current ugliest bugs fixed:
keys don't wander down any more on a long press (I kinda liked it...)
Pressing * twice doesn't crash any more.
In addition, a small change: You can leave the shift (yellow key) pressed when pressing another key. In this case the alternate
function is used, but the keys do not remained shifted. Pressing only shift leaves it locked.
------------------
update: v2.02
made a bit more stable. Can now calculate up to 170 factorial. Log window scrolls.
------------------
update: v2.03
Added memory functions.
To store in a memory location, hit STO, and then write the location. Valid locations are 0..99
memory locations 0..9 are displayed under the respective key.
STO+ STO- STO* STO/ do operations on those locations.
To recall, hit RCL, and then location.
------------------
update: v2.031: small cosmetic change.