slcalc     e-mail

ver. 1.1.0 10th August 2003

slcalc is a QT embedded application for the Sharp Zaurus. slcalc is a scientific calculator with user definable constants and functions. 

Constants can be used to store data
   sa1 = 1.63e-7
and be referred as
   7.3*exp(5.2*sa1-0.25)
Also, functions can be defined, for example,
   sinh(x)= (exp(x)-exp(-x))/2
and used as
   ln(2*sinh(1.3)+1)

Version 1.1.0

Date  10th August 2003

License  GPL Freeware

Download  slcalc_1.1.0_arm.ipk (70KB)

Source code  slcalc_1.1.0_arm.tar.gz (40KB)


predefined functions: sin, cos, tan, asin, acos, atan, exp, sqrt, ln, log, abs, int, round
operators from higher to lower priority
    1) (   )
    2) NOT
    3) ^
    4) *   /    %
    5) +   -
    6) <   >   <=   >=
    7) EQ   NE
    8) AND
    9) OR
  10) WHILE IF   THEN   ELSE
  11) =
^: power   EQ: equal   NE: not equal
logical value :  true = 1 false = 0

input no case sensible

You can write down several expressions, and the result is the final evaluated value. This is useful for defining function. An example is shown below

erfc(x)=
(
    t=1/(1+.3275911*abs(x))
    y=exp(-x*x)*t*(.254829592+t*(-.284496736
       +t*(1.421413741+t*(-1.453152027+t*1.061405429))))
    if (x>=0) then y else 2-y
)

As a very special usage, 2*(x=2 y=3 x/y *5-1) becomes 14/3.

Comments can be inserted between { }. For example,

q = 1.60217733E-19 { elementary charge [C] }