260 Commits

Author SHA1 Message Date
  Carsten Sonne Larsen 811644f4c7 Zero out allocated memory 9 months ago
  Carsten Sonne Larsen d7fe11d56a Take advantage of memory pools 9 months ago
  Carsten Sonne Larsen d7add409cd Identify systems more uniquely 9 months ago
  Carsten Sonne Larsen d910b98571 Cleanup and avoid OS conflicts (REQ #3) 9 months ago
  Carsten Sonne Larsen ea2bf72d7b MorphOS compatibility (REQ #4) 9 months ago
  Carsten Sonne Larsen e788fec496 ARexx only instance 9 months ago
  Carsten Sonne Larsen ffa586c694 Allow to quit console with CTRL + C 9 months ago
  Carsten Sonne Larsen 0240d3a439 Only show result when using ARexx 9 months ago
  Carsten Sonne Larsen 93c8fdbef4 To ensure compatibility, set fraction point to full stop / period 9 months ago
  Carsten Sonne Larsen dd7884bc22 Cleanup after building catalogs 9 months ago
  Carsten Sonne Larsen 65fafb750f Improved install script 9 months ago
  Carsten Sonne Larsen 2164e79aef Distribution files 9 months ago
  Carsten Sonne Larsen 87c65aa678 Include Debian build in source 9 months ago
  Carsten Sonne Larsen 2c9e8bece3 Update copyright text 9 months ago
  Carsten Sonne Larsen ee26a57960 Release 1.9.0 9 months ago
  Carsten Sonne Larsen 538ad4ac23 ARexx test script 9 months ago
  Carsten Sonne Larsen 524f83f22f Cleanup Amiga specific code 9 months ago
  Carsten Sonne Larsen 9e712377a4 Update copyright 9 months ago
  Carsten Sonne Larsen 6eb56b056e ARexx support 9 months ago
  Carsten Sonne Larsen 3a52c27a9c new AppendNumber method 9 months ago
  Carsten Larsen f8cf191a46 Fix PowerPC build 3 years ago
  Carsten Sonne Larsen aeb7f2e92c Detect system name 3 years ago
  Carsten Sonne Larsen 49b36ce2a3 Remove search option 3 years ago
  Carsten Sonne Larsen f7de7b1447 Update links 3 years ago
  Carsten Sonne Larsen d4ad72d17f Fix wrong year 3 years ago
  Carsten Sonne Larsen 8632644b9d Update to version 1.8.5 3 years ago
  Carsten Sonne Larsen 9c70be649b Fix build on compilers with broken endian detection 3 years ago
  Carsten Sonne Larsen fb19bb560d Fix GCC 7 warnings 3 years ago
  Carsten Sonne Larsen 527376a92a Merge branch 'master' of https://gitlab.com/rnger/amath 3 years ago
  Carsten Sonne Larsen 3ab6729951 Update version and help text 3 years ago
  Carsten Sonne Larsen 9153e78be8 Ignore zip files 3 years ago
  Carsten Sonne Larsen 434d4a72e2 Fix typecast warning 3 years ago
  Carsten Sonne Larsen be4b1e7fd6 Update test target 3 years ago
  Carsten Sonne Larsen 7a3cb4a2a1 Update to version 1.8.4 3 years ago
  Carsten Sonne Larsen b3d4d61e9d Support Visual Studio Code 3 years ago
  Carsten Sonne Larsen 4c6ae02156 Ignore casing in hexadecimal numbers 3 years ago
  Carsten Sonne Larsen 2a7b341c71 Support GCC 7 & C++11 3 years ago
  Carsten Sonne Larsen 1f5cbf5176 Ignore flexcat 3 years ago
  Carsten Sonne Larsen 8503f61eea Updated Copyright headers 3 years ago
  Carsten Sonne Larsen 970ae6456f Merge branch 'master' of https://gitlab.com/rnger/amath 4 years ago
  Carsten Sonne Larsen 56d9566000 rebase and change commit email to cs@innolan.net 4 years ago
  Carsten Sonne Larsen 16530a94d1 Merge branch 'master' of https://gitlab.com/rnger/amath 4 years ago
  Carsten Sonne Larsen 2e54fed094 Update headers 4 years ago
  Carsten Sonne Larsen 882eb43a4f Update headers 4 years ago
  Carsten Sonne Larsen f7881bb3c9 Update script 4 years ago
  Carsten Sonne Larsen 7114efc1cc Update script 4 years ago
  Carsten Sonne Larsen 350a8d82b9 Add debian build script 4 years ago
  Carsten Sonne Larsen e64c56123d Add debian build script 4 years ago
  Carsten Sonne Larsen 208a87640d Release 1.8.3 4 years ago
  Carsten Sonne Larsen 2cdc5b8aae Release 1.8.3 4 years ago
  Carsten Sonne Larsen 73d97e3229 Add more CC BY-SA texts 4 years ago
  Carsten Sonne Larsen b76a2dccc5 Add more CC BY-SA texts 4 years ago
  Carsten Sonne Larsen 08f5d5d870 Cleanup man page 4 years ago
  Carsten Sonne Larsen 656038d482 Cleanup man page 4 years ago
  Carsten Larsen 8bf9f941ed Cleanup help texts 4 years ago
  Carsten Larsen c625ec29f7 Cleanup help texts 4 years ago
  Carsten Larsen e5e70b5247 Include less common abbreviations 4 years ago
  Carsten Larsen 4aae661801 Include less common abbreviations 4 years ago
  Carsten Larsen a6d28448f6 Add known bugs 4 years ago
  Carsten Larsen 3f75c41166 Add known bugs 4 years ago
  Carsten Larsen 60df83a113 ANSI mode is alway changeable as default 4 years ago
  Carsten Larsen 51e6ece52d ANSI mode is alway changeable as default 4 years ago
  Carsten Larsen b4f29dc2de Stress with explicit in clang option 4 years ago
  Carsten Larsen 1a2ef9b018 Stress with explicit in clang option 4 years ago
  Carsten Larsen 012c0ee1a6 Cleanup history 4 years ago
  Carsten Larsen f78304c8e1 Fix build error in shared clib 4 years ago
  Carsten Larsen 9e2d708eb7 Allow man-dir and doc-dir while configuring 4 years ago
  Carsten Larsen 36fd6e090d Release 1.8.2 4 years ago
  Carsten Larsen 49b6ecd09d Update project homepage 4 years ago
  Carsten Larsen 4b44d05953 Improve endianness detection 4 years ago
  Carsten Larsen 263636bb04 Update release date 5 years ago
  Carsten Larsen 70c6ae9579 Hint GCC6 5 years ago
  Carsten Larsen 4085981ca7 Update changelog 5 years ago
  Carsten Larsen 69377b26ed Update release date 5 years ago
  Carsten Larsen 7431e61c3c Improved configuration 5 years ago
  Carsten Larsen e73cce1894 Fix haiku bug 5 years ago
  Carsten Larsen 2a00f9556d Fix clear statement 5 years ago
  Carsten Larsen a1b521840a Option for Position Independent Code 5 years ago
  Carsten Larsen 30a23a4e0f Bumped version 5 years ago
  Carsten Larsen 258188d994 Cleanup defines 5 years ago
  Carsten Larsen bf39a0c868 Release 1.8.0 5 years ago
  Carsten Larsen 0118d94326 Fix wrong version number 5 years ago
  Carsten Larsen f3dd6d8baa Release 1.7.1 5 years ago
  Carsten Larsen a301c85e15 Release 1.7.0 5 years ago
  Carsten Larsen 87f0d88b26 Fix Makefiles 5 years ago
  Carsten Larsen dd6e11cdb4 Prerelease 1.7.0 5 years ago
  Carsten Larsen 9144b77c70 Prerelease 1.7.0 5 years ago
  Carsten Larsen e7b46a06be Improved tests 5 years ago
  Carsten Larsen 8c1a88ebe7 Cleanup debug code 5 years ago
  Carsten Larsen 217d70e23a Fix file permissions 5 years ago
  Carsten Larsen 28c1559ed0 Fix typo 5 years ago
  Carsten Larsen dc26550dd5 Remove old build defs 5 years ago
  Carsten Larsen 397c6c37c9 Include test and install target 5 years ago
  Carsten Larsen dadd23aea8 Take advantage of exec 5 years ago
  Carsten Larsen 34c843f2b5 Fix build definitions 5 years ago
  Carsten Larsen 3483dd5283 Correct Debian version 5 years ago
  Carsten Larsen 667fe2baeb Release 1.6.4 5 years ago
  Carsten Larsen 88301bafc5 Fix MSVC++ memory allocation 5 years ago
  Carsten Larsen b896dab8a8 Update Makefile 5 years ago
  Carsten Larsen 818df0fc87 Fix 64 bit warnings 5 years ago
  Carsten Larsen d148be57b3 Remove old binaries 5 years ago
  Carsten Larsen e988bbbd9f Fix 64 bit alignment errors 5 years ago
  Carsten Larsen af7bf8a97a Fixed truncation bug 5 years ago
  Carsten Larsen a56173487f Release 1.6.3 5 years ago
  Carsten Larsen 62f29f1e0e Update change list 5 years ago
  Carsten Larsen aec499543d Fix Debian version number 5 years ago
  Carsten Larsen e10734c005 Haiku support 5 years ago
  Carsten Larsen abd4bb8929 Cleanup tests 5 years ago
  Carsten Larsen eb1d7f74e4 Add NetBSD link 5 years ago
  Carsten Larsen bd4baa277f Cleanup headers 5 years ago
  Carsten Larsen 3f94ebc6b0 Fix Debian build 5 years ago
  Carsten Larsen 11b4bdc70d Detect endianness for more CPUs 5 years ago
  Carsten Larsen 83760eb15a Test fraction point character 5 years ago
  Carsten Larsen 57e74e12b0 Debian multiarch support 5 years ago
  Carsten Larsen 1551700ec1 Debian build script 5 years ago
  Carsten Larsen 81ba8a83e2 Extend tests 5 years ago
  Carsten Larsen 5c041e7762 Update documentation 5 years ago
  Carsten Larsen dc5d092c4e Move documentation to own repository 5 years ago
  Carsten Larsen 7a63687d4b Prepare release 1.6.3 5 years ago
  Carsten Larsen 86d5a56fa7 Update scan-build report 5 years ago
  Carsten Larsen 848b9f1987 Improve error handling 5 years ago
  Carsten Larsen 8b81543eed Optimize for 64 bit PowerPC 5 years ago
  Carsten Larsen 2bbebe575f Fix typo 5 years ago
  Carsten Larsen 7d48450bbf Fix error in fraction point parsing 5 years ago
  Carsten Larsen b173f42b65 64 bit PowerPC detection 5 years ago
  Carsten Larsen 637b9396d9 Fix AROS build errors 5 years ago
  Carsten Larsen 3776c6e02e Update documentation 5 years ago
  Carsten Larsen c53ef12905 Add Icaros Desktop top distributions 5 years ago
  Carsten Larsen b3ac61bae3 Documentation cleanup 5 years ago
  Carsten Larsen d134ad9765 Documentation cleanup 5 years ago
  Carsten Larsen 9e2c66af53 Update documentation 5 years ago
  Carsten Larsen 1392de9ad7 Windows 1.6.2 binaries 5 years ago
  Carsten Larsen 7e218a1b70 Update to version 1.6.2 5 years ago
  Carsten Larsen 4c25f8d2fb Native character input 5 years ago
  Carsten Larsen 543f813251 Update build definitions 5 years ago
  Carsten Larsen bdae119905 Update version texts 5 years ago
  Carsten Larsen a16a3b7419 Simplify memory allocation 5 years ago
  Carsten Larsen 9ebb77637f Update documentation 5 years ago
  Carsten Larsen 95057d82db Fix newline in Windows test 5 years ago
  Carsten Larsen 75c588f51b 64 bit Windows support 5 years ago
  Carsten Larsen 462ea4ceba 64 bit support on Windows 5 years ago
  Carsten Larsen 672712ab49 Cleanup Visual Studio structure 5 years ago
  Carsten Larsen ab0c5db51d Cleanup Visual Studio structure 5 years ago
  Carsten Larsen b85a008fb2 Updated broken links 5 years ago
  Carsten Larsen 40cc850093 64 bit optimizations 5 years ago
  Carsten Larsen afbfd236a4 Clarify source origin 5 years ago
  Carsten Larsen 25c618d57f arm 64 bit support 5 years ago
  Carsten Larsen 4aefa785ad ARM support 5 years ago
  Carsten Larsen 957355545e Fixed broken link 5 years ago
  Carsten Larsen 927fc656dd Release 1.6.1 5 years ago
  Carsten Larsen f1e2979d7a Update documentation 5 years ago
  Carsten Larsen d7eca35395 Update documentation 5 years ago
  Carsten Larsen 281317d503 Disable language on Windows 5 years ago
  Carsten Larsen 3ae8e58f2b Prepare release 5 years ago
  Carsten Larsen f4d99b69de Update documentation 5 years ago
  Carsten Larsen bcb3611f14 Update documentation 5 years ago
  Carsten Larsen ded1be8026 Documentation 5 years ago
  Carsten Larsen b402fff504 Update makefile 5 years ago
  Carsten Larsen a1a5aea15e Fix potential memory leak 5 years ago
  Carsten Larsen aff002dbda scan-build results 5 years ago
  Carsten Larsen 259f73d19e Fix Microsoft Visual C++ version string 5 years ago
  Carsten Larsen 41ae34644d Simplify test 5 years ago
  Carsten Larsen e83f879211 Updated toolset 5 years ago
  Carsten Larsen 70fee59186 Updated Copyright text 5 years ago
  Carsten Larsen 79c0de3575 Fix GCC compiler error 5 years ago
  Carsten Larsen 441bed5c99 Fix GCC 2.x compiler error 5 years ago
  Carsten Larsen 910b5a7cd9 Fix AmigaOS build 5 years ago
  Carsten Larsen a08d724997 Include copyright text 5 years ago
  Carsten Larsen bc94803f91 Compiler version string 5 years ago
  Carsten Larsen 2b786bef20 clang support 5 years ago
  Carsten Larsen cbb6c747f6 Fix method signature 5 years ago
  Carsten Larsen 65f9d88562 Use correct deallocator 5 years ago
  Carsten Larsen 4ea2b3af84 Code cleanup 5 years ago
  Carsten Larsen 340a99d861 Updated readme 5 years ago
  Carsten Sonne Larsen 3ea3222b91 Added build dependecy 6 years ago
  Carsten Sonne Larsen 0651330e08 Cleanup 6 years ago
  Carsten Sonne Larsen 3010a67d7f Fixed memory bug 6 years ago
  Carsten 4228b95303 Fixed hardcoded local 6 years ago
  llsth bf8cc0b222 Basic implementation of POSIX localization 7 years ago
  llsth ffe9553471 Merge branch 'master' of https://github.com/llsth/amath 7 years ago
  llsth b711e8aeab Added text author 7 years ago
  Carsten Sonne Larsen 1752f2c546 Update README.md 7 years ago
  llsth 2478847bd9 Clarified license details 7 years ago
  llsth b26c5c81c9 Clarified license details 7 years ago
  llsth e310c982d0 Clarified license details 7 years ago
  llsth 9780e8b1c5 Clarified license details 7 years ago
  llsth 617a418a91 Clarified license details 7 years ago
  llsth 0760eaa798 Clarified license details 7 years ago
  llsth 28b94bfaf4 Win32 texts 7 years ago
  llsth e00ce964ae Win32 fixes 7 years ago
  llsth 9d85d4c699 Updated Makefile 7 years ago
  llsth cba2829664 Fixed AmigaOS build 7 years ago
  llsth 7bb7b4e955 Localization on Standard C platforms 7 years ago
  llsth f9a09c4bad Bugfixes 7 years ago
  llsth 390ff27017 Updated catalog text 7 years ago
  llsth b5ca35438d Fixed read of wrong address in empty strings 7 years ago
  llsth 2adc0edd4c Fixed wrong memory management with new 7 years ago
  llsth 37d2ba4794 Updated catalogs 7 years ago
  llsth a633d5d06a Updated README.md 7 years ago
  llsth be6681d3f0 Fixed memory bug 7 years ago
  llsth b3753232f2 Implemented localized keywords 7 years ago
  llsth fa1f153127 Updated project files 7 years ago
  llsth 4c512addad Updated make logic 7 years ago
  llsth 2f28be077b Moved catalog generation files 7 years ago
  llsth af1681cc87 localized keywords 7 years ago
  llsth 9121566b52 Included catalog and dist targets 7 years ago
  llsth 26eb3d5cda Changed to buffered output 7 years ago
  llsth 385073a256 Updated national letters 7 years ago
  llsth 58121f8c01 Update catalog generation 7 years ago
  llsth b35b9acde3 Updated language descriptions 7 years ago
  llsth f30729980e Alias in function help 7 years ago
  llsth 194830b64c Updated descriptions 7 years ago
  llsth 12657aab90 Updated descriptions 7 years ago
  llsth 6af581bbe4 Removed needless delimiters 7 years ago
  Carsten Sonne Larsen c325bd29bc Fixes spelling mistakes 7 years ago
  llsth 9cb7ef34a8 Initial commit 7 years ago
  llsth 449e0c8473 Initial language support 7 years ago
  llsth 4a0cba78cc Updated version info 7 years ago
  llsth 048f20a717 Minor bugfixes 7 years ago
  llsth 9a7af719d6 Minor bugfixes 7 years ago
  llsth 76c315bfd0 Changed faulty language logic 7 years ago
  llsth 6b4ae56c8a Updated with configure 7 years ago
  llsth c647e003d2 Updated with configure 7 years ago
  llsth c27ee67707 Updated with configure 7 years ago
  llsth f1bcdda6dc Adjusted localization 7 years ago
  llsth 5b851eee7c Fixed localization bug 7 years ago
  llsth 8624d62494 Updated catalog keys 7 years ago
  llsth 5886946f1d Basic multilingual support 7 years ago
  llsth 9d2de4b700 Included flexcat in Makefile 7 years ago
  llsth 4efc38b6b8 Accept newline as delimiter 7 years ago
  llsth f29f311ff6 Cleaned up in platform defs 7 years ago
  llsth 05efc36c6f Fixes in preferences 7 years ago
  llsth d7f8c6cbd3 Cleaned up definitions 7 years ago
  llsth c80e7c0101 Cleaned up definitions 7 years ago
  llsth f445eef190 Fixed wrong debug comparison 7 years ago
  llsth e45fae685c Fixed memory leak 7 years ago
  llsth 2c2671df31 Clean up in cross compilation 7 years ago
  llsth c918ff89e8 Fixed GCC define 7 years ago
  llsth 00acfc11e7 clean up defines 7 years ago
  llsth bcf936f4a8 License clean up 7 years ago
  llsth 280e020a20 pragma clean up 7 years ago
  llsth 5cc10f9e38 Removed GPL licensed file 7 years ago
  llsth 10860fb996 Fixed AmigaOS 3 defines 7 years ago
  llsth e73a42b69a Support for Visual Studio 7 years ago
  llsth e8b7ad9720 Support for Visual Studio 7 years ago
  llsth a99e32c5df Removed text under wrong license 7 years ago
  llsth bc4d88d894 Updated license details 7 years ago
  carsten da3ea85e80 Cross-compiler changes 7 years ago
  llsth d7b73eb2d2 Fixed AROS typecasting 7 years ago
  llsth 7b88f3119c Uncommented unfinished code 7 years ago
  llsth c19d50f03e Removed deprecated files 7 years ago
  llsth 89f78a5cdc amath-1.6.0 initial commit 7 years ago
  llsth 3ab236f0b0 Included MorphOS patch 7 years ago
  llsth 2ee6693905 Included MorphOS patch 7 years ago
  Carsten Sonne Larsen cef3b88d61 Update README.md 7 years ago
  Carsten Sonne Larsen 1ca6893513 Update README.md 7 years ago
  Carsten Sonne Larsen 02deed1853 Update README.md 7 years ago
  Carsten Sonne Larsen a60b55e01b Update README.md 7 years ago
  Carsten Sonne Larsen 904620e599 Update HISTORY 7 years ago
  Carsten Sonne Larsen b077d77668 Update README.md 7 years ago
448 changed files with 3087 additions and 1812 deletions
Split View
  1. +3
    -0
      .gitignore
  2. +19
    -0
      .vscode/c_cpp_properties.json
  3. +12
    -0
      .vscode/keybindings.json
  4. +27
    -0
      .vscode/launch.json
  5. +19
    -0
      .vscode/settings.json
  6. +51
    -0
      .vscode/tasks.json
  7. +14
    -1
      HISTORY
  8. +1
    -1
      LICENSE
  9. +1
    -1
      README
  10. +1
    -1
      README.md
  11. +92
    -56
      amath.1
  12. +3
    -3
      amath.doxygen
  13. +4
    -0
      arexx/test.rx
  14. +166
    -0
      bin/amath.doc
  15. +41
    -0
      bin/amath.readme
  16. BIN
      bin/catalog/english.info
  17. BIN
      bin/prog/Catalog.info
  18. BIN
      bin/prog/HISTORY.info
  19. BIN
      bin/prog/LICENSE.info
  20. BIN
      bin/prog/Script.info
  21. BIN
      bin/prog/Test.info
  22. BIN
      bin/prog/amath.020.info
  23. BIN
      bin/prog/amath.030.info
  24. BIN
      bin/prog/amath.doc.info
  25. BIN
      bin/prog/amath.info
  26. BIN
      bin/root/amath.info
  27. BIN
      bin/script/complex1.info
  28. BIN
      bin/script/complex2.info
  29. BIN
      bin/script/complex3.info
  30. BIN
      bin/script/function1.info
  31. BIN
      bin/script/function2.info
  32. BIN
      bin/script/function3.info
  33. BIN
      bin/script/operators.info
  34. BIN
      bin/script/userfuncs.info
  35. BIN
      bin/script/variables.info
  36. +32
    -0
      build/doc
  37. +141
    -0
      builddeb
  38. +46
    -26
      builddebdev
  39. +88
    -27
      builddist
  40. +13
    -7
      buildsrc
  41. +7
    -1
      buildwin
  42. +5
    -5
      catalog/english/amath-help.ct
  43. +23
    -19
      catalog/english/amath-ident.ct
  44. +10
    -6
      catalog/english/amath-text.ct
  45. +15
    -14
      configure
  46. +100
    -84
      src/amath.h
  47. +2
    -2
      src/amathc.h
  48. +2
    -2
      src/amatht.h
  49. +2
    -2
      src/clib/alloccpy.c
  50. +51
    -51
      src/clib/amathc.3
  51. +2
    -2
      src/clib/amathc.dox
  52. +1
    -1
      src/clib/amathc.pc
  53. +77
    -39
      src/clib/mem.c
  54. +2
    -2
      src/clib/memset.c
  55. +2
    -2
      src/clib/strcmp.c
  56. +2
    -2
      src/clib/strlen.c
  57. +2
    -2
      src/clib/untag.c
  58. +178
    -178
      src/cplex/amathi.3
  59. +2
    -2
      src/cplex/amathi.dox
  60. +1
    -1
      src/cplex/amathi.pc
  61. +2
    -2
      src/cplex/cacos.c
  62. +2
    -2
      src/cplex/cacosh.c
  63. +2
    -2
      src/cplex/cacot.c
  64. +2
    -2
      src/cplex/cacoth.c
  65. +2
    -2
      src/cplex/cacsc.c
  66. +2
    -2
      src/cplex/cacsch.c
  67. +2
    -2
      src/cplex/casec.c
  68. +2
    -2
      src/cplex/casech.c
  69. +2
    -2
      src/cplex/casin.c
  70. +2
    -2
      src/cplex/casinh.c
  71. +2
    -2
      src/cplex/catan.c
  72. +2
    -2
      src/cplex/catanh.c
  73. +2
    -2
      src/cplex/ccbrt.c
  74. +2
    -2
      src/cplex/ccos.c
  75. +2
    -2
      src/cplex/ccosh.c
  76. +2
    -2
      src/cplex/ccot.c
  77. +2
    -2
      src/cplex/ccoth.c
  78. +2
    -2
      src/cplex/ccsc.c
  79. +2
    -2
      src/cplex/ccsch.c
  80. +2
    -2
      src/cplex/cexp.c
  81. +2
    -2
      src/cplex/clog.c
  82. +2
    -2
      src/cplex/clog10.c
  83. +2
    -2
      src/cplex/clogb.c
  84. +2
    -2
      src/cplex/cpow.c
  85. +2
    -2
      src/cplex/csec.c
  86. +2
    -2
      src/cplex/csech.c
  87. +2
    -2
      src/cplex/csgn.c
  88. +2
    -2
      src/cplex/csin.c
  89. +2
    -2
      src/cplex/csinh.c
  90. +2
    -2
      src/cplex/csqrt.c
  91. +2
    -2
      src/cplex/ctan.c
  92. +2
    -2
      src/cplex/ctanh.c
  93. +2
    -2
      src/cplex/prim.c
  94. +2
    -2
      src/cplex/prim.h
  95. +4
    -4
      src/lib/aengine.cpp
  96. +2
    -2
      src/lib/aengine.h
  97. +1
    -1
      src/lib/amatha.pc
  98. +2
    -2
      src/lib/bigint.cpp
  99. +2
    -2
      src/lib/bigint.h
  100. +71
    -24
      src/lib/charbuf.cpp

+ 3
- 0
.gitignore View File

@ -11,7 +11,10 @@ amath
amath-test
catalog/flexcat
catalog/flexcat/flexcat
build/flexcat/flexcat
*_.3
doxygen.warn
*.deb
*.zip
Makefile
/dist

+ 19
- 0
.vscode/c_cpp_properties.json View File

@ -0,0 +1,19 @@
{
"configurations": [
{
"name": "amiga",
"includePath": [
"/opt/amiga/m68k-amigaos/ndk-include/",
"/opt/amiga/m68k-amigaos/clib2/include/",
"${workspaceFolder}/src/lib/"
],
"defines": ["AMIGA"],
"compilerPath": "/opt/amiga/bin/m68k-amigaos-gcc",
"cStandard": "c99",
"cppStandard": "c++98",
"intelliSenseMode": "${default}",
"compilerArgs": []
}
],
"version": 4
}

+ 12
- 0
.vscode/keybindings.json 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
- 0
.vscode/launch.json 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
- 0
.vscode/settings.json 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
- 0
.vscode/tasks.json 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"
}
}
]
}

+ 14
- 1
HISTORY View File

@ -1,5 +1,18 @@
amath release history
v1.9.0 January 11 2021
- AmigaOS ARexx interface.
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.
@ -98,7 +111,7 @@ v1.5.3 October 26 2014
v1.5.2 October 11 2014
- Modified character handling code to comply with licenses.
- Modified complex math code to comply with licenses.
- Modified code base to work with Kickstart 2.04.
- Modified code base to work with Kickstart 2.04.
- Square root of negative numbers now yields correct result.
- Implemented scientific notation of numbers.
- Infinity is now shown in division with 0.


+ 1
- 1
LICENSE View File

@ -1,5 +1,5 @@
Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
Copyright (c) 2014-2021 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
README View File

@ -26,4 +26,4 @@ Show version string:
> amath version
Run regression tests:
> amath test
> amath --test

+ 1
- 1
README.md 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

+ 92
- 56
amath.1 View File

@ -1,6 +1,6 @@
.\" Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
.\" Copyright (c) 2014-2021 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:
@ -9,7 +9,7 @@
.\" 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 ``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.
@ -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.2" "July 14 2017"
.TH amath 1 "Version 1.9.0" "January 11 2021"
.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
.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
\fIhttps://gitlab.com/rnger/amath/issues\fR.
.SH HOMEPAGE
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. 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>
.br
Copyright (c) 1990, 1993 The Regents of the University of California
.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.

+ 3
- 3
amath.doxygen View File

@ -1,7 +1,7 @@
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = "amath"
PROJECT_NUMBER = "1.8.2"
PROJECT_NUMBER = "1.9.0"
PROJECT_BRIEF = "Simple command line calculator"
PROJECT_LOGO =
OUTPUT_DIRECTORY = ../amath-doc
@ -156,12 +156,12 @@ EXT_LINKS_IN_WINDOW = NO
FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
USE_MATHJAX = NO
SEARCHENGINE = YES
SEARCHENGINE = NO
SERVER_BASED_SEARCH = NO
EXTERNAL_SEARCH = NO
SEARCHDATA_FILE = searchdata.xml
GENERATE_MAN = YES
GENERATE_MAN = NO
MAN_OUTPUT = man
MAN_EXTENSION = .3
MAN_SUBDIR =


+ 4
- 0
arexx/test.rx View File

@ -0,0 +1,4 @@
/* Test program */
Options RESULTS
Address AMATH.1 '1.1+1.8'
SAY (RESULT)

+ 166
- 0
bin/amath.doc View File

@ -0,0 +1,166 @@
NAME
amath - Simple command line calculator
SYNOPSIS
[ --noansi ] [ --shell | expression ]
DESCRIPTION
amath 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.
OPTIONS
--noansi
Disable output of ANSI escape codes. Default is enable.
--shell
Open an interactive shell.
OPERATORS
+ Mathematical addition
- Mathematical subtraction
* Mathematical multiplication
/ Mathematical division
^ Mathematical exponentiation
= Assignment of variable values
| Absolute value of number
VARIABLES AND CONSTANT
pi Trigonometric constant
e Euler's number
i Imaginary unit
ins Result of last calculation
MISCELLANEOUS FUNCTIONS
abs Absolute value of number
sgn Mathematical signum function
round Round to nearest integer number
trunc Discard fraction part of number
floor Mathematical floor function
ceil Mathematical ceiling function
sqrt Square root function (exp 1/2)
cbrt Cube root function (exp 1/3)
lb Binary logarithm function (base 2)
ln Natural logarithm function (base e)
lg Common logarithm function (base 10)
TRIGONOMETRIC FUNCTIONS
sin Trigonometric sine function
cos Trigonometric cosine function
tan Trigonometric tangent function
cot Trigonometric cotangent function
sec Trigonometric secant function
csc Trigonometric cosecant function
crd Trigonometric chord function
exsec Trigonometric exsecant function
excsc Trigonometric excosecant function
arcsin Inverse trigonometric sine function
arccos Inverse trigonometric cosine function
arctan Inverse trigonometric tangent function
arccot Inverse trigonometric cotangent function
arcsec Inverse trigonometric secant function
arccsc Inverse trigonometric cosecant function
arccrd Inverse trigonometric chord function
arcexsec Inverse trigonometric exsecant function
arcexcsc Inverse trigonometric excosecant function
HYPERBOLIC FUNCTIONS
sinh Hyperbolic sine function
cosh Hyperbolic cosine function
tanh Hyperbolic tangent function
coth Hyperbolic cotangent function
sech Hyperbolic secant function
csch Hyperbolic cosecant function
arcsinh Inverse hyperbolic sine function
arccosh Inverse hyperbolic cosine function
arctanh Inverse hyperbolic tangent function
arccoth Inverse hyperbolic cotangent function
arcsech Inverse hyperbolic secant function
arccsch Inverse hyperbolic cosecant function
EARLY TRIGONOMETRIC FUNCTIONS
ver Versed sine function
vcs Versed cosine function
cvs Coversed sine function
cvc Coversed cosine function
hv Haversed sine function
hvc Haversed cosine function
hcv Hacoversed sine function
hcc Hacoversed cosine function
arcver Inverse versed sine function
arcvcs Inverse versed cosine function
arccvs Inverse coversed sine function
arccvc Inverse coversed cosine function
archv Inverse haversed sine function
archvc Inverse haversed cosine function
archcv Inverse hacoversed sine function
archcc Inverse hacoversed cosine function
STATEMENTS
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
EXIT STATUS
amath exits 0 on success and >0 if an error occurs.
EXAMPLES
Add two numbers:
$ amath 1.3 + 2.6
Find cosine of pi/2:
$ amath "cos(pi/2)"
Find square root of minus 25:
$ amath "sqrt(-25)"
Show only 5 digits in the result of a division:
$ amath "digits 5;34/11"
Script block with functions:
round(1.5461);round(-1.5461);
ceil(43.5461);ceil(-43.5461);
floor(39.9531);floor(-39.9531);
trunc(23.827);trunc(-23.827);
sqrt(100);sqrt(52.23);
Script block with user defined functions:
f(x)=x*2+1;
g(y)=y^2+y*1.5+2;
a=2;b=3;c=a+b;
f(2.2);c+1.1;
BUGS
Please report any other bugs that you encounter via:
https://gitlab.com/rnger/amath/issues.
HOMEPAGE
https://amath.innolan.net/
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.
January 11 2021 Version 1.9.0

+ 41
- 0
bin/amath.readme View File

@ -0,0 +1,41 @@
Short: Simple command line calculator
Author: Carsten Larsen
Uploader: carsten.larsen@mail.com
Type: misc/math
Version: 1.9.0
Architecture: m68k-amigaos >= 2.04
URL: https://amath.innolan.net
Features
========
- Case sensitive command line interface
- Native IEEE 754 with 15 significant digits
- Calculations with real and complex numbers
- Variables and user defined functions
- Logarithmic and exponential functions
- Trigonometric and hyperbolic functions
- Mathematical constants and rounding functions
- Disk functions to load, save and view content
- Comprehensive and easy to use builtin help
- Optimized 68000, 68020 and 68030 versions
- Unlimited number of ARexx interfaces
- Freely distributable sources (BSD license)
Usage
=====
Open amath in its own window:
> amath
Do a calculation in shell:
> amath 1.2+1.4
Get an interactive prompt in shell:
> amath shell
Show version string:
> amath version
Run regression tests:
> amath --test

BIN
bin/catalog/english.info View File


BIN
bin/prog/Catalog.info View File


BIN
bin/prog/HISTORY.info View File


BIN
bin/prog/LICENSE.info View File


BIN
bin/prog/Script.info View File


BIN
bin/prog/Test.info View File


BIN
bin/prog/amath.020.info View File


BIN
bin/prog/amath.030.info View File


BIN
bin/prog/amath.doc.info View File


BIN
bin/prog/amath.info View File


BIN
bin/root/amath.info View File


BIN
bin/script/complex1.info View File


BIN
bin/script/complex2.info View File


BIN
bin/script/complex3.info View File


BIN
bin/script/function1.info View File


BIN
bin/script/function2.info View File


BIN
bin/script/function3.info View File


BIN
bin/script/operators.info View File


BIN
bin/script/userfuncs.info View File


BIN
bin/script/variables.info View File


+ 32
- 0
build/doc View File

@ -0,0 +1,32 @@
#! /bin/sh
# This file is in the public domain, so clarified as of
# 2009-05-17 by Arthur David Olson.
# Tell groff not to emit SGR escape sequences (ANSI color escapes).
GROFF_NO_SGR=1
export GROFF_NO_SGR
echo ".am TH
.hy 0
.na
..
.rm }H
.rm }F" | nroff -man - ${1+"$@"} | perl -ne '
binmode STDIN, '\'':encoding(utf8)'\'';
binmode STDOUT, '\'':encoding(utf8)'\'';
chomp;
s/.\010//g;
s/\s*$//;
if (/^$/) {
$sawblank = 1;
next;
} else {
if ($sawblank && $didprint) {
print "\n";
$sawblank = 0;
}
print "$_\n";
$didprint = 1;
}
'

+ 141
- 0
builddeb View File

@ -0,0 +1,141 @@
#!/bin/sh
#
# Copyright {c} 2014-2021 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.9.0"
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-2021 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

+ 46
- 26
builddebdev View File

@ -1,13 +1,44 @@
#!/bin/sh
#
# Copyright {c} 2014-2021 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.2"
version="1.9.0"
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,7 +126,7 @@ 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"
@ -115,9 +147,9 @@ 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: https://amath.innolan.net"
echo
echo
echo "Files: *"
echo "Copyright: 2014-2017 Carsten Sonne Larsen <cs@innolan.net>"
echo "Copyright: 2014-2021 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}"


+ 88
- 27
builddist View File

@ -1,67 +1,128 @@
#!/bin/sh
#
# Build Classic AmigaOS distribtion package
# This file is public domain
#
# Project homepage:
# https://amath.innolan.net
#
# Add compiler path before invoking. Fx:
# export PATH="/opt/m68k-amigaos/bin/:$PATH"
set -e
rm -f amath.lha
rm -Rf amath
rm -Rf dist
mkdir dist
distdir="dist"
builddir="tmp"
bindir="bin"
stamp="202101120000"
rm -Rf ${distdir}
rm -Rf ${builddir}
mkdir -p ${builddir}
# Build binaries
./configure --disable-test --disable-pic --cross-compile="m68k-amigaos" CFLAGS="-m68000 -noixemul"
make clean
make static
mv amath dist/amath.000
mv amath ${builddir}/amath
make clean
./configure --disable-test --disable-pic --cross-compile="m68k-amigaos" CFLAGS="-m68020 -noixemul"
make static
mv amath dist/amath.020
mv amath ${builddir}/amath.020
make clean
./configure --disable-test --disable-pic --cross-compile="m68k-amigaos" CFLAGS="-m68030 -noixemul"
make static
mv amath dist/amath.030
mv amath ${builddir}/amath.030
make clean
# Build test binaries
./configure --enable-test --disable-pic --cross-compile="m68k-amigaos" CFLAGS="-m68000 -noixemul"
make static
mv amath dist/amath-test.000
mv amath ${builddir}/amath-test
make clean
./configure --enable-test --disable-pic --cross-compile="m68k-amigaos" CFLAGS="-m68020 -noixemul"
make static
mv amath dist/amath-test.020
mv amath ${builddir}/amath-test.020
make clean
./configure --enable-test --disable-pic --cross-compile="m68k-amigaos" CFLAGS="-m68030 -noixemul"
make static
mv amath dist/amath-test.030
mv amath ${builddir}/amath-test.030
make clean
cd dist
# Build catalogs
make catalogs
make clean
# Build documentation
#./build/doc >${builddir}/amath.doc amath.1
groff >${builddir}/amath.html amath.1 -mandoc -Thtml
# Generate hashkeys
cd ${builddir}
touch hashkeys
sha1sum amath.000 >>hashkeys
sha1sum amath >>hashkeys
sha1sum amath.020 >>hashkeys
sha1sum amath.030 >>hashkeys
sha1sum amath-test.000 >>hashkeys
sha1sum amath-test >>hashkeys
sha1sum amath-test.020 >>hashkeys
sha1sum amath-test.030 >>hashkeys
sha256sum amath.000 >>hashkeys
sha256sum amath >>hashkeys
sha256sum amath.020 >>hashkeys
sha256sum amath.030 >>hashkeys
sha256sum amath-test.000 >>hashkeys
sha256sum amath-test >>hashkeys
sha256sum amath-test.020 >>hashkeys
sha256sum amath-test.030 >>hashkeys
cd ..
make catalogs
cp LICENSE dist/
cp HISTORY dist/
# Build distribution directory structure
mkdir -m 775 ${distdir}
mkdir -m 775 ${distdir}/amath
mkdir -m 775 ${distdir}/amath/ARexx
mkdir -m 775 ${distdir}/amath/Catalog
mkdir -m 775 ${distdir}/amath/Catalog/english
mkdir -m 775 ${distdir}/amath/Script
mkdir -m 775 ${distdir}/amath/Test
# Install icons
install -m 664 ${bindir}/root/*.info ${distdir}/
install -m 664 ${bindir}/prog/*.info ${distdir}/amath/
install -m 664 ${bindir}/catalog/*.info ${distdir}/amath/Catalog/
install -m 664 ${bindir}/script/*.info ${distdir}/amath/Script/
# Install documentation
install -m 664 HISTORY ${distdir}/amath/
install -m 664 LICENSE ${distdir}/amath/
install -m 664 ${builddir}/hashkeys ${distdir}/amath/
install -m 664 ${builddir}/amath.html ${distdir}/amath/
install -m 664 ${bindir}/amath.doc ${distdir}/amath/
install -m 664 ${bindir}/amath.readme ${distdir}/amath/
# Install scripts
install -m 755 arexx/* ${distdir}/amath/ARexx/
install -m 755 script/* ${distdir}/amath/Script/
# Install binaries
install -m 755 ${builddir}/amath ${distdir}/amath/
install -m 755 ${builddir}/amath.020 ${distdir}/amath/
install -m 755 ${builddir}/amath.030 ${distdir}/amath/
install -m 755 ${builddir}/amath-test ${distdir}/amath/Test/
install -m 755 ${builddir}/amath-test.020 ${distdir}/amath/Test/
install -m 755 ${builddir}/amath-test.030 ${distdir}/amath/Test/
# Install catalogs
install -m 755 distcat/catalog/english/*.catalog ${distdir}/amath/Catalog/english/
# Sign build with date
date -Ru >${distdir}/amath/build_date
#uname -srmo >${distdir}/amath/build_host
mkdir dist/script
cp script/* dist/script/
date -Ru >dist/build_date
#uname -srmo >dist/build_host
for f in $(find ${distdir} -name '*'); do touch -amt ${stamp}.00 $f; done
mv dist amath
#lha-ac a amath.lha amath
# Cleanup
rm -Rf distcat
rm -Rf ${builddir}
# GCC 6.x
#./configure --enable-test --cross-compile="/opt/m68k-amigaos6/bin/m68k-amigaos" CFLAGS="-m68000 -noixemul" LDFLAGS="-Xlinker --allow-multiple-definition"
#make static
# Install source
./buildsrc
mv amath-1.9.0 ${distdir}/

+ 13
- 7
buildsrc View File

@ -1,16 +1,21 @@
#! /bin/sh
#!/bin/sh
#
# Build source distribtion package
# 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.2'
stamp="201704220000"
#stamp="201704110000"
srcdir="amath-rc"
version='1.9.0'
stamp="202101120000"
srcdir="."
distdir="amath-${version}"
cd ..
rm -f amath-${version}.tar.gz
rm -Rf amath-${version}
rm -Rf ${distdir}
mkdir -m 775 ${distdir}
mkdir -m 775 ${distdir}/src/
@ -51,6 +56,7 @@ install -m 664 ${srcdir}/LICENSE ${distdir}/
install -m 664 ${srcdir}/README ${distdir}/
install -m 664 ${srcdir}/amath.1 ${distdir}/
install -m 775 ${srcdir}/configure ${distdir}/
install -m 775 ${srcdir}/builddeb ${distdir}/
install -m 775 ${srcdir}/builddist ${distdir}/
install -m 775 ${srcdir}/buildwin ${distdir}/


+ 7
- 1
buildwin View File

@ -1,8 +1,14 @@
#!/bin/sh
#
# This file is public domain
#
# Project homepage:
# https://amath.innolan.net
#
set -e
version="1.8.2"
version="1.9.0"
echo "Building amath ${version} for Windows ..."


+ 5
- 5
catalog/english/amath-help.ct View File

@ -2,19 +2,19 @@
## language english
## codeset 0
; #############################################################################
; Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
; Copyright (c) 2014-2021 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:
;
;
; * Redistributions of source code must retain the above copyright notice, this
; list of conditions and the following disclaimer.
;
;
; * 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 COPYRIGHT HOLDERS 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


+ 23
- 19
catalog/english/amath-ident.ct 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#