File: test.simple

package info (click to toggle)
wcalc 2.2.2-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,228 kB
  • ctags: 698
  • sloc: ansic: 6,918; objc: 1,835; sh: 766; yacc: 644; lex: 573; makefile: 78
file content (40 lines) | stat: -rw-r--r-- 857 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
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!
\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