9972b1376c
These implementations of the bc and dc programs offer a number of advantages compared to the current implementations in the FreeBSD base system: - They do not depend on external large number functions (i.e. no dependency on OpenSSL or any other large number library) - They implements all features found in GNU bc/dc (with the exception of the forking of sub-processes, which the author of this version considers as a security issue). - They are significantly faster than the current code in base (more than 2 orders of magnitude in some of my tests, e.g. for 12345^100000). - They should be fully compatible with all features and the behavior of the current implementations in FreeBSD (not formally verified). - They support POSIX message catalogs and come with localized messages in Chinese, Dutch, English, French, German, Japanese, Polish, Portugueze, and Russian. - They offer very detailed man-pages that provide far more information than the current ones. Approved by: imp Obtained from: https://git.yzena.com/gavin/bc Differential Revision: https://reviews.freebsd.org/D19982
44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
0k
|
|
0 0*pR
|
|
0.000 0*pR
|
|
1 0*pR
|
|
0 1*pR
|
|
0 2498752389672835476*pR
|
|
873246913745129084576134 0*pR
|
|
1 472638590273489273456*pR
|
|
12374861230476103672835496 1*pR
|
|
1 1*pR
|
|
2 1*pR
|
|
1 2*pR
|
|
2 2*pR
|
|
3 14*pR
|
|
17 8*pR
|
|
1892467513846753 1872439821374591038746*pR
|
|
328962735862.2973546835638947635 1728465791348762356*pR
|
|
38745962374538.387427384672934867234 0.1932476528394672837568923754*pR
|
|
9878894576289457634856.2738627161689017387608947567654 37842939768237596237854203.29874372139852739126739621793162*pR
|
|
_1 1*pR
|
|
_1 2*pR
|
|
78893457 _34876238956*pR
|
|
235678324957634 _0.2349578349672389576*pR
|
|
_12849567821934 12738462937681*pR
|
|
1274861293467.927843682937462 _28935678239*pR
|
|
2936077239872.12937462836 _0.012842357682435762*pR
|
|
2387692387566.2378569237546 _272189345628.123875629835876*pR
|
|
0.012348629356782835962 _23487692356*pR
|
|
0.4768349567348675934 _0.23756834576934857638495*pR
|
|
0.98748395367485962735486 _4675839462354867.376834956738456*pR
|
|
_321784627934586 _235762378596*pR
|
|
_32578623567892356 _0.32567384579638456*pR
|
|
_35768232346876 _2348672935602387620.28375682349576237856*pR
|
|
_0.2356728394765234 _238759624356978*pR
|
|
_0.2345768212346780 _0.235768124697074385948943532045*pR
|
|
_0.370873860736785306278630 _7835678398607.7086378076867096270*pR
|
|
_78365713707.7089637863786730 _738580798679306780*pR
|
|
_73867038956790490258249 _0.7379862716391723672803679*pR
|
|
_378621971598721837710387 _98465373878350798.09743896037963078560*pR
|
|
37164201 2931559660*pR
|
|
679468076118972457796560530571.46287161642138401685 93762.2836*pR
|
|
.000000000000000000000000001 .0000000000000000000000001*pR
|
|
239 289 _98 .8937 _.1893 28937*****pR
|