242 Commits
Author SHA1 Message Date
rainlance d4ad72d17f Fix wrong year 2018-08-07 20:32:26 +02:00
rainlance 8632644b9d Update to version 1.8.5 2018-08-07 19:54:19 +02:00
rainlance 9c70be649b Fix build on compilers with broken endian detection 2018-08-07 19:51:28 +02:00
rainlance fb19bb560d Fix GCC 7 warnings 2018-08-07 19:46:15 +02:00
rainlance 527376a92a Merge branch 'master' of https://gitlab.com/rnger/amath 2018-08-05 22:42:43 +02:00
rainlance 3ab6729951 Update version and help text 2018-08-05 22:38:42 +02:00
rainlance 9153e78be8 Ignore zip files 2018-08-05 22:33:07 +02:00
rainlance 434d4a72e2 Fix typecast warning 2018-08-05 22:30:44 +02:00
rainlance be4b1e7fd6 Update test target 2018-08-05 21:49:00 +02:00
rainlance 7a3cb4a2a1 Update to version 1.8.4 2018-08-05 21:46:30 +02:00
rainlance b3d4d61e9d Support Visual Studio Code 2018-08-05 21:45:38 +02:00
rainlance 4c6ae02156 Ignore casing in hexadecimal numbers 2018-08-05 21:44:15 +02:00
rainlance 2a7b341c71 Support GCC 7 & C++11 2018-08-05 21:41:11 +02:00
rainlance 1f5cbf5176 Ignore flexcat 2018-08-04 20:45:33 +02:00
rainlance 8503f61eea Updated Copyright headers 2018-08-04 20:44:35 +02:00
rainlance 970ae6456f Merge branch 'master' of https://gitlab.com/rnger/amath 2017-10-14 09:24:55 +02:00
rainlance 56d9566000 rebase and change commit email to cs@innolan.net 2017-10-14 09:21:56 +02:00
rainlance 16530a94d1 Merge branch 'master' of https://gitlab.com/rnger/amath 2017-10-14 08:56:34 +02:00
rainlance 2e54fed094 Update headers 2017-08-03 22:03:35 +02:00
rainlance 882eb43a4f Update headers 2017-08-03 22:03:35 +02:00
rainlance f7881bb3c9 Update script 2017-08-03 22:03:20 +02:00
rainlance 7114efc1cc Update script 2017-08-03 22:03:20 +02:00
rainlance 350a8d82b9 Add debian build script 2017-08-03 21:25:17 +02:00
rainlance e64c56123d Add debian build script 2017-08-03 21:25:17 +02:00
rainlance 208a87640d Release 1.8.3 2017-07-21 22:41:58 +02:00
rainlance 2cdc5b8aae Release 1.8.3 2017-07-21 22:41:58 +02:00
rainlance 73d97e3229 Add more CC BY-SA texts 2017-07-21 22:38:58 +02:00
rainlance b76a2dccc5 Add more CC BY-SA texts 2017-07-21 22:38:58 +02:00
rainlance 08f5d5d870 Cleanup man page 2017-07-21 22:36:04 +02:00
rainlance 656038d482 Cleanup man page 2017-07-21 22:36:04 +02:00
Carsten Larsen 8bf9f941ed Cleanup help texts 2017-07-21 01:25:08 +02:00
Carsten Larsen c625ec29f7 Cleanup help texts 2017-07-21 01:25:08 +02:00
Carsten Larsen e5e70b5247 Include less common abbreviations 2017-07-17 00:29:31 +02:00
Carsten Larsen 4aae661801 Include less common abbreviations 2017-07-17 00:29:31 +02:00
Carsten Larsen a6d28448f6 Add known bugs 2017-07-16 23:07:14 +02:00
Carsten Larsen 3f75c41166 Add known bugs 2017-07-16 23:07:14 +02:00
Carsten Larsen 60df83a113 ANSI mode is alway changeable as default 2017-07-16 22:52:52 +02:00
Carsten Larsen 51e6ece52d ANSI mode is alway changeable as default 2017-07-16 22:52:52 +02:00
Carsten Larsen b4f29dc2de Stress with explicit in clang option 2017-07-16 22:49:27 +02:00
Carsten Larsen 1a2ef9b018 Stress with explicit in clang option 2017-07-16 22:49:27 +02:00
Carsten Larsen 1eaf09fa56 Cleanup history 2017-07-14 13:57:32 +02:00
Carsten Larsen 012c0ee1a6 Cleanup history 2017-07-14 13:57:32 +02:00
Carsten Larsen 59d69ac760 Fix build error in shared clib 2017-07-14 13:54:39 +02:00
Carsten Larsen f78304c8e1 Fix build error in shared clib 2017-07-14 13:54:39 +02:00
Carsten Larsen 5b6b5cc745 Allow man-dir and doc-dir while configuring 2017-07-14 13:54:07 +02:00
Carsten Larsen 9e2d708eb7 Allow man-dir and doc-dir while configuring 2017-07-14 13:54:07 +02:00
Carsten Larsen d34de7e7b5 Release 1.8.2 2017-07-14 12:10:13 +02:00
Carsten Larsen 36fd6e090d Release 1.8.2 2017-07-14 12:10:13 +02:00
Carsten Larsen f06a9a3421 Update project homepage 2017-07-14 11:30:24 +02:00
Carsten Larsen 49b6ecd09d Update project homepage 2017-07-14 11:30:24 +02:00
Carsten Larsen 140e74f3ce Improve endianness detection 2017-07-14 10:53:37 +02:00
Carsten Larsen 4b44d05953 Improve endianness detection 2017-07-14 10:53:37 +02:00
Carsten Larsen 263636bb04 Update release date 2017-04-22 00:56:52 +02:00
Carsten Larsen 70c6ae9579 Hint GCC6 2017-04-22 00:55:06 +02:00
Carsten Larsen 4085981ca7 Update changelog 2017-04-22 00:54:47 +02:00
Carsten Larsen 69377b26ed Update release date 2017-04-22 00:54:26 +02:00
Carsten Larsen 7431e61c3c Improved configuration 2017-04-22 00:53:41 +02:00
Carsten Larsen e73cce1894 Fix haiku bug 2017-04-22 00:52:57 +02:00
Carsten Larsen 2a00f9556d Fix clear statement 2017-04-15 22:33:46 +02:00
Carsten Larsen a1b521840a Option for Position Independent Code 2017-04-15 22:32:42 +02:00
Carsten Larsen 30a23a4e0f Bumped version 2017-04-15 20:43:33 +02:00
Carsten Larsen 258188d994 Cleanup defines 2017-04-15 20:36:40 +02:00
Carsten Larsen bf39a0c868 Release 1.8.0 2017-04-13 00:50:51 +02:00
Carsten Larsen 0118d94326 Fix wrong version number 2017-03-24 20:23:58 +01:00
Carsten Larsen f3dd6d8baa Release 1.7.1 2017-03-24 20:09:05 +01:00
Carsten Larsen a301c85e15 Release 1.7.0 2017-03-11 23:37:45 +01:00
Carsten Larsen 87f0d88b26 Fix Makefiles 2017-02-27 23:33:54 +01:00
Carsten Larsen dd6e11cdb4 Prerelease 1.7.0 2017-02-27 23:31:21 +01:00
Carsten Larsen 9144b77c70 Prerelease 1.7.0 2017-02-27 23:23:06 +01:00
Carsten Larsen e7b46a06be Improved tests 2017-02-13 21:07:06 +01:00
Carsten Larsen 8c1a88ebe7 Cleanup debug code 2017-02-13 21:02:55 +01:00
Carsten Larsen 217d70e23a Fix file permissions 2017-02-11 12:00:51 +01:00
Carsten Larsen 28c1559ed0 Fix typo 2017-02-10 23:09:43 +01:00
Carsten Larsen dc26550dd5 Remove old build defs 2017-02-10 23:00:01 +01:00
Carsten Larsen 397c6c37c9 Include test and install target 2017-02-10 22:49:49 +01:00
Carsten Larsen dadd23aea8 Take advantage of exec 2017-02-10 22:29:49 +01:00
Carsten Larsen 34c843f2b5 Fix build definitions 2017-02-10 22:29:19 +01:00
Carsten Larsen 3483dd5283 Correct Debian version 2017-02-04 19:39:00 +01:00
Carsten Larsen 667fe2baeb Release 1.6.4 2017-02-04 15:58:49 +01:00
Carsten Larsen 88301bafc5 Fix MSVC++ memory allocation 2017-02-04 15:35:32 +01:00
Carsten Larsen b896dab8a8 Update Makefile 2017-02-04 14:41:54 +01:00
Carsten Larsen 818df0fc87 Fix 64 bit warnings 2017-02-04 14:41:34 +01:00
Carsten Larsen d148be57b3 Remove old binaries 2017-02-04 14:40:54 +01:00
Carsten Larsen e988bbbd9f Fix 64 bit alignment errors 2017-02-04 12:55:27 +01:00
Carsten Larsen af7bf8a97a Fixed truncation bug 2017-02-04 12:52:26 +01:00
Carsten Larsen a56173487f Release 1.6.3 2017-02-03 19:31:26 +01:00
Carsten Larsen 62f29f1e0e Update change list 2017-02-02 23:04:18 +01:00
Carsten Larsen aec499543d Fix Debian version number 2017-02-02 22:59:35 +01:00
Carsten Larsen e10734c005 Haiku support 2017-02-02 22:58:07 +01:00
Carsten Larsen abd4bb8929 Cleanup tests 2017-02-02 22:57:26 +01:00
Carsten Larsen eb1d7f74e4 Add NetBSD link 2017-02-02 22:56:51 +01:00
Carsten Larsen bd4baa277f Cleanup headers 2017-02-02 22:56:33 +01:00
Carsten Larsen 3f94ebc6b0 Fix Debian build 2017-02-02 22:53:00 +01:00
Carsten Larsen 11b4bdc70d Detect endianness for more CPUs 2017-02-02 22:52:10 +01:00
Carsten Larsen 83760eb15a Test fraction point character 2017-01-29 14:53:14 +01:00
Carsten Larsen 57e74e12b0 Debian multiarch support 2017-01-29 14:09:58 +01:00
Carsten Larsen 1551700ec1 Debian build script 2017-01-29 13:42:31 +01:00
Carsten Larsen 81ba8a83e2 Extend tests 2017-01-29 01:00:29 +01:00
Carsten Larsen 5c041e7762 Update documentation 2017-01-29 00:59:55 +01:00
Carsten Larsen dc5d092c4e Move documentation to own repository 2017-01-28 22:36:21 +01:00
Carsten Larsen 7a63687d4b Prepare release 1.6.3 2017-01-28 22:30:57 +01:00
Carsten Larsen 86d5a56fa7 Update scan-build report 2017-01-28 22:14:35 +01:00
Carsten Larsen 848b9f1987 Improve error handling 2017-01-28 22:04:35 +01:00
Carsten Larsen 8b81543eed Optimize for 64 bit PowerPC 2017-01-28 22:03:36 +01:00
Carsten Larsen 2bbebe575f Fix typo 2017-01-28 22:02:52 +01:00
Carsten Larsen 7d48450bbf Fix error in fraction point parsing 2017-01-28 22:02:01 +01:00
Carsten Larsen b173f42b65 64 bit PowerPC detection 2017-01-28 19:08:44 +01:00
Carsten Larsen 637b9396d9 Fix AROS build errors 2017-01-28 19:06:45 +01:00
Carsten Larsen 3776c6e02e Update documentation 2017-01-25 21:01:17 +01:00
Carsten Larsen c53ef12905 Add Icaros Desktop top distributions 2017-01-25 20:36:34 +01:00
Carsten Larsen b3ac61bae3 Documentation cleanup 2017-01-25 20:35:25 +01:00
Carsten Larsen d134ad9765 Documentation cleanup 2017-01-25 20:34:54 +01:00
Carsten Larsen 9e2c66af53 Update documentation 2017-01-24 22:03:15 +01:00
Carsten Larsen 1392de9ad7 Windows 1.6.2 binaries 2017-01-24 22:00:11 +01:00
Carsten Larsen 7e218a1b70 Update to version 1.6.2 2017-01-24 20:55:35 +01:00
Carsten Larsen 4c25f8d2fb Native character input 2017-01-24 20:48:02 +01:00
Carsten Larsen 543f813251 Update build definitions 2017-01-24 20:46:46 +01:00
Carsten Larsen bdae119905 Update version texts 2017-01-24 20:40:35 +01:00
Carsten Larsen a16a3b7419 Simplify memory allocation 2017-01-24 20:39:55 +01:00
Carsten Larsen 9ebb77637f Update documentation 2017-01-22 18:21:56 +01:00
Carsten Larsen 95057d82db Fix newline in Windows test 2017-01-22 01:18:14 +01:00
Carsten Larsen 75c588f51b 64 bit Windows support 2017-01-22 01:14:01 +01:00
Carsten Larsen 462ea4ceba 64 bit support on Windows 2017-01-22 00:51:35 +01:00
Carsten Larsen 672712ab49 Cleanup Visual Studio structure 2017-01-22 00:51:01 +01:00
Carsten Larsen ab0c5db51d Cleanup Visual Studio structure 2017-01-22 00:50:47 +01:00
Carsten Larsen b85a008fb2 Updated broken links 2017-01-21 21:21:00 +01:00
Carsten Larsen 40cc850093 64 bit optimizations 2017-01-21 20:51:25 +01:00
Carsten Larsen afbfd236a4 Clarify source origin 2017-01-21 20:50:01 +01:00
Carsten Larsen 25c618d57f arm 64 bit support 2017-01-21 20:26:14 +01:00
Carsten Larsen 4aefa785ad ARM support 2017-01-21 20:21:18 +01:00
Carsten Larsen 957355545e Fixed broken link 2017-01-21 14:06:41 +01:00
Carsten Larsen 927fc656dd Release 1.6.1 2017-01-21 13:53:51 +01:00
Carsten Larsen f1e2979d7a Update documentation 2017-01-21 13:51:39 +01:00
Carsten Larsen d7eca35395 Update documentation 2017-01-21 13:29:45 +01:00
Carsten Larsen 281317d503 Disable language on Windows 2017-01-21 13:29:11 +01:00
Carsten Larsen 3ae8e58f2b Prepare release 2017-01-21 13:28:39 +01:00
Carsten Larsen f4d99b69de Update documentation 2017-01-20 22:21:51 +01:00
Carsten Larsen bcb3611f14 Update documentation 2017-01-20 22:17:15 +01:00
Carsten Larsen ded1be8026 Documentation 2017-01-19 20:46:15 +01:00
Carsten Larsen b402fff504 Update makefile 2017-01-11 21:00:10 +01:00
Carsten Larsen a1a5aea15e Fix potential memory leak 2017-01-11 20:59:21 +01:00
Carsten Larsen aff002dbda scan-build results 2017-01-11 20:58:08 +01:00
Carsten Larsen 259f73d19e Fix Microsoft Visual C++ version string 2017-01-11 20:13:41 +01:00
Carsten Larsen 41ae34644d Simplify test 2017-01-11 19:35:58 +01:00
Carsten Larsen e83f879211 Updated toolset 2017-01-11 19:29:27 +01:00
Carsten Larsen 70fee59186 Updated Copyright text 2017-01-11 19:27:01 +01:00
Carsten Larsen 79c0de3575 Fix GCC compiler error 2017-01-10 23:52:26 +01:00
Carsten Larsen 441bed5c99 Fix GCC 2.x compiler error 2017-01-10 23:46:29 +01:00
Carsten Larsen 910b5a7cd9 Fix AmigaOS build 2017-01-10 23:45:46 +01:00
Carsten Larsen a08d724997 Include copyright text 2017-01-10 21:17:35 +01:00
Carsten Larsen bc94803f91 Compiler version string 2017-01-10 20:58:47 +01:00
Carsten Larsen 2b786bef20 clang support 2017-01-09 21:30:46 +01:00
Carsten Larsen cbb6c747f6 Fix method signature 2017-01-09 20:59:54 +01:00
Carsten Larsen 65f9d88562 Use correct deallocator 2017-01-08 13:13:39 +01:00
Carsten Larsen 4ea2b3af84 Code cleanup
modified:   app/lib/ntext.cpp
	modified:   app/main/lexer.cpp
	modified:   app/system/language.cpp
	modified:   app/system/language_posix.cpp
	modified:   app/system/preferences_stdc.cpp
	modified:   lib/real/pow.c
	modified:   lib/platform.h
2017-01-08 12:05:28 +01:00
Carsten Larsen 340a99d861 Updated readme 2016-08-19 18:15:29 +00:00
rainlance 3ea3222b91 Added build dependecy 2016-04-03 12:05:52 +02:00
rainlance 0651330e08 Cleanup 2016-04-03 11:56:10 +02:00
rainlance 3010a67d7f Fixed memory bug 2016-04-03 11:55:35 +02:00
Carsten 4228b95303 Fixed hardcoded local 2016-03-28 17:16:57 +02:00
llsth bf8cc0b222 Basic implementation of POSIX localization 2015-04-15 14:41:33 +02:00
llsth ffe9553471 Merge branch 'master' of https://github.com/llsth/amath 2015-04-14 19:22:06 +02:00
llsth b711e8aeab Added text author 2015-04-14 19:20:24 +02:00
rainlance 1752f2c546 Update README.md 2015-04-14 18:52:44 +02:00
llsth 2478847bd9 Clarified license details 2015-04-14 18:38:03 +02:00
llsth b26c5c81c9 Clarified license details 2015-04-14 18:32:44 +02:00
llsth e310c982d0 Clarified license details 2015-04-14 18:23:49 +02:00
llsth 9780e8b1c5 Clarified license details 2015-04-14 18:22:43 +02:00
llsth 617a418a91 Clarified license details 2015-04-14 18:21:58 +02:00
llsth 0760eaa798 Clarified license details 2015-04-14 18:14:57 +02:00
llsth 28b94bfaf4 Win32 texts 2015-04-14 14:19:38 +02:00
llsth e00ce964ae Win32 fixes 2015-04-14 14:00:01 +02:00
llsth 9d85d4c699 Updated Makefile 2015-04-14 00:05:11 +02:00
llsth cba2829664 Fixed AmigaOS build 2015-04-14 00:03:33 +02:00
llsth 7bb7b4e955 Localization on Standard C platforms 2015-04-13 23:48:08 +02:00
llsth f9a09c4bad Bugfixes 2015-04-13 23:44:17 +02:00
llsth 390ff27017 Updated catalog text 2015-04-12 00:17:20 +02:00
llsth b5ca35438d Fixed read of wrong address in empty strings 2015-04-12 00:00:43 +02:00
llsth 2adc0edd4c Fixed wrong memory management with new 2015-04-11 23:52:57 +02:00
llsth 37d2ba4794 Updated catalogs 2015-04-10 23:36:25 +02:00
llsth a633d5d06a Updated README.md 2015-04-10 15:42:17 +02:00
llsth be6681d3f0 Fixed memory bug 2015-04-10 15:41:52 +02:00
llsth b3753232f2 Implemented localized keywords 2015-04-10 15:41:29 +02:00
llsth fa1f153127 Updated project files 2015-04-10 00:04:58 +02:00
llsth 4c512addad Updated make logic 2015-04-10 00:02:57 +02:00
llsth 2f28be077b Moved catalog generation files 2015-04-10 00:00:56 +02:00
llsth af1681cc87 localized keywords 2015-04-09 23:59:17 +02:00
llsth 9121566b52 Included catalog and dist targets 2015-04-09 19:00:51 +02:00
llsth 26eb3d5cda Changed to buffered output 2015-04-09 18:59:44 +02:00
llsth 385073a256 Updated national letters 2015-04-09 18:59:22 +02:00
llsth 58121f8c01 Update catalog generation 2015-04-09 15:08:54 +02:00
llsth b35b9acde3 Updated language descriptions 2015-04-09 15:08:30 +02:00
llsth f30729980e Alias in function help 2015-04-09 14:42:16 +02:00
llsth 194830b64c Updated descriptions 2015-04-09 14:38:47 +02:00
llsth 12657aab90 Updated descriptions 2015-04-09 11:28:25 +02:00
llsth 6af581bbe4 Removed needless delimiters 2015-04-09 01:33:24 +02:00
rainlance c325bd29bc Fixes spelling mistakes 2015-04-09 01:22:02 +02:00
llsth 9cb7ef34a8 Initial commit 2015-04-09 01:19:27 +02:00
llsth 449e0c8473 Initial language support 2015-04-09 01:07:50 +02:00
llsth 4a0cba78cc Updated version info 2015-04-09 01:07:19 +02:00
llsth 048f20a717 Minor bugfixes 2015-04-08 23:03:42 +02:00
llsth 9a7af719d6 Minor bugfixes 2015-04-08 23:01:23 +02:00
llsth 76c315bfd0 Changed faulty language logic 2015-04-08 20:01:42 +02:00
llsth 6b4ae56c8a Updated with configure 2015-04-08 19:23:10 +02:00
llsth c647e003d2 Updated with configure 2015-04-08 19:20:51 +02:00
llsth c27ee67707 Updated with configure 2015-04-08 19:14:56 +02:00
llsth f1bcdda6dc Adjusted localization 2015-04-08 19:10:18 +02:00
llsth 5b851eee7c Fixed localization bug 2015-04-08 19:08:36 +02:00
llsth 8624d62494 Updated catalog keys 2015-04-08 19:08:07 +02:00
llsth 5886946f1d Basic multilingual support 2015-04-08 16:27:35 +02:00
llsth 9d2de4b700 Included flexcat in Makefile 2015-04-08 13:01:33 +02:00
llsth 4efc38b6b8 Accept newline as delimiter 2015-04-08 12:59:08 +02:00
llsth f29f311ff6 Cleaned up in platform defs 2015-04-08 11:13:17 +02:00
llsth 05efc36c6f Fixes in preferences 2015-04-08 11:05:41 +02:00
llsth d7f8c6cbd3 Cleaned up definitions 2015-04-08 01:15:36 +02:00
llsth c80e7c0101 Cleaned up definitions 2015-04-08 01:10:10 +02:00
llsth f445eef190 Fixed wrong debug comparison 2015-04-08 00:42:32 +02:00
llsth e45fae685c Fixed memory leak 2015-04-08 00:41:24 +02:00
llsth 2c2671df31 Clean up in cross compilation 2015-04-07 21:51:26 +02:00
llsth c918ff89e8 Fixed GCC define 2015-04-07 21:50:52 +02:00
llsth 00acfc11e7 clean up defines 2015-04-07 21:18:39 +02:00
llsth bcf936f4a8 License clean up 2015-04-07 20:36:00 +02:00
llsth 280e020a20 pragma clean up 2015-04-07 20:25:11 +02:00
llsth 5cc10f9e38 Removed GPL licensed file 2015-04-07 19:59:35 +02:00
llsth 10860fb996 Fixed AmigaOS 3 defines 2015-04-07 19:57:28 +02:00
llsth e73a42b69a Support for Visual Studio 2015-04-07 18:51:26 +02:00
llsth e8b7ad9720 Support for Visual Studio 2015-04-07 18:50:44 +02:00
llsth a99e32c5df Removed text under wrong license 2015-04-05 12:09:47 +02:00
llsth bc4d88d894 Updated license details 2015-04-05 12:04:55 +02:00
carsten da3ea85e80 Cross-compiler changes 2015-04-01 16:58:18 +02:00
llsth d7b73eb2d2 Fixed AROS typecasting 2015-04-01 15:29:25 +02:00
llsth 7b88f3119c Uncommented unfinished code 2015-04-01 15:23:37 +02:00
llsth c19d50f03e Removed deprecated files 2015-04-01 14:51:50 +02:00
llsth 89f78a5cdc amath-1.6.0 initial commit 2015-04-01 14:43:50 +02:00
llsth 3ab236f0b0 Included MorphOS patch 2015-03-26 13:00:37 +01:00
llsth 2ee6693905 Included MorphOS patch 2015-03-26 12:49:27 +01:00
rainlance cef3b88d61 Update README.md 2015-03-24 01:04:29 +01:00
rainlance 1ca6893513 Update README.md 2015-03-24 01:03:17 +01:00
rainlance 02deed1853 Update README.md 2015-03-24 00:25:29 +01:00
rainlance a60b55e01b Update README.md 2015-03-24 00:22:55 +01:00
rainlance 904620e599 Update HISTORY 2015-03-23 22:58:24 +01:00
rainlance b077d77668 Update README.md 2015-03-23 22:55:44 +01:00
421 changed files with 1603 additions and 1112 deletions
+2
View File
@@ -11,7 +11,9 @@ amath
amath-test
catalog/flexcat
catalog/flexcat/flexcat
build/flexcat/flexcat
*_.3
doxygen.warn
*.deb
*.zip
Makefile
+12
View File
@@ -0,0 +1,12 @@
[
{
"key": "ctrl+shift+c",
"command": "workbench.action.tasks.runTask",
"args": "Clean all"
},
{
"key": "ctrl+t",
"command": "workbench.action.tasks.runTask",
"args": "Run tests"
}
]
+27
View File
@@ -0,0 +1,27 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/amath",
"args": ["--shell"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
+19
View File
@@ -0,0 +1,19 @@
{
"cSpell.words": [
"amath",
"carsten",
"innolan",
"sonne"
],
"files.associations": {
"type_traits": "cpp",
"cctype": "cpp",
"cstdarg": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstdint": "cpp",
"exception": "cpp",
"new": "cpp",
"typeinfo": "cpp"
}
}
+51
View File
@@ -0,0 +1,51 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Open shell",
"type": "shell",
"command": "${workspaceFolder}/amath --shell",
"problemMatcher": []
},
{
"label": "Build all",
"command": "make",
"args": [
"all"
],
"options": {
"cwd": "${workspaceRoot}"
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$gcc"
]
},
{
"label": "Clean all",
"command": "make",
"args": [
"clean"
],
"options": {
"cwd": "${workspaceRoot}"
},
"problemMatcher": []
},
{
"label": "Run tests",
"type": "shell",
"command": "${workspaceFolder}/amath --test",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
}
]
}
+15
View File
@@ -1,5 +1,20 @@
amath release history
v1.8.5 August 07 2018
- Fix build on compilers with broken endian detection.
v1.8.4 August 05 2018
- Ignore casing in hexadecimal numbers.
v1.8.3 July 21 2017
- Updated help texts and man page.
- Fixed bug in ANSI switch.
v1.8.2 July 14 2017
- MIPS support.
- Improved endianness detection.
- Fixed configuration errors.
v1.8.1 April 22 2017
- OpenBSD support.
- Fixed Haiku bug.
+1 -1
View File
@@ -1,5 +1,5 @@
Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
Copyright (c) 2007 The NetBSD Foundation, Inc.
Copyright (c) 1990, 1993 The Regents of the University of California.
All rights reserved.
+1 -1
View File
@@ -26,4 +26,4 @@ Show version string:
> amath version
Run regression tests:
> amath test
> amath --test
+1 -1
View File
@@ -29,4 +29,4 @@ Install by copying the desired amath binary to C: or any other appropriate locat
> amath version
Run regression tests:
> amath test
> amath --test
+91 -55
View File
@@ -1,4 +1,4 @@
.\" Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
.\" Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
@@ -20,39 +20,27 @@
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.TH amath 1 "Version 1.8.1" "April 22 2017"
.TH amath 1 "Version 1.8.5" "August 07 2018"
.SH NAME
amath \- Simple command line calculator
.SH SYNOPSIS
\fC[ --noansi ] [ --shell | expression ]\fP
\fC[ \fB--noansi\fR ] [ \fB--shell\fR |
.IR expression
]
.SH DESCRIPTION
amath(1) features a case sensitive command line interface, internal
\fBamath\fP features a case sensitive command line interface, internal
IEEE 754 calculations with 15 significant digits, calculations with
real and complex numbers, variables and user defined functions,
logarithmic and exponential functions, trigonometric and hyperbolic
function and selected mathematical constants and rounding functions.
.SH Statements
.nf
clear Clear console window
def Define function
delete Delete variable or function
digits Set number of significant digits
eval Evaluate arithmetic expression
execute Execute statements in a file
functions Show list of user defined functions
input Change numeral input system
help Show basic help text
output Change numeral output system
list Show content of a directory
show Show content of a file
load Load variable and functions from file
save Save variable and functions to file
variables Show list of variables
version Show version string
memory Show internal memory usage
exit Exit program
.fi
.SH Operators
.SH OPTIONS
.TP
.BR \-\-noansi
Disable output of ANSI escape codes. Default is enable.
.TP
.BR \-\-shell
Open an interactive shell.
.SH OPERATORS
.nf
+ Mathematical addition
- Mathematical subtraction
@@ -61,14 +49,15 @@ exit Exit program
^ Mathematical exponentiation
= Assignment of variable values
| Absolute value of number
.SH Variables and constant
.fi
.SH VARIABLES AND CONSTANT
.nf
pi Trigonometric constant
e Euler's number
i Imaginary unit
ins Result of last calculation
.fi
.SH Base functions
.SH MISCELLANEOUS FUNCTIONS
.nf
abs Absolute value of number
sgn Mathematical signum function
@@ -82,7 +71,7 @@ lb Binary logarithm function (base 2)
ln Natural logarithm function (base e)
lg Common logarithm function (base 10)
.fi
.SH Trigonometric functions
.SH TRIGONOMETRIC FUNCTIONS
.nf
sin Trigonometric sine function
cos Trigonometric cosine function
@@ -103,7 +92,7 @@ arccrd Inverse trigonometric chord function
arcexsec Inverse trigonometric exsecant function
arcexcsc Inverse trigonometric excosecant function
.fi
.SH Hyperbolic functions
.SH HYPERBOLIC FUNCTIONS
.nf
sinh Hyperbolic sine function
cosh Hyperbolic cosine function
@@ -118,7 +107,7 @@ arccoth Inverse hyperbolic cotangent function
arcsech Inverse hyperbolic secant function
arccsch Inverse hyperbolic cosecant function
.fi
.SH Early trigonometric functions
.SH EARLY TRIGONOMETRIC FUNCTIONS
.nf
ver Versed sine function
vcs Versed cosine function
@@ -137,7 +126,54 @@ archvc Inverse haversed cosine function
archcv Inverse hacoversed sine function
archcc Inverse hacoversed cosine function
.fi
.SH Example script
.SH STATEMENTS
.nf
about Show about text
clear Clear console window
def Define function
delete Delete variable or function
digits Set number of significant digits
eval Evaluate arithmetic expression
execute Execute statements in a file
functions Show list of user defined functions
input Change numeral input system
help Show basic help text
output Change numeral output system
list Show content of a directory
show Show content of a file
load Load variable and functions from file
save Save variable and functions to file
variables Show list of variables
version Show version string
license Show copyright and license texts
memory Show internal memory usage
exit Exit program
.fi
.SH EXIT STATUS
\fBamath\fP exits 0 on success and >0 if an error occurs.
.SH EXAMPLES
Add two numbers:
.RS
$ amath 1.3 + 2.6
.RE
.PP
Find cosine of pi/2:
.RS
$ amath "cos(pi/2)"
.RE
.PP
Find square root of minus 25:
.RS
$ amath "sqrt(-25)"
.RE
.PP
Show only 5 digits in the result of a division:
.RS
$ amath "digits 5;34/11"
.RE
.PP
Script block with functions:
.RS
.nf
round(1.5461);round(-1.5461);
ceil(43.5461);ceil(-43.5461);
@@ -145,34 +181,34 @@ floor(39.9531);floor(-39.9531);
trunc(23.827);trunc(-23.827);
sqrt(100);sqrt(52.23);
.fi
.SH Example script with functions
.RE
.PP
Script block with user defined functions:
.RS
.nf
f(x)=x*2+1;
g(y)=y^2+y*1.5+2;
a=2;b=3;c=a+b;
vars;funcs;
f(2.2);c+1.1;
.fi
.SH Example script with complex numbers
.nf
cos(1+2i);
sin(1+2i);
tan(1+2i);
coth(1+2i);
sech(1+2i);
csch(1+2i);
.fi
.SH HOMEPAGE
http://amath.innolan.net/
.SH AUTHORS
.PP
Written by Carsten Sonne Larsen <cs@innolan.net>. The code in MemSet and
MemCopy is derived from software contributed to Berkeley by Mike Hibler and
Chris Torek. The code in complex calculations is derived from software
written by Stephen L. Moshier.
.SH COPYRIGHT
Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
.RE
.SH BUGS
.IP \[bu] 2
If \fBamath\fP is linked with system libraries (-lm) sometimes the real part
of a result of arccosh of a complex number, is negative instead of positive.
.IP \[bu]
coth() with complex numbers is inaccurate on the 14th digit.
.sp
Please report any other bugs that you encounter via:
.br
Copyright (c) 1990, 1993 The Regents of the University of California
\fIhttps://gitlab.com/rnger/amath/issues\fR.
.SH HOMEPAGE
https://amath.innolan.net/
.SH SEE ALSO
amathc(3), amathr(3), amathi(3)
amathc(3), amathr(3), amathi(3)
.SH AUTHORS
Written by Carsten Sonne Larsen <cs@innolan.net>. Floating point to string
conversion is based on software written by Ryan Juckett. The code in complex
calculations is derived from software written by Stephen L. Moshier. The code
in MemSet and MemCopy is derived from software contributed to Berkeley by
Mike Hibler and Chris Torek.
+1 -1
View File
@@ -1,7 +1,7 @@
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = "amath"
PROJECT_NUMBER = "1.8.1"
PROJECT_NUMBER = "1.8.5"
PROJECT_BRIEF = "Simple command line calculator"
PROJECT_LOGO =
OUTPUT_DIRECTORY = ../amath-doc
Executable
+141
View File
@@ -0,0 +1,141 @@
#!/bin/sh
#
# Copyright {c} 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES {INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION}
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT {INCLUDING NEGLIGENCE OR OTHERWISE} ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Project homepage:
# https://amath.innolan.net
#
set -e
version="1.8.5"
build_package () {
rm -Rf amath
rm -f amath-${version}_$1.deb
sh configure CFLAGS=$2
make clean
echo "Building $3 bit package of amath ${version} for Debian ..."
make static
mv amath amath.tmp
# Create filesystem layout
mkdir -m 755 amath
mkdir -m 755 amath/DEBIAN
mkdir -m 755 amath/usr/
mkdir -m 755 amath/usr/bin
mkdir -m 755 amath/usr/share
mkdir -m 755 amath/usr/share/amath
mkdir -m 755 amath/usr/share/man
mkdir -m 755 amath/usr/share/man/man1
mkdir -m 755 amath/usr/share/man/man3
mkdir -m 755 amath/usr/share/doc
mkdir -m 755 amath/usr/share/doc/amath
# Copy binaries
mv amath.tmp amath/usr/bin/amath
chmod 0755 amath/usr/bin/amath
# Copy documentation
cp HISTORY amath/usr/share/doc/amath/changelog
gzip --best -n amath/usr/share/doc/amath/changelog
cp README amath/usr/share/doc/amath/
gzip --best -n amath/usr/share/doc/amath/README
chmod 644 amath/usr/share/doc/amath/*
# Copy man pages
cat amath.1 | sed '/SEE ALSO/,+1 d' > amath/usr/share/man/man1/amath.1
gzip --best -n amath/usr/share/man/man1/amath.1
chmod 644 amath/usr/share/man/man1/*
# Copy scripts
cp script/* amath/usr/share/amath/
chmod 644 amath/usr/share/amath/*
# Create control file
{
echo "Package: amath"
echo "Version: ${version}"
echo "Architecture: $1"
echo "Maintainer: Carsten Sonne Larsen <cs@innolan.net>"
echo "Installed-Size: $4"
echo "Depends: libc6"
echo "Section: math"
echo "Priority: optional"
echo "Homepage: https://amath.innolan.net"
echo "Built-Using: gcc-7.3"
echo "Description: Simple command line calculator"
echo " Features a case sensitive command line interface, internal IEEE 754"
echo " calculations with 15 significant digits, calculations with real and"
echo " complex numbers, variables and user defined functions, logarithmic"
echo " and exponential functions, trigonometric and hyperbolic function"
echo " and selected mathematical constants and rounding functions."
} >amath/DEBIAN/control
chmod 0755 amath/DEBIAN/control
# Create copyright file
# Refer to https://www.debian.org/doc/debian-policy/ch-docs.html#s-copyrightfile
{
echo "Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/"
echo "Upstream-Name: amath"
echo "Source: https://amath.innolan.net"
echo
echo "Files: *"
echo "Copyright: 2014-2018 Carsten Sonne Larsen <cs@innolan.net>"
echo " 2007 The NetBSD Foundation, Inc."
echo " 1990, 1993 The Regents of the University of California."
echo "License: BSD-2-Clause"
echo " Redistribution and use in source and binary forms, with or without"
echo " modification, are permitted provided that the following conditions are met:"
echo " ."
echo " Redistributions of source code must retain the above copyright notice, this"
echo " list of conditions and the following disclaimer."
echo " ."
echo " Redistributions in binary form must reproduce the above copyright notice,"
echo " this list of conditions and the following disclaimer in the documentation"
echo " and/or other materials provided with the distribution."
echo " ."
echo " THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\""
echo " AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE"
echo " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE"
echo " DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE"
echo " FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL"
echo " DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR"
echo " SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER"
echo " CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,"
echo " OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE"
echo " OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
} >amath/usr/share/doc/amath/copyright
chmod 644 amath/usr/share/doc/amath/*
fakeroot dpkg-deb --build amath
mv amath.deb amath-${version}_$1.deb
rm -Rf amath
}
build_package 'amd64' '' 64 320
build_package 'i386' '-m32' 32 322
+47 -27
View File
@@ -1,13 +1,44 @@
#!/bin/sh
#
# Copyright {c} 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES {INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION}
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT {INCLUDING NEGLIGENCE OR OTHERWISE} ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Project homepage:
# https://amath.innolan.net
#
# THIS SCRIPT IS NOT READY FOR PRODUCTION !
set -e
version="1.8.1"
version="1.8.5"
build_package () {
rm -Rf amath
rm -f amath-${version}_$1.deb
rm -f amath.deb
rm -f amath-dev-${version}_$1.deb
sh configure CFLAGS=$2
make clean
@@ -29,7 +60,7 @@ mkdir -m 755 amath/usr/share/man
mkdir -m 755 amath/usr/share/man/man1
mkdir -m 755 amath/usr/share/man/man3
mkdir -m 755 amath/usr/share/doc
mkdir -m 755 amath/usr/share/doc/amath
mkdir -m 755 amath/usr/share/doc/amath-dev
# Copy binaries
mv amath.tmp amath/usr/bin/amath
@@ -62,15 +93,16 @@ chmod 644 amath/usr/lib/pkgconfig/*
cp src/amath.h amath/usr/include/amath.h
cp src/amathc.h amath/usr/include/amathc.h
cp src/amatht.h amath/usr/include/amatht.h
cp src/complex.h amath/usr/include/amathi.h
cp src/mathi.h amath/usr/include/amathi.h
cp src/mathr.h amath/usr/include/amathr.h
chmod 644 amath/usr/include/*
# Copy documentation
cp HISTORY amath/usr/share/doc/amath/
gzip --best -n amath/usr/share/doc/amath/HISTORY
cp README amath/usr/share/doc/amath/
gzip --best -n amath/usr/share/doc/amath/README
chmod 644 amath/usr/share/doc/amath/*
cp HISTORY amath/usr/share/doc/amath-dev/changelog
gzip --best -n amath/usr/share/doc/amath-dev/changelog
cp README amath/usr/share/doc/amath-dev/
gzip --best -n amath/usr/share/doc/amath-dev/README
chmod 644 amath/usr/share/doc/amath-dev/*
# Copy man pages
cp amath.1 amath/usr/share/man/man1/amath.1
@@ -94,12 +126,12 @@ chmod 644 amath/usr/share/amath/*
echo "Package: amath-dev"
echo "Version: ${version}"
echo "Architecture: $1"
echo "Maintainer: Carsten Larsen <cs@innolan.net>"
echo "Maintainer: Carsten Sonne Larsen <cs@innolan.net>"
echo "Installed-Size: $4"
echo "Depends: libc6"
echo "Section: math"
echo "Priority: optional"
echo "Homepage: http://amath.innolan.net"
echo "Homepage: https://amath.innolan.net"
echo "Built-Using: gcc-5.4"
echo "Description: Simple command line calculator"
echo " Features a case sensitive command line interface, internal IEEE 754"
@@ -114,10 +146,10 @@ chmod 0755 amath/DEBIAN/control
{
echo "Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/"
echo "Upstream-Name: amath-dev"
echo "Source: http://amath.innolan.net"
echo "Source: https://amath.innolan.net"
echo
echo "Files: *"
echo "Copyright: 2014-2017 Carsten Sonne Larsen <cs@innolan.net>"
echo "Copyright: 2014-2018 Carsten Sonne Larsen <cs@innolan.net>"
echo " 2007 The NetBSD Foundation, Inc."
echo " 1990, 1993 The Regents of the University of California."
echo "License: BSD-2-Clause"
@@ -141,20 +173,8 @@ echo " SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVE
echo " CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,"
echo " OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE"
echo " OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
} >amath/DEBIAN/copyright
gzip --best -n amath/DEBIAN/copyright
chmod 0755 amath/DEBIAN/copyright.gz
# Create change log
{
echo "amath (${version}) unstable; urgency=low"
echo
echo " * Initial Debian Release."
echo
echo " -- Carsten Larsen <cs@innolan.net> Sat, 04 Mar 2017 19:49:07 +0100"
} >amath/DEBIAN/changelog.Debian
gzip --best -n amath/DEBIAN/changelog.Debian
chmod 0755 amath/DEBIAN/changelog.Debian.gz
} >amath/usr/share/doc/amath-dev/copyright
chmod 644 amath/usr/share/doc/amath-dev/copyright
{
echo "libamath ${version}"
+6 -4
View File
@@ -1,4 +1,10 @@
#!/bin/sh
#
# This file is public domain
#
# Project homepage:
# https://amath.innolan.net
#
set -e
@@ -61,7 +67,3 @@ date -Ru >dist/build_date
mv dist amath
#lha-ac a amath.lha amath
# GCC 6.x
#./configure --enable-test --cross-compile="/opt/m68k-amigaos6/bin/m68k-amigaos" CFLAGS="-m68000 -noixemul" LDFLAGS="-Xlinker --allow-multiple-definition"
#make static
+9 -4
View File
@@ -1,10 +1,15 @@
#! /bin/sh
#!/bin/sh
#
# This file is public domain
#
# Project homepage:
# https://amath.innolan.net
#
# DO NOT USE THIS SCRIPT UNLESS YOU KNOW WHAT YOU ARE DOING !
version='1.8.1'
stamp="201704220000"
#stamp="201704110000"
version='1.8.5'
stamp="201808070000"
srcdir="amath-rc"
distdir="amath-${version}"
cd ..
+7 -1
View File
@@ -1,8 +1,14 @@
#!/bin/sh
#
# This file is public domain
#
# Project homepage:
# https://amath.innolan.net
#
set -e
version="1.8.1"
version="1.8.5"
echo "Building amath ${version} for Windows ..."
+1 -1
View File
@@ -2,7 +2,7 @@
## language english
## codeset 0
; #############################################################################
; Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
; Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
+23 -19
View File
@@ -31,38 +31,42 @@ No help is available for this function.#NEWLINE#
cbr
No help is available for this function.#NEWLINE#
lb
No help is available for this function.#NEWLINE#
Binary logarithm function.#NEWLINE#
ln
No help is available for this function.#NEWLINE#
Natural logarithm function.#NEWLINE#
lg
No help is available for this function.#NEWLINE#
Common logarithm function.#NEWLINE#
; Partly from https://wikipedia.org/wiki/Sine
sin
Sine is the trigonometric function that for an acute angle is the#NEWLINE#ratio between the leg opposite the angle when it is considered#NEWLINE#part of a right triangle and the hypotenuse.#NEWLINE#
; Partly from https://wikipedia.org/wiki/Trigonometric_functions
cos
Cosine is the trigonometric function that for an acute angle is the#NEWLINE#ratio between the leg adjacent to the angle when it is considered#NEWLINE#part of a right triangle and the hypotenuse#NEWLINE#
Cosine is the trigonometric function that for an acute angle is the#NEWLINE#ratio between the leg adjacent to the angle when it is considered#NEWLINE#part of a right triangle and the hypotenuse.#NEWLINE#
; Partly from https://wikipedia.org/wiki/Trigonometric_functions
tan
Tangent is one of the trigonometry functions. In a right triangle,#NEWLINE#the tangent of an angle is the opposite side over the adjacent side.#NEWLINE#
; Partly from https://wikipedia.org/wiki/Trigonometric_functions
cot
No help is available for this function.#NEWLINE#
The cotangent cot(x), ctg(x) or ctn(x), is the reciprocal of tan(x).#NEWLINE#The cotangent is the ratio of the length of the adjacent side to the length of the opposite side.#NEWLINE#
; Partly from https://wikipedia.org/wiki/Trigonometric_functions
sec
No help is available for this function.#NEWLINE#
The secant sec(x) is the reciprocal of cos(x).#NEWLINE#The secant is the ratio of the length of the hypotenuse to the length of the adjacent side.#NEWLINE#So called because it is the tangent of the complementary or co-angle.#NEWLINE#
; Partly from https://wikipedia.org/wiki/Trigonometric_functions
csc
No help is available for this function.#NEWLINE#
The cosecant csc(x) or cosec(x), is the reciprocal of sin(x).#NEWLINE#The cosecant is the ratio of the length of the hypotenuse to the length of the opposite side.#NEWLINE#So called because it is the secant of the complementary or co-angle.#NEWLINE#
; Partly from https://wikipedia.org/wiki/Trigonometric_functions
asin
No help is available for this function.#NEWLINE#
arc sine function.#NEWLINE#
acos
No help is available for this function.#NEWLINE#
arc cosine function.#NEWLINE#
atan
No help is available for this function.#NEWLINE#
arc tangent function of one variable.#NEWLINE#
acot
No help is available for this function.#NEWLINE#
arc cotangent function.#NEWLINE#
asec
No help is available for this function.#NEWLINE#
arc secant function.#NEWLINE#
acsc
No help is available for this function.#NEWLINE#
arc cosecant function.#NEWLINE#
sinh
No help is available for this function.#NEWLINE#
cosh
@@ -116,14 +120,14 @@ No help is available for this function.#NEWLINE#
ahvc
No help is available for this function.#NEWLINE#
ahcv
No help is available for this function.#NEWLINE#
The inverse hacoversed sine is not implemented in this version of amath.#NEWLINE#
ahcc
No help is available for this function.#NEWLINE#
The inverse hacoversed cosine is not implemented in this version of amath.#NEWLINE#
exsec
No help is available for this function.#NEWLINE#
exsecant function.#NEWLINE#
excsc
No help is available for this function.#NEWLINE#
excosecant function.#NEWLINE#
aexsec
No help is available for this function.#NEWLINE#
inverse exsecant function.#NEWLINE#
aexcsc
No help is available for this function.#NEWLINE#
inverse excosecant function.#NEWLINE#
+6 -2
View File
@@ -1,8 +1,8 @@
## version $VER: amath-text.catalog 1.70 (28.02.2017) English
## version $VER: amath-text.catalog 1.84 (05.08.2018) English
## language english
## codeset 0
; #############################################################################
; Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
; Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
@@ -33,6 +33,8 @@ INTROMSG
#NORMALTEXT##BOLD##STARTMSG##NEWLINE##NORMALTEXT##COLOR02#Type help to show info.#NEWLINE#
STATEMENTLINE
---------------------------------------------------------#NEWLINE#
STATEMENTABOUT
about Show about text#NEWLINE#
STATEMENTCLEAR
clear Clear console window.#NEWLINE#
STATEMENTDEF
@@ -65,6 +67,8 @@ STATEMENTVARS
variables Show list of variables.#NEWLINE#
STATEMENTVERSION
version Show version string.#NEWLINE#
STATEMENTLICENSE
license Show copyright and license texts#NEWLINE#
STATEMENTMEMORY
memory Show internal memory usage.#NEWLINE#
STATEMENTEXIT
Vendored
+15 -6
View File
@@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright {c} 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
# Copyright {c} 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -27,7 +27,7 @@
set -e
version="1.8.1"
version="1.8.5"
clang=false
debugsym=false
@@ -66,6 +66,15 @@ for arg in "$@"; do
unknown=false
;;
--man-dir=*)
mandir=`echo $arg | sed 's/--mandir=//'`
unknown=false
;;
--doc-dir=*)
unknown=false
;;
--cross-compile=*)
crosscompile=`echo $arg | sed 's/--cross-compile=//'`
crosscompile="${crosscompile}-"
@@ -193,8 +202,8 @@ for arg in "$@"; do
echo ' --disable-debug: do not include debug symbols'
echo ' --enable-test: build code with regression tests'
echo ' --disable-test: do not include regression test'
echo ' --enable-clang: build with clang compiler'
echo ' --disable-clang: do not build with clang compiler'
echo ' --enable-clang: build explicit with clang compiler'
echo ' --disable-clang: do not explicit build with clang compiler'
echo ' --enable-ldconfig: use ldconfig to registre libraries'
echo ' --disable-ldconfig: do not use ldconfig to registre libraries'
echo ' --enable-pic: build with Position Independent Code (-fPIC)'
@@ -872,7 +881,7 @@ echo " \${MKDIR} static"
echo " \${MKDIR} shared"
echo
echo "\${solib}: build ${libcs}"
echo " \${CC} \${CFLAGS} -shared ${exestrip} -fPIC -Wl,-soname,\${solib}${soverion} -o \${solib} ${libcs} ${libc}"
echo " \${CC} \${CFLAGS} -shared ${exestrip} -fPIC -Wl,-soname,\${solib}${soverion} -o \${solib} ${libcs}"
echo
echo "\${alib}: build ${libc}"
echo " \${AR} rcs static/\${alib} ${libc}"
@@ -1210,7 +1219,7 @@ echo
echo ".PHONY: test"
echo "test: amath"
echo " LD_LIBRARY_PATH=src/clib/:src/lib:src/cplex:scr/real"
echo " ./amath test"
echo " ./amath --test"
echo
echo ".PHONY: install"
echo "install:"
+6 -6
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
@@ -281,10 +281,10 @@ typedef int bool;
#endif
/******************************************************************************/
#define TXTARCH TXTCPU TXTFPU
#define RELDATESTAMP "(22-04-2017)"
#define TXTDOSVERSION "\0$VER: amath 1.81" SPACE RELDATESTAMP SPACE TXTARCH
#define TXTTITLE "amath version 1.8.1"
#define TXTCOPYRIGHT "(c) 2017 Carsten Sonne Larsen"
#define RELDATESTAMP "(07-08-2018)"
#define TXTDOSVERSION "\0$VER: amath 1.85" SPACE RELDATESTAMP SPACE TXTARCH
#define TXTTITLE "amath version 1.8.5"
#define TXTCOPYRIGHT "(c) 2018 Carsten Sonne Larsen"
#define TXTSTARTMSG TXTTITLE SPACE TXTCOPYRIGHT
/******************************************************************************/
#define TXTVERSMSG TXTTITLE SPACE RELDATESTAMP SPACE TXTARCH
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+4 -4
View File
@@ -1,4 +1,4 @@
.\" Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
.\" Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
@@ -20,7 +20,7 @@
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.TH "amathc.h" 3 "Version 1.8.1" "April 22 2017"
.TH "amathc.h" 3 "Version 1.8.5" "August 07 2018"
.SH NAME
amathc.h \- C functions for manipulating strings and memory
.SH SYNOPSIS
@@ -472,14 +472,14 @@ Definition at line 32 of file untag\&.c\&.
82 }
.fi
.SH HOMEPAGE
http://amath.innolan.net/
https://amath.innolan.net/
.SH AUTHORS
.PP
Written by Carsten Sonne Larsen <cs@innolan.net>. The code in MemSet and
MemCopy is derived from software contributed to Berkeley by Mike Hibler and
Chris Torek.
.SH COPYRIGHT
Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
.br
Copyright (c) 2007 The NetBSD Foundation, Inc.
.br
+1 -1
View File
@@ -1,7 +1,7 @@
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = "amathc"
PROJECT_NUMBER = "1.8.1"
PROJECT_NUMBER = "1.8.5"
PROJECT_BRIEF = "C functions for manipulating strings and memory"
PROJECT_LOGO =
OUTPUT_DIRECTORY =
+1 -1
View File
@@ -5,6 +5,6 @@ libdir=${exec_prefix}/lib
Name: amath C library
Description: C functions for manipulating strings and memory
Version: 1.8.1
Version: 1.8.5
Cflags: -I${includedir}
Libs: -L${libdir} -lamathc
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 1990, 1993 The Regents of the University of California.
* All rights reserved.
*
@@ -27,7 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 1990, 1993 The Regents of the University of California.
* All rights reserved.
*
@@ -27,7 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+4 -4
View File
@@ -1,4 +1,4 @@
.\" Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
.\" Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
@@ -20,7 +20,7 @@
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.TH "mathi.h" 3 "Version 1.8.1" "April 22 2017"
.TH "mathi.h" 3 "Version 1.8.5" "August 07 2018"
.SH NAME
mathi.h \- Complex numbers math library
.SH SYNOPSIS
@@ -1739,13 +1739,13 @@ Definition at line 85 of file prim\&.c\&.
90 }
.fi
.SH HOMEPAGE
http://amath.innolan.net/
https://amath.innolan.net/
.SH AUTHORS
.PP
Written by Carsten Sonne Larsen <cs@innolan.net>. Some code in the
library is derived from software written by Stephen L. Moshier.
.SH COPYRIGHT
Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
.br
Copyright (c) 2007 The NetBSD Foundation, Inc.
.SH "See also"
+1 -1
View File
@@ -1,7 +1,7 @@
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = "amathi"
PROJECT_NUMBER = "1.8.1"
PROJECT_NUMBER = "1.8.5"
PROJECT_BRIEF = "Complex numbers math library"
PROJECT_LOGO =
OUTPUT_DIRECTORY =
+1 -1
View File
@@ -5,6 +5,6 @@ libdir=${exec_prefix}/lib
Name: amath complex library
Description: Complex numbers math library
Version: 1.8.1
Version: 1.8.5
Cflags: -I${includedir}
Libs: -L${libdir} -lamathi
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -27,7 +27,7 @@
* http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/complex/ccos.c?rev=1.1
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -30,7 +30,7 @@
* http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/complex/ccosh.c?rev=1.1
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -30,7 +30,7 @@
* http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/complex/cexp.c?rev=1.1
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -30,7 +30,7 @@
* http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/complex/clog.c?rev=1.1
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -30,7 +30,7 @@
* http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/complex/cpow.c?rev=1.1
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -30,7 +30,7 @@
* http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/complex/csin.c?rev=1.1
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -30,7 +30,7 @@
* http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/complex/csinh.c?rev=1.1
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -30,7 +30,7 @@
* http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/complex/csqrt.c?rev=1.1
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -30,7 +30,7 @@
* http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/complex/ctan.c?rev=1.1
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -30,7 +30,7 @@
* http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/complex/ctanh.c?rev=1.1
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+1 -1
View File
@@ -5,6 +5,6 @@ libdir=${exec_prefix}/lib
Name: amath application library
Description: C++ library for handling numbers
Version: 1.8.1
Version: 1.8.5
Cflags: -I${includedir}
Libs: -L${libdir} -lamathapp -lamathr -lamathi -lamathc
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+121 -39
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
@@ -40,18 +40,28 @@
PositionalNumeralSystem::PositionalNumeralSystem(
unsigned int base,
unsigned int digits,
const char fractionPoint) : base(base * 1.0), digits(digits)
const char fractionPoint) : digits(digits)
{
this->fractionPoint = fractionPoint;
this->baseInteger = base;
this->baseDouble = base * 1.0;
this->maxNumeric = (base > 10 ? 10 : base) + '0' - 1;
this->maxAlphaLower = base > 10 ? base + 'a' - 11 : 0;
this->maxAlphaUpper = base > 10 ? base + 'A' - 11 : 0;
}
PositionalNumeralSystem::~PositionalNumeralSystem()
{
}
bool PositionalNumeralSystem::IsDigit(char *digit)
{
return true;
}
const char *PositionalNumeralSystem::GetName()
{
switch (static_cast<int>(base))
switch (baseInteger)
{
case 2:
return "binary";
@@ -64,7 +74,7 @@ const char *PositionalNumeralSystem::GetName()
}
const char *text = "base ";
Number *n = new RealNumber(base);
Number *n = new RealNumber(baseInteger);
NumeralSystem *ns = new DecimalSystem(2);
const char *numtext = ns->GetText(n);
@@ -211,21 +221,21 @@ const char *PositionalNumeralSystem::GetText(double number) const
dnumber = -dnumber;
}
double expbor = log2p(base, dnumber);
double expbor = log2p(baseDouble, dnumber);
double expacc = expbor > 0.0 ? 4e-14 : -1e-15;
double expborder = trunc(expbor + expacc);
int exponent = 0;
double rounding;
double bordermax = trunc(9.0 * 10 / base);
double bordermin = trunc(-8.0 * 10 / base);
double bordermax = trunc(9.0 * 10 / baseDouble);
double bordermin = trunc(-8.0 * 10 / baseDouble);
// Find exponent
if (expborder >= bordermax || expborder <= bordermin)
{
double dexp = trunc(log2p(base, dnumber) + expacc);
dnumber = dnumber * pow(base, -dexp);
double dexp = trunc(log2p(baseDouble, dnumber) + expacc);
dnumber = dnumber * pow(baseDouble, -dexp);
// pow is inaccurate on small and large numbers
if (dexp > 15 || dexp < -15)
@@ -237,7 +247,7 @@ const char *PositionalNumeralSystem::GetText(double number) const
if (dnumber < 1.0)
{
dexp--;
dnumber *= base;
dnumber *= baseDouble;
}
exponent = static_cast<int>(dexp);
@@ -246,7 +256,7 @@ const char *PositionalNumeralSystem::GetText(double number) const
else
{
double acc = exponent > 0 ? 15 : -15;
rounding = pow(base, exponent + acc);
rounding = pow(baseDouble, exponent + acc);
}
int digitout;
@@ -260,8 +270,8 @@ const char *PositionalNumeralSystem::GetText(double number) const
{
buf->Append(fractionPoint);
double fraction = fabs(round((dnumber - intvalue) * pow(base, fragdigits)));
double temp1 = log2p(base, fraction);
double fraction = fabs(round((dnumber - intvalue) * pow(baseDouble, fragdigits)));
double temp1 = log2p(baseDouble, fraction);
FloatUnion64 temp2;
temp2.floatingPoint = temp1;
bool fin = !temp2.IsInf();
@@ -274,7 +284,7 @@ const char *PositionalNumeralSystem::GetText(double number) const
buf->Append('0');
}
intvalue = static_cast<int64_t>(trunc(fraction * base) / base);
intvalue = static_cast<int64_t>(trunc(fraction * baseDouble) / baseDouble);
IntegerToBuffer(intvalue, fragdigits, &digitout);
// Remove trailing zeros
@@ -313,9 +323,9 @@ void PositionalNumeralSystem::IntegerToBuffer(double value, unsigned int digits,
do
{
count++;
unsigned int intremainder = static_cast<unsigned int>(trunc(fmod(value, base)));
unsigned int intremainder = static_cast<unsigned int>(trunc(fmod(value, baseDouble)));
*chars++ = alphaNumerics[intremainder];
value /= base;
value /= baseDouble;
} while (value >= 1.0);
unsigned int n = count;
@@ -339,50 +349,99 @@ void PositionalNumeralSystem::IntegerToBuffer(double value, unsigned int digits,
Number *PositionalNumeralSystem::Parse(const char *text, unsigned int *length, char **end)
{
unsigned int intbase = static_cast<unsigned int>(base);
char maxNumeric = (intbase > 10 ? 10 : intbase) + '0' - 1;
char maxAlpha = intbase > 10 ? intbase + 'A' - 11 : 0;
unsigned int pos = 0;
double integer = 0;
double addition;
bool done = false;
while (*text != '\0' && ((*text >= '0' && *text <= maxNumeric) || (maxAlpha != 0 && *text >= 'A' && *text <= maxAlpha)))
// Parse integer part of number
do
{
addition = ((*text >= '0' && *text <= maxNumeric) ? (*text - '0') : (*text - 'A' + 10)) * 1.0;
integer = integer * base + addition;
double addition;
if (*text == '\0')
{
done = true;
continue;
}
if (*text >= '0' && *text <= maxNumeric)
{
addition = (*text - '0') * 1.0;
}
else if (maxAlphaUpper != 0 && *text >= 'A' && *text <= maxAlphaUpper)
{
addition = (*text - 'A' + 10) * 1.0;
}
else if (maxAlphaLower != 0 && *text >= 'a' && *text <= maxAlphaLower)
{
addition = (*text - 'a' + 10) * 1.0;
}
else
{
done = true;
continue;
}
integer = integer * baseDouble + addition;
text++;
pos++;
}
} while (!done);
// Digits not found
if (pos == 0)
{
*length = 0;
*end = const_cast<char*>(text);
*end = const_cast<char *>(text);
return new RealNumber();
}
// Parse fraction part of number
double fraction = 0.0;
double divisor = 1.0;
if (*text == fractionPoint && fractionPoint != '\0')
{
done = false;
double addition;
text++;
pos++;
while (*text != '\0' && ((*text >= '0' && *text <= maxNumeric) || (maxAlpha != '\0' && *text >= 'A' && *text <= maxAlpha)))
do
{
addition = ((*text >= '0' && *text <= maxNumeric) ? (*text - '0') : (*text - 'A' + 10));
fraction = fraction * base + addition;
divisor *= base;
if (*text == '\0')
{
done = true;
continue;
}
if (*text >= '0' && *text <= maxNumeric)
{
addition = (*text - '0') * 1.0;
}
else if (maxAlphaUpper != 0 && *text >= 'A' && *text <= maxAlphaUpper)
{
addition = (*text - 'A' + 10) * 1.0;
}
else if (maxAlphaLower != 0 && *text >= 'a' && *text <= maxAlphaLower)
{
addition = (*text - 'a' + 10) * 1.0;
}
else
{
done = true;
continue;
}
fraction = fraction * baseDouble + addition;
divisor *= baseDouble;
text++;
pos++;
}
} while (!done);
}
// Parse exponent part of number
double exp = 0.0;
if (*text == 'e' || *text == 'E')
{
double addition;
text++;
pos++;
@@ -390,17 +449,40 @@ Number *PositionalNumeralSystem::Parse(const char *text, unsigned int *length, c
if (sign != 0.0)
{
done = false;
text++;
pos++;
while (*text != '\0' && ((*text >= '0' && *text <= maxNumeric) || (maxAlpha != 0 && *text >= 'A' && *text <= maxAlpha)))
do
{
addition = ((*text >= '0' && *text <= maxNumeric) ? (*text - '0') : (*text - 'A' + 10)) * 1.0;
exp = exp * base + addition;
if (*text == '\0')
{
done = true;
continue;
}
if (*text >= '0' && *text <= maxNumeric)
{
addition = (*text - '0') * 1.0;
}
else if (maxAlphaUpper != 0 && *text >= 'A' && *text <= maxAlphaUpper)
{
addition = (*text - 'A' + 10) * 1.0;
}
else if (maxAlphaLower != 0 && *text >= 'a' && *text <= maxAlphaLower)
{
addition = (*text - 'a' + 10) * 1.0;
}
else
{
done = true;
continue;
}
exp = exp * baseDouble + addition;
text++;
pos++;
}
} while (!done);
exp *= sign;
}
else
@@ -411,14 +493,14 @@ Number *PositionalNumeralSystem::Parse(const char *text, unsigned int *length, c
}
*length = pos;
*end = const_cast<char*>(text);
*end = const_cast<char *>(text);
double dnumber = (integer + (fraction / divisor));
if (exp != 0.0)
{
// pow seems a bit off
dnumber *= pow(base, exp + 4e-15);
dnumber *= pow(baseDouble, exp + 4e-15);
}
return new RealNumber(dnumber);
+9 -3
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
@@ -57,12 +57,18 @@ protected:
const char* GetSpecialCase(Number *number);
void IntegerToBuffer(double value, unsigned int digits, int* outdigits) const;
double base;
double baseDouble;
unsigned int digits;
char fractionPoint;
private:
const char* GetText(double number) const;
bool IsDigit(char *digit);
unsigned int baseInteger;
char maxNumeric;
char maxAlphaLower;
char maxAlphaUpper;
};
#endif
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+3 -3
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -26,7 +26,7 @@
* http://sourceforge.net/projects/flexcat/
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
@@ -53,7 +53,7 @@ struct helptextdef
};
static const helptextdef helptexts[] = {
{ 0, symzero, "Enter command or expression to evaluate.#NEWLINE##SYNTAXHIGHLIGHT#Example: 2+3-cos(3)#NORMALTEXT##NEWLINE# #NEWLINE#More help is available for designated topics.#NEWLINE#----------------------------------------------------#NEWLINE#functions Base functions#NEWLINE#trigon Trigonometric functions#NEWLINE#hyper Hyperbolic functions#NEWLINE#early Early trigonometric functions#NEWLINE#complex Syntax for complex numbers#NEWLINE#statements Available statements#NEWLINE#operators Supported operators#NEWLINE#----------------------------------------------------#NEWLINE##SYNTAXHIGHLIGHT#Example: help trigon#NEWLINE#" },
{ 0, symzero, "Enter command or expression to evaluate.#NEWLINE##SYNTAXHIGHLIGHT#Example: 2+3-cos(3)#NORMALTEXT##NEWLINE# #NEWLINE#More help is available for designated topics.#NEWLINE#----------------------------------------------------#NEWLINE#functions Miscellaneous functions#NEWLINE#trigon Trigonometric functions#NEWLINE#hyper Hyperbolic functions#NEWLINE#early Early trigonometric functions#NEWLINE#complex Syntax for complex numbers#NEWLINE#statements Available statements#NEWLINE#operators Supported operators#NEWLINE#----------------------------------------------------#NEWLINE##SYNTAXHIGHLIGHT#Example: help trigon#NEWLINE#" },
{ 1, symoperator, "----------------------------------------------------#NEWLINE# + Mathematical addition#NEWLINE# - Mathematical subtraction#NEWLINE# * Mathematical multiplication#NEWLINE# / Mathematical division#NEWLINE# ^ Mathematical exponentiation#NEWLINE# = Assignment of variable values#NEWLINE# | Absolute value of number#NEWLINE#----------------------------------------------------#NEWLINE#" },
{ 2, symfunction, "----------------------------------------------------#NEWLINE#abs Absolute value of number#NEWLINE#sgn Mathematical signum function#NEWLINE#round Round to nearest integer number#NEWLINE#trunc Discard fraction part of number#NEWLINE#floor Mathematical floor function#NEWLINE#ceil Mathematical ceiling function#NEWLINE#sqrt Square root function (exp 1/2)#NEWLINE#cbrt Cube root function (exp 1/3)#NEWLINE#lb Binary logarithm function (base 2)#NEWLINE#ln Natural logarithm function (base e)#NEWLINE#lg Common logarithm function (base 10)#NEWLINE#----------------------------------------------------#NEWLINE##SYNTAXHIGHLIGHT#Example: round(1.55)#NORMALTEXT##NEWLINE#" },
{ 3, symtrigon, "----------------------------------------------------#NEWLINE#sin Trigonometric sine function#NEWLINE#cos Trigonometric cosine function#NEWLINE#tan Trigonometric tangent function#NEWLINE#cot Trigonometric cotangent function#NEWLINE#sec Trigonometric secant function#NEWLINE#csc Trigonometric cosecant function#NEWLINE#crd Trigonometric chord function#NEWLINE#exsec Trigonometric exsecant function#NEWLINE#excsc Trigonometric excosecant function#NEWLINE#asin Inverse trigonometric sine function#NEWLINE#acos Inverse trigonometric cosine function#NEWLINE#atan Inverse trigonometric tangent function#NEWLINE#acot Inverse trigonometric cotangent function#NEWLINE#asec Inverse trigonometric secant function#NEWLINE#acsc Inverse trigonometric cosecant function#NEWLINE#acrd Inverse trigonometric chord function#NEWLINE#aexsec Inverse trigonometric exsecant function#NEWLINE#aexcsc Inverse trigonometric excosecant function#NEWLINE#----------------------------------------------------#NEWLINE#Inverse functions can be prefixed with ar or arc#NEWLINE#instead of a.#NEWLINE#" },
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -26,7 +26,7 @@
* http://sourceforge.net/projects/flexcat/
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -26,7 +26,7 @@
* http://sourceforge.net/projects/flexcat/
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+110 -106
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -26,7 +26,7 @@
* http://sourceforge.net/projects/flexcat/
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
@@ -46,114 +46,118 @@
#define INTROMSG (Program->Language->GetText(0))
#define STATEMENTLINE (Program->Language->GetText(1))
#define STATEMENTCLEAR (Program->Language->GetText(2))
#define STATEMENTDEF (Program->Language->GetText(3))
#define STATEMENTDELETE (Program->Language->GetText(4))
#define STATEMENTDIGITS (Program->Language->GetText(5))
#define STATEMENTEVAL (Program->Language->GetText(6))
#define STATEMENTEXECUTE (Program->Language->GetText(7))
#define STATEMENTFUNCS (Program->Language->GetText(8))
#define STATEMENTINPUT (Program->Language->GetText(9))
#define STATEMENTHELP (Program->Language->GetText(10))
#define STATEMENTOUTPUT (Program->Language->GetText(11))
#define STATEMENTLIST (Program->Language->GetText(12))
#define STATEMENTSHOW (Program->Language->GetText(13))
#define STATEMENTLOAD (Program->Language->GetText(14))
#define STATEMENTSAVE (Program->Language->GetText(15))
#define STATEMENTVARS (Program->Language->GetText(16))
#define STATEMENTVERSION (Program->Language->GetText(17))
#define STATEMENTMEMORY (Program->Language->GetText(18))
#define STATEMENTEXIT (Program->Language->GetText(19))
#define STATEMENTFOOTER (Program->Language->GetText(20))
#define TXTLISTDIRHEADER (Program->Language->GetText(21))
#define TXTLISTDIRTFILE (Program->Language->GetText(22))
#define TXTLISTDIRTDIR (Program->Language->GetText(23))
#define TXTLISTDIRTUNKNOWN (Program->Language->GetText(24))
#define TXTMEMBLOCKS (Program->Language->GetText(25))
#define TXTMEMSIZE (Program->Language->GetText(26))
#define TXTMEMMAXSIZE (Program->Language->GetText(27))
#define HELPNOHELP (Program->Language->GetText(28))
#define HELPSYNTAX (Program->Language->GetText(29))
#define HELPUERROR (Program->Language->GetText(30))
#define HELPVARNDEF (Program->Language->GetText(31))
#define HELPFUNNDEF (Program->Language->GetText(32))
#define HELPFUNRDEF (Program->Language->GetText(33))
#define HELPPNUMERA (Program->Language->GetText(34))
#define HELPPDIGITS (Program->Language->GetText(35))
#define HELPINPUSHOW (Program->Language->GetText(36))
#define HELPOUTPSHOW (Program->Language->GetText(37))
#define HELPINPUSETT (Program->Language->GetText(38))
#define HELPOUTPSETT (Program->Language->GetText(39))
#define HELPDIGISETT (Program->Language->GetText(40))
#define HELPDIGISHOW (Program->Language->GetText(41))
#define HELPVARSNDEF (Program->Language->GetText(42))
#define HELPFUNCNDEF (Program->Language->GetText(43))
#define HELPLOADSUCC (Program->Language->GetText(44))
#define HELPSAVESUCC (Program->Language->GetText(45))
#define HELPSAVEFAIL (Program->Language->GetText(46))
#define HELPSAVENOTH (Program->Language->GetText(47))
#define HELPPREFLOAD (Program->Language->GetText(48))
#define HELPPREFNOLO (Program->Language->GetText(49))
#define HELPPREFSAVE (Program->Language->GetText(50))
#define HELPPREFNOSA (Program->Language->GetText(51))
#define MSGNODIR (Program->Language->GetText(52))
#define MSGNOFILE (Program->Language->GetText(53))
#define STATEMENTABOUT (Program->Language->GetText(2))
#define STATEMENTCLEAR (Program->Language->GetText(3))
#define STATEMENTDEF (Program->Language->GetText(4))
#define STATEMENTDELETE (Program->Language->GetText(5))
#define STATEMENTDIGITS (Program->Language->GetText(6))
#define STATEMENTEVAL (Program->Language->GetText(7))
#define STATEMENTEXECUTE (Program->Language->GetText(8))
#define STATEMENTFUNCS (Program->Language->GetText(9))
#define STATEMENTINPUT (Program->Language->GetText(10))
#define STATEMENTHELP (Program->Language->GetText(11))
#define STATEMENTOUTPUT (Program->Language->GetText(12))
#define STATEMENTLIST (Program->Language->GetText(13))
#define STATEMENTSHOW (Program->Language->GetText(14))
#define STATEMENTLOAD (Program->Language->GetText(15))
#define STATEMENTSAVE (Program->Language->GetText(16))
#define STATEMENTVARS (Program->Language->GetText(17))
#define STATEMENTVERSION (Program->Language->GetText(18))
#define STATEMENTLICENSE (Program->Language->GetText(19))
#define STATEMENTMEMORY (Program->Language->GetText(20))
#define STATEMENTEXIT (Program->Language->GetText(21))
#define STATEMENTFOOTER (Program->Language->GetText(22))
#define TXTLISTDIRHEADER (Program->Language->GetText(23))
#define TXTLISTDIRTFILE (Program->Language->GetText(24))
#define TXTLISTDIRTDIR (Program->Language->GetText(25))
#define TXTLISTDIRTUNKNOWN (Program->Language->GetText(26))
#define TXTMEMBLOCKS (Program->Language->GetText(27))
#define TXTMEMSIZE (Program->Language->GetText(28))
#define TXTMEMMAXSIZE (Program->Language->GetText(29))
#define HELPNOHELP (Program->Language->GetText(30))
#define HELPSYNTAX (Program->Language->GetText(31))
#define HELPUERROR (Program->Language->GetText(32))
#define HELPVARNDEF (Program->Language->GetText(33))
#define HELPFUNNDEF (Program->Language->GetText(34))
#define HELPFUNRDEF (Program->Language->GetText(35))
#define HELPPNUMERA (Program->Language->GetText(36))
#define HELPPDIGITS (Program->Language->GetText(37))
#define HELPINPUSHOW (Program->Language->GetText(38))
#define HELPOUTPSHOW (Program->Language->GetText(39))
#define HELPINPUSETT (Program->Language->GetText(40))
#define HELPOUTPSETT (Program->Language->GetText(41))
#define HELPDIGISETT (Program->Language->GetText(42))
#define HELPDIGISHOW (Program->Language->GetText(43))
#define HELPVARSNDEF (Program->Language->GetText(44))
#define HELPFUNCNDEF (Program->Language->GetText(45))
#define HELPLOADSUCC (Program->Language->GetText(46))
#define HELPSAVESUCC (Program->Language->GetText(47))
#define HELPSAVEFAIL (Program->Language->GetText(48))
#define HELPSAVENOTH (Program->Language->GetText(49))
#define HELPPREFLOAD (Program->Language->GetText(50))
#define HELPPREFNOLO (Program->Language->GetText(51))
#define HELPPREFSAVE (Program->Language->GetText(52))
#define HELPPREFNOSA (Program->Language->GetText(53))
#define MSGNODIR (Program->Language->GetText(54))
#define MSGNOFILE (Program->Language->GetText(55))
static const textdef textdefs[] = {
{ 0, "#NORMALTEXT##BOLD##STARTMSG##NEWLINE##NORMALTEXT##COLOR02#Type help to show info.#NEWLINE#" }, /* INTROMSG */
{ 1, "------------------------------------------------------------#NEWLINE#" }, /* STATEMENTLINE */
{ 2, "clear Clear console window#NEWLINE#" }, /* STATEMENTCLEAR */
{ 3, "def Define function#NEWLINE#" }, /* STATEMENTDEF */
{ 4, "delete Delete variable or function#NEWLINE#" }, /* STATEMENTDELETE */
{ 5, "digits Set number of significant digits#NEWLINE#" }, /* STATEMENTDIGITS */
{ 6, "eval Evaluate arithmetic expression#NEWLINE#" }, /* STATEMENTEVAL */
{ 7, "execute Execute statements in a file#NEWLINE#" }, /* STATEMENTEXECUTE */
{ 8, "functions Show list of user defined functions#NEWLINE#" }, /* STATEMENTFUNCS */
{ 9, "input Change numeral input system#NEWLINE#" }, /* STATEMENTINPUT */
{ 10, "help Show basic help text#NEWLINE#" }, /* STATEMENTHELP */
{ 11, "output Change numeral output system#NEWLINE#" }, /* STATEMENTOUTPUT */
{ 12, "list Show content of a directory#NEWLINE#" }, /* STATEMENTLIST */
{ 13, "show Show content of a file#NEWLINE#" }, /* STATEMENTSHOW */
{ 14, "load Load variable and functions from file#NEWLINE#" }, /* STATEMENTLOAD */
{ 15, "save Save variable and functions to file#NEWLINE#" }, /* STATEMENTSAVE */
{ 16, "variables Show list of variables#NEWLINE#" }, /* STATEMENTVARS */
{ 17, "version Show version string#NEWLINE#" }, /* STATEMENTVERSION */
{ 18, "memory Show internal memory usage#NEWLINE#" }, /* STATEMENTMEMORY */
{ 19, "exit Exit program#NEWLINE#" }, /* STATEMENTEXIT */
{ 20, "The def and eval statements are optional. Functions and#NEWLINE#variables statements can be shorten to funcs and vars.#NEWLINE#" }, /* STATEMENTFOOTER */
{ 21, "Type Name#NEWLINE#--------------------------------------------------#NEWLINE#" }, /* TXTLISTDIRHEADER */
{ 22, "[file]" }, /* TXTLISTDIRTFILE */
{ 23, "[dir]" }, /* TXTLISTDIRTDIR */
{ 24, "[unknown]" }, /* TXTLISTDIRTUNKNOWN */
{ 25, "Allocated blocks:#SPACE#" }, /* TXTMEMBLOCKS */
{ 26, "Memory usage: #SPACE#" }, /* TXTMEMSIZE */
{ 27, "Maximum usage: #SPACE#" }, /* TXTMEMMAXSIZE */
{ 28, "No help is available for this topic.#NEWLINE#" }, /* HELPNOHELP */
{ 29, "Syntax error:#SPACE#" }, /* HELPSYNTAX */
{ 30, "Unexpected error:#SPACE#" }, /* HELPUERROR */
{ 31, "Variable is not defined:#SPACE#" }, /* HELPVARNDEF */
{ 32, "Function is not defined:#SPACE#" }, /* HELPFUNNDEF */
{ 33, "Function cannot be redefined:#SPACE#" }, /* HELPFUNRDEF */
{ 34, "Base value must be between 2 and 32:#SPACE#" }, /* HELPPNUMERA */
{ 35, "Number of digist must be between 0 and 15:#SPACE#" }, /* HELPPDIGITS */
{ 36, "Numeral input system is#SPACE#" }, /* HELPINPUSHOW */
{ 37, "Numeral output system is#SPACE#" }, /* HELPOUTPSHOW */
{ 38, "Input changed to#SPACE#" }, /* HELPINPUSETT */
{ 39, "Output changed to#SPACE#" }, /* HELPOUTPSETT */
{ 40, "Number of digits changed to#SPACE#" }, /* HELPDIGISETT */
{ 41, "Number of digits shown are#SPACE#" }, /* HELPDIGISHOW */
{ 42, "No variables are defined.#NEWLINE#" }, /* HELPVARSNDEF */
{ 43, "No functions are defined.#NEWLINE#" }, /* HELPFUNCNDEF */
{ 44, "Variable and functions loaded from file.#NEWLINE#" }, /* HELPLOADSUCC */
{ 45, "Variable and functions saved to file.#NEWLINE#" }, /* HELPSAVESUCC */
{ 46, "Cannot save to file.#NEWLINE#" }, /* HELPSAVEFAIL */
{ 47, "Nothing to save.#NEWLINE#" }, /* HELPSAVENOTH */
{ 48, "Preferences loaded.#NEWLINE#" }, /* HELPPREFLOAD */
{ 49, "Preferences could not be loaded.#NEWLINE#" }, /* HELPPREFNOLO */
{ 50, "Preferences saved to disk.#NEWLINE#" }, /* HELPPREFSAVE */
{ 51, "Preferences could not be saved.#NEWLINE#" }, /* HELPPREFNOSA */
{ 52, "Could not open directory:#SPACE#" }, /* MSGNODIR */
{ 53, "Cannot open file.#NEWLINE#" }, /* MSGNOFILE */
{ 2, "about Show about text#NEWLINE#" }, /* STATEMENTABOUT */
{ 3, "clear Clear console window#NEWLINE#" }, /* STATEMENTCLEAR */
{ 4, "def Define function#NEWLINE#" }, /* STATEMENTDEF */
{ 5, "delete Delete variable or function#NEWLINE#" }, /* STATEMENTDELETE */
{ 6, "digits Set number of significant digits#NEWLINE#" }, /* STATEMENTDIGITS */
{ 7, "eval Evaluate arithmetic expression#NEWLINE#" }, /* STATEMENTEVAL */
{ 8, "execute Execute statements in a file#NEWLINE#" }, /* STATEMENTEXECUTE */
{ 9, "functions Show list of user defined functions#NEWLINE#" }, /* STATEMENTFUNCS */
{ 10, "input Change numeral input system#NEWLINE#" }, /* STATEMENTINPUT */
{ 11, "help Show basic help text#NEWLINE#" }, /* STATEMENTHELP */
{ 12, "output Change numeral output system#NEWLINE#" }, /* STATEMENTOUTPUT */
{ 13, "list Show content of a directory#NEWLINE#" }, /* STATEMENTLIST */
{ 14, "show Show content of a file#NEWLINE#" }, /* STATEMENTSHOW */
{ 15, "load Load variable and functions from file#NEWLINE#" }, /* STATEMENTLOAD */
{ 16, "save Save variable and functions to file#NEWLINE#" }, /* STATEMENTSAVE */
{ 17, "variables Show list of variables#NEWLINE#" }, /* STATEMENTVARS */
{ 18, "version Show version string#NEWLINE#" }, /* STATEMENTVERSION */
{ 19, "license Show copyright and license texts#NEWLINE#" }, /* STATEMENTLICENSE */
{ 20, "memory Show internal memory usage#NEWLINE#" }, /* STATEMENTMEMORY */
{ 21, "exit Exit program#NEWLINE#" }, /* STATEMENTEXIT */
{ 22, "The def and eval statements are optional. Functions and#NEWLINE#variables statements can be shorten to funcs and vars.#NEWLINE#" }, /* STATEMENTFOOTER */
{ 23, "Type Name#NEWLINE#--------------------------------------------------#NEWLINE#" }, /* TXTLISTDIRHEADER */
{ 24, "[file]" }, /* TXTLISTDIRTFILE */
{ 25, "[dir]" }, /* TXTLISTDIRTDIR */
{ 26, "[unknown]" }, /* TXTLISTDIRTUNKNOWN */
{ 27, "Allocated blocks:#SPACE#" }, /* TXTMEMBLOCKS */
{ 28, "Memory usage: #SPACE#" }, /* TXTMEMSIZE */
{ 29, "Maximum usage: #SPACE#" }, /* TXTMEMMAXSIZE */
{ 30, "No help is available for this topic.#NEWLINE#" }, /* HELPNOHELP */
{ 31, "Syntax error:#SPACE#" }, /* HELPSYNTAX */
{ 32, "Unexpected error:#SPACE#" }, /* HELPUERROR */
{ 33, "Variable is not defined:#SPACE#" }, /* HELPVARNDEF */
{ 34, "Function is not defined:#SPACE#" }, /* HELPFUNNDEF */
{ 35, "Function cannot be redefined:#SPACE#" }, /* HELPFUNRDEF */
{ 36, "Base value must be between 2 and 32:#SPACE#" }, /* HELPPNUMERA */
{ 37, "Number of digist must be between 0 and 15:#SPACE#" }, /* HELPPDIGITS */
{ 38, "Numeral input system is#SPACE#" }, /* HELPINPUSHOW */
{ 39, "Numeral output system is#SPACE#" }, /* HELPOUTPSHOW */
{ 40, "Input changed to#SPACE#" }, /* HELPINPUSETT */
{ 41, "Output changed to#SPACE#" }, /* HELPOUTPSETT */
{ 42, "Number of digits changed to#SPACE#" }, /* HELPDIGISETT */
{ 43, "Number of digits shown are#SPACE#" }, /* HELPDIGISHOW */
{ 44, "No variables are defined.#NEWLINE#" }, /* HELPVARSNDEF */
{ 45, "No functions are defined.#NEWLINE#" }, /* HELPFUNCNDEF */
{ 46, "Variable and functions loaded from file.#NEWLINE#" }, /* HELPLOADSUCC */
{ 47, "Variable and functions saved to file.#NEWLINE#" }, /* HELPSAVESUCC */
{ 48, "Cannot save to file.#NEWLINE#" }, /* HELPSAVEFAIL */
{ 49, "Nothing to save.#NEWLINE#" }, /* HELPSAVENOTH */
{ 50, "Preferences loaded.#NEWLINE#" }, /* HELPPREFLOAD */
{ 51, "Preferences could not be loaded.#NEWLINE#" }, /* HELPPREFNOLO */
{ 52, "Preferences saved to disk.#NEWLINE#" }, /* HELPPREFSAVE */
{ 53, "Preferences could not be saved.#NEWLINE#" }, /* HELPPREFNOSA */
{ 54, "Could not open directory:#SPACE#" }, /* MSGNODIR */
{ 55, "Cannot open file.#NEWLINE#" }, /* MSGNOFILE */
{ -1, EMPTYSTRING }
};
+26 -8
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
@@ -57,11 +57,29 @@ void operator delete[] (void* ptr) { FreeMemSafe(ptr); }
/* GCC 3+ */
#if (__GNUC__ > 2)
/* C++11 */
#if __cplusplus > 199711L
#include <new>
void* operator new (size_t size) throw(std::bad_alloc) { return AllocMemSafe(size); }
void* operator new[] (size_t size) throw(std::bad_alloc) { return AllocMemSafe(size); }
void operator delete (void* ptr) throw() { FreeMemSafe(ptr); }
void operator delete[] (void* ptr) throw() { FreeMemSafe(ptr); }
void* operator new (std::size_t size) { return AllocMemSafe(size); }
void* operator new (std::size_t size, const std::nothrow_t& nothrow_value) noexcept { return AllocMemSafe(size); }
void* operator new[] (std::size_t size) { return AllocMemSafe(size); }
void* operator new[] (std::size_t size, const std::nothrow_t& nothrow_value) noexcept { return AllocMemSafe(size); }
void operator delete (void* ptr) noexcept { FreeMemSafe(ptr); }
void operator delete (void* ptr, const std::nothrow_t& nothrow_constant) noexcept { FreeMemSafe(ptr); }
void operator delete[] (void* ptr) noexcept { FreeMemSafe(ptr); }
void operator delete[] (void* ptr, const std::nothrow_t& nothrow_constant) noexcept { FreeMemSafe(ptr); }
#else
/* C++98 */
#include <new>
void* operator new (std::size_t size) throw (std::bad_alloc) { return AllocMemSafe(size); }
void* operator new (std::size_t size, const std::nothrow_t& nothrow_value) throw() { return AllocMemSafe(size); }
void* operator new[] (std::size_t size) throw (std::bad_alloc) { return AllocMemSafe(size); }
void* operator new[] (std::size_t size, const std::nothrow_t& nothrow_value) throw() { return AllocMemSafe(size); }
void operator delete (void* ptr) throw() { FreeMemSafe(ptr); }
void operator delete (void* ptr, const std::nothrow_t& nothrow_constant) throw() { FreeMemSafe(ptr); }
void operator delete[] (void* ptr) throw() { FreeMemSafe(ptr); }
void operator delete[] (void* ptr, const std::nothrow_t& nothrow_constant) throw() { FreeMemSafe(ptr); }
#endif
#endif
/* MSVC++ */
@@ -82,11 +100,11 @@ void WriteOutInt(int value) { printf("%i", value); }
int main(int argc, char** argv)
{
#if defined(WITHTEST)
if (argc == 2 && StrIsEqual(argv[1], "test"))
if (argc == 2 && StrIsEqual(argv[1], "--test"))
{
Program = new TestProgram(false);
}
else if (argc == 2 && StrIsEqual(argv[1], "testz"))
else if (argc == 2 && StrIsEqual(argv[1], "--testz"))
{
Program = new TestProgram(true);
}
+31 -17
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
@@ -79,17 +79,13 @@
https://github.com/rainlance/amath
\subsection download Download
Windows: http://amath.innolan.net/amath-1.8.0.zip <BR>
<BR>
FreeBSD: https://www.freshports.org/math/amath/ <BR>
<BR>
NetBSD: http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/math/amath/README.html <BR>
<BR>
Haiku: https://github.com/haikuports <BR>
<BR>
Included in the Icaros Desktop environment: http://vmwaros.blogspot.com/ <BR>
<BR>
Other packages: https://ranger.innolan.net/rainlance/amath/releases
FreeBSD: <a href="https://www.freshports.org/math/amath/">freshports.org</a><BR>
Haiku OS: <a href="https://depot.haiku-os.org/#!/pkg/amath/haikuports/1/8/3/-/1/x86_gcc2">depot.haiku-os.org</a><BR>
Mac OS X and Linux: <a href="https://pkgsrc.joyent.com">pkgsrc.joyent.com</a><<BR>
NetBSD: <a href="http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/math/amath/README.html">netbsd.org</a> and
<a href="http://pkgsrc.se/math/amath">pkgsrc.se</a><BR>
Windows: <a href="http://amath.innolan.net/amath-1.8.3-win.zip">amath.innolan.net</a><BR>
Other packages: <a href="http://ftp.innolan.net/pub/amath/">ftp.innolan.net</a>
\subsection history History
A full \ref release_page is available for amath.
@@ -98,6 +94,8 @@
\subsection command_stat Statements
\verbatim
about Show about text
clear Clear console window
def Define function
delete Delete variable or function
@@ -114,10 +112,11 @@
save Save variable and functions to file
variables Show list of variables
version Show version string
license Show copyright and license texts
memory Show internal memory usage
exit Exit program
\endverbatim
\subsection command_func Base functions
\subsection command_func Miscellaneous functions
\verbatim
abs Absolute value of number
sgn Mathematical signum function
@@ -225,7 +224,7 @@
\subsection license_bsd BSD License
<BLOCKQUOTE><PRE>
Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
Copyright (c) 2007 The NetBSD Foundation, Inc.
Copyright (c) 1990, 1993 The Regents of the University of California.
All rights reserved.
@@ -261,9 +260,24 @@
\page release_page Release history
\section release_sec Release history
\subsection version185 1.8.5 August 07 2018
- Fix build on compilers with broken endian detection.
\subsection version184 1.8.4 August 05 2018
- Ignore casing in hexadecimal numbers.
\subsection version183 1.8.3 July 21 2017
- Updated help texts and man page.
- Fixed bug in ANSI switch.
\subsection version182 1.8.2 July 14 2017
- MIPS support.
- Improved endianness detection.
- Fixed configuration errors.
\subsection version181 1.8.1 April 22 2017
- OpenBSD support
- Fixed Haiku bug
- OpenBSD support.
- Fixed Haiku bug.
\subsection version180 1.8.0 April 13 2017
- Fixed bugs in numeral systems.
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/

Some files were not shown because too many files have changed in this diff Show More