Homebrew App Catalog link . Calc12CS

This is a development of Calc12C, and is afinancial/statistical/scientific calculator.

I have decided to make it a different program because of the need to move away from the way that the 12C did some things. This will give those that want to stick with the old format the way of doing that. The 12C used all of the [f] options of the numeric keys to select the number of decimal points. In order to recover all of those to use for other things I have implemented [f][FIX] 0..9 as the decimal point selection.

Algebraic calculator - [f] [ALG]

Reverse Polish calculator - [f] [RPN]

Pre mode.

Pixi mode - top row of keys swaps as in Calc12C by tapping the left or right hand edge of the screen.

Current scientific additions. ( f key prefix )

SCI- Set the display to scientific exponential notation, where the numeric value is adjusted to be less than 10 and exponent adjusted accordingly and the number of decimal places is set to entered digit. [f][SCI] 0..9

ENG- Set the display to engineering exponential notation, where the numeric value is adjusted to be less than 1,000 and exponent adjusted to the required multiple of three and the number of decimal places is set to entered digit. [f][ENG] 0..9

FIX- set number of decimal places to entered digit. [f][FIX] 0..9

10^x- 10 to the power of x.

LOG- Log (base 10) of x.

D/R/G- set the units of angles successively to degrees, radians and grads. DEG/RAD/GRD shown in status line.

SIN, COS ,TAN- trig. functions sine, cosine and tangent

SIN-1, COS-1, TAN-1- inverse trig. functions arcsine, arccosine and arctangent.

PI- returns the constant Pi

->R- convert the vector defined by an angle in the y-register and magnitude in the x-register to the corresponding X and Y coordinates.

->P- convert the X and Y coordinates in the corresponding registers to the corresponding polar coordinates. (angle in the y-register and magnitude in the x-register)

->H.MS- The value in the x-register is interpretted as a number of hours and is converted to hours minutes and seconds, where the whole number is hours, the next 2 digits are minutes, the next 2 digits are seconds and the remaining digits are decimal parts of a second.

->HRS- The value in the x-register is interpretted as H.MMSSsss, where the whole number is hours, next 2 digits minutes, next two digits seconds and the remainder of the digits are decimal parts of a seconds, and the x value is converted to decimal hours.

Note: ->HRS & ->H.MS can obviously be applied to angular degrees. eg Latitude and Longitude.

Vector Additions

The Polar <-> Rectangular coordinates conversions together with the existing Sigma (summation) functions, provide the ability to do vector additions and subtractions. You simply convert your polar vector (angle in y, magnitude in x) into rectangular coordinates [g][->R], and sum those coordinates using the sigma+ function. When you have added all of the vectors RCL 4, RCL 2 to get the sum of the x and y coordinates and use [g][->P] to convert back to polar coordinates. (angle in y, magnitude in x)

Feedback is selectable between 'vibrate' (not on TouchPad), 'click', 'both' and 'none' by a tap on the display area. Icons corresponding to the selection are shown just to the right of the display. Note : Use the haptic feedback option in sconix's Advanced Configuration for System Preferences patch for less lag.

Date Calculations

The following notes are just to highlight the date calculation functions that are available from this calculator because there has been interest expressed in these sort of calculations in other threads on P|C.

[g][D.MY]&[g][M.DY]allow you to change the display format for dates between DD.MMYYYY N and MM.DDYYYY N. (where N is the day number in the week - Monday=1). The appropriate label is displayed in the on-screen status line.

[f][TDY]display todays date.

[g][DATE]- add days to date. Enter a date in the selected format, press [ENTER], enter the number of days to add, {press [CHS] if necessary}, press [g][DATE] and the new date is displayed.

[g][ΔDYS]- calculate the number of days between two dates. Enter a date in the selected format, press [ENTER], enter another date in the selected format, press [g][DYS] and the number of day between the dates is displayed.

What day of the week is a date?Use the [g][Date] function to add 0 days to the date, day of the week is displayed in N of the formated output (see above).

Hardware Keyboard mapping

Numbers, decimal point/comma and arithmetic (+,-,*,/)

Enter/Return or Equal sign = ENTER

C = CLx (Clear x)

H = CHS (change signal)

E = EEX

Modifiers: (F, G, S, R) map to (f, g, STO, RCL) modifiers

Financial: (N, I, P, M, V) map to (n, i, PV, PMT and FV) operations.

Percentage: (#, $, %) map to (T%, delta% and %)

! = power (y**x)

\ = inverse (1/x)

X = swap x with y (x<->y)

D = Rotate down stack (R-down)

W = Add statistical tuple (sigma-plus key)

O = Toogles between decimal point and comma, and also saves memory as a cookie.

Backspace = correct typing

It is in the Homebrew Catalog, but you can download the linked .ipk below

http://dl.dropbox.com/u/11474544/com...0.22.0_all.ipk

version if using Touchpad with webOS 3.0.5

http://dl.dropbox.com/u/11474544/com...0.24.0_all.ipk

Updates

2nd February 2012

* Updated to correct orientation problem with TP version introduced by 3.0.5 - 0.24.0

2nd November 2011

* Updated to correct orientation problem with TP version introduced by 3.0.4 - 0.22.0

* Disabled vibrate for TP to avoid crashes.

21st March 2011

* operates in Exhibition Mode for webOS 2.1 and later.

31st October 2010

* Fixed display of data in EEX operation.

27th September 2010

* SCI & ENG formats added

22nd September 2010

* Feedback selection added

21st September 2010

* Corrected a bug in the Last x processing.