File: tmid.reference

package info (click to toggle)
sollya 6.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 13,376 kB
  • ctags: 5,132
  • sloc: ansic: 120,010; yacc: 8,738; lex: 2,494; makefile: 854; cpp: 76
file content (14 lines) | stat: -rw-r--r-- 442 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mid of 2 is 2
mid of 1 / 3 is 1 / 3
mid of log(-3) is log(-3)
mid of NaN is NaN
mid of [1;2] is 1.5
mid of [infty;infty] is (infty + infty) / 2
mid of [1;infty] is (1 + infty) / 2
mid of [-infty;infty] is (-infty + infty) / 2
mid of [-infty;1] is (-infty + 1) / 2
mid of [-infty;-infty] is (-infty + (-infty)) / 2
The following test produces a typing error
mid of _x_ is error
The following test produces a typing error
mid of Hello is error