File: test.simple

package info (click to toggle)
wcalc 2.3.1-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,444 kB
  • ctags: 926
  • sloc: ansic: 8,993; objc: 1,946; lex: 798; sh: 766; yacc: 623; makefile: 79
file content (46 lines) | stat: -rw-r--r-- 1,219 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
1
a
5.2
m=5.6
f='2m'
f # should return 11.2
P=7
2P # should return 14
04+1 # should return 5
040+1 # should return 33
1,000,000
a+1+1 # should return 1000002
5.6*5.6 # should return 31.36
sin(8) # should return 0.139173
sin 8 # should return 0.139173
6cosh 4 # should return 163.849
1-0.9-0.1 # if precision_guard is on, this should return 0
random
irandom
\convert feet to meters
5
5sin(4) # should return 0.348782
5sin(4!) # should return 2.03368
5sin(4!)-7 # should return -4.96632
5sin(4!)-7*2 # should return -11.9663
5sin(4!)-7*2(4%6) # should return -53.9663
5sin(4!)-7*2(4%6)^2 # should return -221.966
\p0
100! # should be 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000
\p-1
\ints
100! # should be the same as above
\ints
100! # should be abbreviated
1410.06-645.06 # should be 765 if precision_guard is on
1e-9 # should be 1E-9
0.9e-9 # should be 9E-10
50e-9 # check the rounding indicator
-340%-60
360%60
23.05-14.5-8.55 # should be zero if precision_guard is on
23.05 # should be 23.05
a # should be 23.05
a-14.5-8.55 # should be 0, not -1E-09
2^3 # should be 8
2**3 # should be 8, equiv to 2^3