File: tmid.reference

package info (click to toggle)
sollya 8.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,592 kB
  • sloc: ansic: 124,655; yacc: 7,543; lex: 2,440; makefile: 888; cpp: 77
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