freebsd-dev/contrib/bc/tests/dc/scientific.txt
Stefan Eßer 44d4804d19 usr.bin/ghä-bc, contrib/bc: update to version 5.0.0
Merge commit 2f57ecae4b

This is a new major release with a number of changes and extensions:

- Limited the number of temporary numbers and made the space for them
  static so that allocating more space for them cannot fail.
- Allowed integers with non-zero scale to be used with power, places,
  and shift operators.
- Added greatest common divisor and least common multiple to lib2.bc.
- Made bc and dc UTF-8 capable.
- Added the ability for users to have bc and dc quit on SIGINT.
- Added the ability for users to disable prompt and TTY mode by
  environment variables.
- Added the ability for users to redefine keywords.
- Added dc's modular exponentiation and divmod to bc.
- Added the ability to assign strings to variables and array elements
  and pass them to functions in bc.
- Added dc's asciify command and stream printing to bc.
- Added bitwise and, or, xor, left shift, right shift, reverse,
  left rotate, right rotate, and mod functions to lib2.bc.
- Added the functions s2u(x) and s2un(x,n), to lib2.bc.

MFC after:	1 week
2021-08-13 11:28:06 +02:00

56 lines
567 B
Plaintext

0e0pR
0e1pR
0e5pR
0e_2pR
0e_100pR
1e0pR
_1e1pR
1e9pR
_1e21pR
1e_1pR
_1e_2pR
1e_5pR
4.92837e5pR
_3.28971028e20pR
6.2e3pR
_8.289371e2pR
5.9817280937e8pR
_3.28977e_1pR
8.8927891e_20pR
_7.98239e_4pR
4.4892e_4pR
_18937e0pR
198273e10pR
_18927e_4pR
28937e_5pR
_891072e_7pR
.28972e0pR
_.891273e_1pR
.8928397e1pR
_.0002983172e5pR
.00022e3pR
_.00022e4pR
.0000328937e8pR
82938.29873e8.82\
937pRpR
2893e2\
.389pRpR
0o
0pR
1pR
10pR
_289pR
2894pR
_89434pR
894370pR
_1239839pR
28931708pR
_8052098.8029731809pR
.1pR
_.01pR
.001pR
_.00038pR
.0000483pR
_.0002894378190pR
.2893712083pR