From 84d255113d81cf6e9d40eb736250e8d692107312 Mon Sep 17 00:00:00 2001 From: Andy Zhang Date: Wed, 1 Jan 2025 22:31:06 +0800 Subject: [PATCH 1/4] Happy new year everyone! --- CMakeLists.txt | 2 +- __init__.py | 2 +- cpp.hint | 2 +- include/CMakeLists.txt | 2 +- include/argParse.hpp | 2 +- include/colors.hpp | 2 +- include/constants.hpp | 2 +- include/exceptions.hpp | 2 +- include/factors.hpp | 2 +- include/fn/calc.hpp | 2 +- include/fn/calculus.hpp | 2 +- include/fn/root.hpp | 2 +- include/format.hpp | 2 +- include/fraction.hpp | 2 +- include/getString.hpp | 2 +- include/gui.hpp | 2 +- include/internals.hpp | 2 +- include/logging.hpp | 2 +- include/number.hpp | 2 +- include/output.hpp | 2 +- include/platform.hpp | 2 +- include/rounding.hpp | 2 +- include/symbols.hpp | 2 +- include/testing.hpp | 2 +- include/types/result.hpp | 2 +- include/util.hpp | 32 ++++++++++++++++++- lib/CMakeLists.txt | 2 +- lib/__init__.py | 2 +- lib/bindings.cpp | 2 +- lib/constants.py | 2 +- lib/getch.py | 2 +- lib/paths.py | 2 +- lib/printing.py | 2 +- res/translations/abs.stp_strings | 2 +- res/translations/add.stp_strings | 2 +- res/translations/argParse.stp_strings | 2 +- res/translations/atan2.stp_strings | 2 +- res/translations/baseConvert.stp_strings | 2 +- res/translations/comparison.stp_strings | 2 +- res/translations/decimalConvert.stp_strings | 2 +- res/translations/division.stp_strings | 2 +- res/translations/en-US/abs.stp_localized | 2 +- res/translations/en-US/add.stp_localized | 2 +- res/translations/en-US/argParse.stp_localized | 2 +- res/translations/en-US/atan2.stp_localized | 2 +- .../en-US/baseConvert.stp_localized | 2 +- .../en-US/comparison.stp_localized | 2 +- .../en-US/decimalConvert.stp_localized | 2 +- res/translations/en-US/division.stp_localized | 2 +- .../en-US/factorial.stp_localized | 2 +- res/translations/en-US/hyp.stp_localized | 2 +- res/translations/en-US/log.stp_localized | 2 +- res/translations/en-US/multiply.stp_localized | 2 +- res/translations/en-US/power.stp_localized | 2 +- res/translations/en-US/root.stp_localized | 2 +- res/translations/en-US/subtract.stp_localized | 2 +- res/translations/en-US/trig.stp_localized | 2 +- res/translations/factorial.stp_strings | 2 +- res/translations/hyp.stp_strings | 2 +- res/translations/log.stp_strings | 2 +- res/translations/multiply.stp_strings | 2 +- res/translations/power.stp_strings | 2 +- res/translations/root.stp_strings | 2 +- res/translations/subtract.stp_strings | 2 +- res/translations/trig.stp_strings | 2 +- res/translations/zh-HK/abs.stp_localized | 2 +- res/translations/zh-HK/add.stp_localized | 2 +- res/translations/zh-HK/argParse.stp_localized | 2 +- res/translations/zh-HK/atan2.stp_localized | 2 +- .../zh-HK/baseConvert.stp_localized | 2 +- .../zh-HK/comparison.stp_localized | 2 +- .../zh-HK/decimalConvert.stp_localized | 2 +- res/translations/zh-HK/division.stp_localized | 2 +- .../zh-HK/factorial.stp_localized | 2 +- res/translations/zh-HK/hyp.stp_localized | 2 +- res/translations/zh-HK/log.stp_localized | 2 +- res/translations/zh-HK/multiply.stp_localized | 2 +- res/translations/zh-HK/power.stp_localized | 2 +- res/translations/zh-HK/root.stp_localized | 2 +- res/translations/zh-HK/subtract.stp_localized | 2 +- res/translations/zh-HK/trig.stp_localized | 2 +- setup.py | 2 +- src/CMakeLists.txt | 2 +- src/argParse.cpp | 2 +- src/base/baseConvert/baseConvert.cpp | 2 +- src/base/baseConvert/baseConvertReport.cpp | 2 +- src/base/baseConvert/baseConvertReport.hpp | 2 +- src/base/decimalConvert/decimalConvert.cpp | 2 +- .../decimalConvert/decimalConvertReport.cpp | 2 +- .../decimalConvert/decimalConvertReport.hpp | 2 +- src/calc/abs/abs.cpp | 2 +- src/calc/abs/absReport.cpp | 2 +- src/calc/abs/absReport.hpp | 2 +- src/calc/add/add.cpp | 2 +- src/calc/add/addReport.cpp | 2 +- src/calc/add/addReport.hpp | 2 +- src/calc/atan2/atan2.cpp | 3 +- src/calc/atan2/atan2Report.cpp | 2 +- src/calc/atan2/atan2Report.hpp | 2 +- src/calc/comparison/comparison.cpp | 2 +- src/calc/comparison/comparisonReport.cpp | 2 +- src/calc/comparison/comparisonReport.hpp | 2 +- src/calc/division/division.cpp | 4 ++- src/calc/division/divisionReport.cpp | 2 +- src/calc/division/divisionReport.hpp | 2 +- src/calc/factorial/factorial.cpp | 2 +- src/calc/factorial/factorialReport.cpp | 2 +- src/calc/factorial/factorialReport.hpp | 2 +- src/calc/hyp/hyp.cpp | 2 +- src/calc/hyp/hypReport.cpp | 2 +- src/calc/hyp/hypReport.hpp | 2 +- src/calc/log/log.cpp | 2 +- src/calc/log/logReport.cpp | 2 +- src/calc/log/logReport.hpp | 2 +- src/calc/multiply/multiply.cpp | 2 +- src/calc/multiply/multiplyReport.cpp | 2 +- src/calc/multiply/multiplyReport.hpp | 2 +- src/calc/power/power.cpp | 2 +- src/calc/power/powerReport.cpp | 2 +- src/calc/power/powerReport.hpp | 2 +- src/calc/root/root.cpp | 2 +- src/calc/root/rootReport.cpp | 2 +- src/calc/root/rootReport.hpp | 2 +- src/calc/subtract/subtract.cpp | 2 +- src/calc/subtract/subtractReport.cpp | 2 +- src/calc/subtract/subtractReport.hpp | 2 +- src/calc/trig/trig.cpp | 2 +- src/calc/trig/trigReport.cpp | 2 +- src/calc/trig/trigReport.hpp | 2 +- src/calculus/nInt/nInt.cpp | 2 +- src/calculus/nInt/nIntReport.cpp | 2 +- src/calculus/nInt/nIntReport.hpp | 2 +- src/colors.cpp | 2 +- src/constants.cpp | 2 +- src/factors.cpp | 2 +- src/format.cpp | 2 +- src/fraction.cpp | 2 +- src/getString.cpp | 2 +- src/logging.cpp | 2 +- src/number.cpp | 2 +- src/platform.cpp | 2 +- src/rounding.cpp | 2 +- src/symbols.cpp | 2 +- src/testing.cpp | 2 +- src/util.cpp | 9 ++++-- tests/CMakeLists.txt | 2 +- tests/random_tests/__init__.py | 2 +- tests/random_tests/random_test_base.py | 2 +- tests/random_tests/run_tests.py | 2 +- tests/random_tests/test_add.py | 2 +- tests/random_tests/test_division.py | 2 +- tests/random_tests/test_multiply.py | 2 +- tests/random_tests/test_subtract.py | 2 +- tests/testAbs.cpp | 2 +- tests/testAdd.cpp | 2 +- tests/testAtan2.cpp | 2 +- tests/testBaseConvert.cpp | 2 +- tests/testComparison.cpp | 2 +- tests/testDecimalConvert.cpp | 2 +- tests/testDivision.cpp | 2 +- tests/testFactorial.cpp | 2 +- tests/testFactors.cpp | 2 +- tests/testFormat.cpp | 2 +- tests/testFraction.cpp | 2 +- tests/testHyp.cpp | 2 +- tests/testLog.cpp | 2 +- tests/testMultiply.cpp | 2 +- tests/testNInt.cpp | 2 +- tests/testNumber.cpp | 2 +- tests/testPower.cpp | 2 +- tests/testRoot.cpp | 2 +- tests/testSubtract.cpp | 2 +- tests/testTrig.cpp | 2 +- tests/testUtil.cpp | 2 +- tools/__init__.py | 2 +- tools/add_copyright_header.py | 2 +- tools/benchmark.py | 2 +- tools/build.py | 2 +- tools/building/__init__.py | 2 +- tools/building/compiler_detection.py | 2 +- tools/building/constants.py | 2 +- tools/building/directories.py | 2 +- tools/building/project.py | 2 +- tools/generate_changelog.py | 2 +- tools/install.py | 2 +- tools/new_component.py | 2 +- tools/patch_compile_commands.py | 2 +- tools/run_clang_tidy.py | 2 +- tools/translation.py | 4 +-- 189 files changed, 228 insertions(+), 192 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bce3af616..a258e0685 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/__init__.py b/__init__.py index 0f29adeea..214676c1a 100644 --- a/__init__.py +++ b/__init__.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/cpp.hint b/cpp.hint index 3ae147251..5ede25605 100644 --- a/cpp.hint +++ b/cpp.hint @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index 1a425cdd5..6082f9837 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/include/argParse.hpp b/include/argParse.hpp index 50bbcf39a..8e8b56eba 100644 --- a/include/argParse.hpp +++ b/include/argParse.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/colors.hpp b/include/colors.hpp index 30259a6e6..53203c8f7 100644 --- a/include/colors.hpp +++ b/include/colors.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/constants.hpp b/include/constants.hpp index 7d1af4d61..e017dca8d 100644 --- a/include/constants.hpp +++ b/include/constants.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/exceptions.hpp b/include/exceptions.hpp index d33731868..e70eac8c1 100644 --- a/include/exceptions.hpp +++ b/include/exceptions.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/factors.hpp b/include/factors.hpp index 888143cbb..39ffe4816 100644 --- a/include/factors.hpp +++ b/include/factors.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/fn/calc.hpp b/include/fn/calc.hpp index a79680e41..230ce309f 100644 --- a/include/fn/calc.hpp +++ b/include/fn/calc.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/fn/calculus.hpp b/include/fn/calculus.hpp index 40f946d68..ddb316181 100644 --- a/include/fn/calculus.hpp +++ b/include/fn/calculus.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/fn/root.hpp b/include/fn/root.hpp index 7d756f0e4..82e65557b 100644 --- a/include/fn/root.hpp +++ b/include/fn/root.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/format.hpp b/include/format.hpp index 217b3da74..6d1931761 100644 --- a/include/format.hpp +++ b/include/format.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/fraction.hpp b/include/fraction.hpp index f8713e352..3b1c4a6a9 100644 --- a/include/fraction.hpp +++ b/include/fraction.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/getString.hpp b/include/getString.hpp index d54677b50..b367965c1 100644 --- a/include/getString.hpp +++ b/include/getString.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/gui.hpp b/include/gui.hpp index 22d7cd9d8..21a2cb34e 100644 --- a/include/gui.hpp +++ b/include/gui.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/internals.hpp b/include/internals.hpp index d9101806a..93a340772 100644 --- a/include/internals.hpp +++ b/include/internals.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/logging.hpp b/include/logging.hpp index cc7499d70..0c38498ba 100644 --- a/include/logging.hpp +++ b/include/logging.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/number.hpp b/include/number.hpp index d31faa65f..2b3ef22b7 100644 --- a/include/number.hpp +++ b/include/number.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/output.hpp b/include/output.hpp index 4c545f37f..27755a87d 100644 --- a/include/output.hpp +++ b/include/output.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/platform.hpp b/include/platform.hpp index cfbe6d8ad..aa8a63c73 100644 --- a/include/platform.hpp +++ b/include/platform.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/rounding.hpp b/include/rounding.hpp index 6816af9dc..fb21088fc 100644 --- a/include/rounding.hpp +++ b/include/rounding.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/symbols.hpp b/include/symbols.hpp index 68b84bf78..bff6d8b73 100644 --- a/include/symbols.hpp +++ b/include/symbols.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/testing.hpp b/include/testing.hpp index 1cc1f16c2..2a8a80a69 100644 --- a/include/testing.hpp +++ b/include/testing.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/types/result.hpp b/include/types/result.hpp index a070b6fbc..029e664bc 100644 --- a/include/types/result.hpp +++ b/include/types/result.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/include/util.hpp b/include/util.hpp index 981004a6b..6e32bf37a 100644 --- a/include/util.hpp +++ b/include/util.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * @@ -35,17 +35,22 @@ #pragma once #include "colors.hpp" +#include "output.hpp" +#include "platform.hpp" #include #include #include #include +#include #include #include #include #include #include +using namespace std::literals; + #ifndef TIC /** * @brief Starts a timer for profiling code execution time. @@ -72,6 +77,11 @@ } #endif +#ifndef MAX_DECIMALS + /// @brief The maximum number of decimals to output + #define MAX_DECIMALS 50 +#endif + namespace steppable::__internals::utils { #ifndef MS_STDLIB_BUGS @@ -183,6 +193,26 @@ namespace steppable::__internals::utils Utf8CodePage() { ; } }; #endif + + /** + * @brief Checks whether the decimal number is correctly specified. + * @details Compares the argument `decimal` to `MAX_DECIMALS`. If too much decimals are requested, prints an error + * and quits the program. + * + * @tparam NumberT Type of the number. + * @param decimal A pointer to the number of decimals. + */ + template + void checkDecimalArg(const NumberT* decimal) + { + if (*decimal > MAX_DECIMALS) + { + output::error("checkDecimalArg"s, + "The number of decimals ({}) is more than the accepted {} digits."s, + { std::to_string(*decimal), std::to_string(MAX_DECIMALS) }); + programSafeExit(1); + } + } } // namespace steppable::__internals::utils /** diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index d72153c33..4e00e0522 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/lib/__init__.py b/lib/__init__.py index 0f29adeea..214676c1a 100644 --- a/lib/__init__.py +++ b/lib/__init__.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/lib/bindings.cpp b/lib/bindings.cpp index b20b22a98..83fffe876 100644 --- a/lib/bindings.cpp +++ b/lib/bindings.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/lib/constants.py b/lib/constants.py index 3968822ce..488ae74b5 100644 --- a/lib/constants.py +++ b/lib/constants.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/lib/getch.py b/lib/getch.py index 4f858a155..51e00cd40 100644 --- a/lib/getch.py +++ b/lib/getch.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/lib/paths.py b/lib/paths.py index aa4128633..e5cfa72cf 100644 --- a/lib/paths.py +++ b/lib/paths.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/lib/printing.py b/lib/printing.py index 4d89a0dfd..b0903977a 100644 --- a/lib/printing.py +++ b/lib/printing.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/abs.stp_strings b/res/translations/abs.stp_strings index 87e590792..2e2b691f8 100644 --- a/res/translations/abs.stp_strings +++ b/res/translations/abs.stp_strings @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/add.stp_strings b/res/translations/add.stp_strings index 8acc9f578..9e3af4552 100644 --- a/res/translations/add.stp_strings +++ b/res/translations/add.stp_strings @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/argParse.stp_strings b/res/translations/argParse.stp_strings index 8e885338e..b855cc1e6 100644 --- a/res/translations/argParse.stp_strings +++ b/res/translations/argParse.stp_strings @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/atan2.stp_strings b/res/translations/atan2.stp_strings index 0b54d5425..47471cec5 100644 --- a/res/translations/atan2.stp_strings +++ b/res/translations/atan2.stp_strings @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/baseConvert.stp_strings b/res/translations/baseConvert.stp_strings index cc34a35f3..1698db82b 100644 --- a/res/translations/baseConvert.stp_strings +++ b/res/translations/baseConvert.stp_strings @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/comparison.stp_strings b/res/translations/comparison.stp_strings index 72e93d434..6945a62dc 100644 --- a/res/translations/comparison.stp_strings +++ b/res/translations/comparison.stp_strings @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/decimalConvert.stp_strings b/res/translations/decimalConvert.stp_strings index 38fb03f0c..72559fed4 100644 --- a/res/translations/decimalConvert.stp_strings +++ b/res/translations/decimalConvert.stp_strings @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/division.stp_strings b/res/translations/division.stp_strings index c7f57bf0c..b0a9a16ee 100644 --- a/res/translations/division.stp_strings +++ b/res/translations/division.stp_strings @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/en-US/abs.stp_localized b/res/translations/en-US/abs.stp_localized index a5260aaeb..66387feea 100644 --- a/res/translations/en-US/abs.stp_localized +++ b/res/translations/en-US/abs.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/en-US/add.stp_localized b/res/translations/en-US/add.stp_localized index 322c9fc1f..e666c516c 100644 --- a/res/translations/en-US/add.stp_localized +++ b/res/translations/en-US/add.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/en-US/argParse.stp_localized b/res/translations/en-US/argParse.stp_localized index 7ae232dd0..4c2e11e5b 100644 --- a/res/translations/en-US/argParse.stp_localized +++ b/res/translations/en-US/argParse.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/en-US/atan2.stp_localized b/res/translations/en-US/atan2.stp_localized index 5ba690c57..36d9d46aa 100644 --- a/res/translations/en-US/atan2.stp_localized +++ b/res/translations/en-US/atan2.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/en-US/baseConvert.stp_localized b/res/translations/en-US/baseConvert.stp_localized index 53abb890a..9fd879ec5 100644 --- a/res/translations/en-US/baseConvert.stp_localized +++ b/res/translations/en-US/baseConvert.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/en-US/comparison.stp_localized b/res/translations/en-US/comparison.stp_localized index 671b0e173..8f7091226 100644 --- a/res/translations/en-US/comparison.stp_localized +++ b/res/translations/en-US/comparison.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/en-US/decimalConvert.stp_localized b/res/translations/en-US/decimalConvert.stp_localized index ecd62a7b1..a6fbaf18b 100644 --- a/res/translations/en-US/decimalConvert.stp_localized +++ b/res/translations/en-US/decimalConvert.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/en-US/division.stp_localized b/res/translations/en-US/division.stp_localized index def85aa39..15cb0d2d2 100644 --- a/res/translations/en-US/division.stp_localized +++ b/res/translations/en-US/division.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/en-US/factorial.stp_localized b/res/translations/en-US/factorial.stp_localized index 257ff4105..fdacacc38 100644 --- a/res/translations/en-US/factorial.stp_localized +++ b/res/translations/en-US/factorial.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/en-US/hyp.stp_localized b/res/translations/en-US/hyp.stp_localized index 1e0cb8593..6a1564898 100644 --- a/res/translations/en-US/hyp.stp_localized +++ b/res/translations/en-US/hyp.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/en-US/log.stp_localized b/res/translations/en-US/log.stp_localized index 07ae4d50a..75c4b3e8f 100644 --- a/res/translations/en-US/log.stp_localized +++ b/res/translations/en-US/log.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/en-US/multiply.stp_localized b/res/translations/en-US/multiply.stp_localized index 2123f9a9e..cf34d4723 100644 --- a/res/translations/en-US/multiply.stp_localized +++ b/res/translations/en-US/multiply.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/en-US/power.stp_localized b/res/translations/en-US/power.stp_localized index 0fec3dc86..8ce70250e 100644 --- a/res/translations/en-US/power.stp_localized +++ b/res/translations/en-US/power.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/en-US/root.stp_localized b/res/translations/en-US/root.stp_localized index e534fd60c..3116cb81a 100644 --- a/res/translations/en-US/root.stp_localized +++ b/res/translations/en-US/root.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/en-US/subtract.stp_localized b/res/translations/en-US/subtract.stp_localized index dd5a14cf3..043804f3d 100644 --- a/res/translations/en-US/subtract.stp_localized +++ b/res/translations/en-US/subtract.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/en-US/trig.stp_localized b/res/translations/en-US/trig.stp_localized index 7c2bbd9a5..6fe5f1b91 100644 --- a/res/translations/en-US/trig.stp_localized +++ b/res/translations/en-US/trig.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/factorial.stp_strings b/res/translations/factorial.stp_strings index 67bc92913..05412ce41 100644 --- a/res/translations/factorial.stp_strings +++ b/res/translations/factorial.stp_strings @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/hyp.stp_strings b/res/translations/hyp.stp_strings index 77bbc501a..8ffbfa35c 100644 --- a/res/translations/hyp.stp_strings +++ b/res/translations/hyp.stp_strings @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/log.stp_strings b/res/translations/log.stp_strings index 31882f9ae..0b110e015 100644 --- a/res/translations/log.stp_strings +++ b/res/translations/log.stp_strings @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/multiply.stp_strings b/res/translations/multiply.stp_strings index d3725dc43..cef1d20a1 100644 --- a/res/translations/multiply.stp_strings +++ b/res/translations/multiply.stp_strings @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/power.stp_strings b/res/translations/power.stp_strings index c720237cf..ef17bc7be 100644 --- a/res/translations/power.stp_strings +++ b/res/translations/power.stp_strings @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/root.stp_strings b/res/translations/root.stp_strings index bc16f62a8..830bce148 100644 --- a/res/translations/root.stp_strings +++ b/res/translations/root.stp_strings @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/subtract.stp_strings b/res/translations/subtract.stp_strings index 3d97edda9..a277adc76 100644 --- a/res/translations/subtract.stp_strings +++ b/res/translations/subtract.stp_strings @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/trig.stp_strings b/res/translations/trig.stp_strings index 2793d149c..b73e645cb 100644 --- a/res/translations/trig.stp_strings +++ b/res/translations/trig.stp_strings @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/zh-HK/abs.stp_localized b/res/translations/zh-HK/abs.stp_localized index 52c4ae691..d4ad8d804 100644 --- a/res/translations/zh-HK/abs.stp_localized +++ b/res/translations/zh-HK/abs.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/zh-HK/add.stp_localized b/res/translations/zh-HK/add.stp_localized index 072d6ad69..46acf587c 100644 --- a/res/translations/zh-HK/add.stp_localized +++ b/res/translations/zh-HK/add.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/zh-HK/argParse.stp_localized b/res/translations/zh-HK/argParse.stp_localized index 4c0109be6..5a7722c90 100644 --- a/res/translations/zh-HK/argParse.stp_localized +++ b/res/translations/zh-HK/argParse.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/zh-HK/atan2.stp_localized b/res/translations/zh-HK/atan2.stp_localized index b0d224baf..2fdfae77e 100644 --- a/res/translations/zh-HK/atan2.stp_localized +++ b/res/translations/zh-HK/atan2.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/zh-HK/baseConvert.stp_localized b/res/translations/zh-HK/baseConvert.stp_localized index 8c8878a18..1b25dce0a 100644 --- a/res/translations/zh-HK/baseConvert.stp_localized +++ b/res/translations/zh-HK/baseConvert.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/zh-HK/comparison.stp_localized b/res/translations/zh-HK/comparison.stp_localized index 677643b2a..fe9f7f421 100644 --- a/res/translations/zh-HK/comparison.stp_localized +++ b/res/translations/zh-HK/comparison.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/zh-HK/decimalConvert.stp_localized b/res/translations/zh-HK/decimalConvert.stp_localized index 9f808e2f1..63098e89e 100644 --- a/res/translations/zh-HK/decimalConvert.stp_localized +++ b/res/translations/zh-HK/decimalConvert.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/zh-HK/division.stp_localized b/res/translations/zh-HK/division.stp_localized index 733ceed9b..8513c9549 100644 --- a/res/translations/zh-HK/division.stp_localized +++ b/res/translations/zh-HK/division.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/zh-HK/factorial.stp_localized b/res/translations/zh-HK/factorial.stp_localized index d56f240d8..3acfaa675 100644 --- a/res/translations/zh-HK/factorial.stp_localized +++ b/res/translations/zh-HK/factorial.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/zh-HK/hyp.stp_localized b/res/translations/zh-HK/hyp.stp_localized index 6225cbb2b..8648cdb91 100644 --- a/res/translations/zh-HK/hyp.stp_localized +++ b/res/translations/zh-HK/hyp.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/zh-HK/log.stp_localized b/res/translations/zh-HK/log.stp_localized index 606362103..be26cfa9c 100644 --- a/res/translations/zh-HK/log.stp_localized +++ b/res/translations/zh-HK/log.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/zh-HK/multiply.stp_localized b/res/translations/zh-HK/multiply.stp_localized index 54ee72b55..b5c1de9d9 100644 --- a/res/translations/zh-HK/multiply.stp_localized +++ b/res/translations/zh-HK/multiply.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/zh-HK/power.stp_localized b/res/translations/zh-HK/power.stp_localized index 35fe8e497..208a79e13 100644 --- a/res/translations/zh-HK/power.stp_localized +++ b/res/translations/zh-HK/power.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/zh-HK/root.stp_localized b/res/translations/zh-HK/root.stp_localized index f711350c3..bfae5272f 100644 --- a/res/translations/zh-HK/root.stp_localized +++ b/res/translations/zh-HK/root.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/zh-HK/subtract.stp_localized b/res/translations/zh-HK/subtract.stp_localized index a86a69fe9..f843c34cc 100644 --- a/res/translations/zh-HK/subtract.stp_localized +++ b/res/translations/zh-HK/subtract.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/res/translations/zh-HK/trig.stp_localized b/res/translations/zh-HK/trig.stp_localized index ad527be12..4752fb12e 100644 --- a/res/translations/zh-HK/trig.stp_localized +++ b/res/translations/zh-HK/trig.stp_localized @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/setup.py b/setup.py index 58027ccfc..ffb2ff205 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 59f4bc657..83496c2f6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/src/argParse.cpp b/src/argParse.cpp index edd68c8c8..acac382f0 100644 --- a/src/argParse.cpp +++ b/src/argParse.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/base/baseConvert/baseConvert.cpp b/src/base/baseConvert/baseConvert.cpp index c265616e7..b3841848f 100644 --- a/src/base/baseConvert/baseConvert.cpp +++ b/src/base/baseConvert/baseConvert.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/base/baseConvert/baseConvertReport.cpp b/src/base/baseConvert/baseConvertReport.cpp index 9e9b950a3..2edec5f65 100644 --- a/src/base/baseConvert/baseConvertReport.cpp +++ b/src/base/baseConvert/baseConvertReport.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/base/baseConvert/baseConvertReport.hpp b/src/base/baseConvert/baseConvertReport.hpp index a0b586a6d..24e052703 100644 --- a/src/base/baseConvert/baseConvertReport.hpp +++ b/src/base/baseConvert/baseConvertReport.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/base/decimalConvert/decimalConvert.cpp b/src/base/decimalConvert/decimalConvert.cpp index 7251bf041..6663e1385 100644 --- a/src/base/decimalConvert/decimalConvert.cpp +++ b/src/base/decimalConvert/decimalConvert.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/base/decimalConvert/decimalConvertReport.cpp b/src/base/decimalConvert/decimalConvertReport.cpp index 2235e216f..6f9734cc7 100644 --- a/src/base/decimalConvert/decimalConvertReport.cpp +++ b/src/base/decimalConvert/decimalConvertReport.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/base/decimalConvert/decimalConvertReport.hpp b/src/base/decimalConvert/decimalConvertReport.hpp index 820d5eef0..f810a6c9d 100644 --- a/src/base/decimalConvert/decimalConvertReport.hpp +++ b/src/base/decimalConvert/decimalConvertReport.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/abs/abs.cpp b/src/calc/abs/abs.cpp index b45529ee6..a027616b1 100644 --- a/src/calc/abs/abs.cpp +++ b/src/calc/abs/abs.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/abs/absReport.cpp b/src/calc/abs/absReport.cpp index b9032ebfa..b8605feb1 100644 --- a/src/calc/abs/absReport.cpp +++ b/src/calc/abs/absReport.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/abs/absReport.hpp b/src/calc/abs/absReport.hpp index 64abc45ce..14fbcc195 100644 --- a/src/calc/abs/absReport.hpp +++ b/src/calc/abs/absReport.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/add/add.cpp b/src/calc/add/add.cpp index 36fc30e88..32cfb5ab9 100644 --- a/src/calc/add/add.cpp +++ b/src/calc/add/add.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/add/addReport.cpp b/src/calc/add/addReport.cpp index f5b3dd05a..d9c9f0406 100644 --- a/src/calc/add/addReport.cpp +++ b/src/calc/add/addReport.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/add/addReport.hpp b/src/calc/add/addReport.hpp index 2dfe9a60b..8da17cd89 100644 --- a/src/calc/add/addReport.hpp +++ b/src/calc/add/addReport.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/atan2/atan2.cpp b/src/calc/atan2/atan2.cpp index b416e8836..e38d14143 100644 --- a/src/calc/atan2/atan2.cpp +++ b/src/calc/atan2/atan2.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * @@ -50,6 +50,7 @@ namespace steppable::__internals::arithmetic { std::string atan2(const std::string& y, const std::string& x, const size_t decimals = 10) { + checkDecimalArg(&decimals); // / // | y // | arctan(---) if x > 0, (1) diff --git a/src/calc/atan2/atan2Report.cpp b/src/calc/atan2/atan2Report.cpp index 8ab4038bf..6a029363a 100644 --- a/src/calc/atan2/atan2Report.cpp +++ b/src/calc/atan2/atan2Report.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/atan2/atan2Report.hpp b/src/calc/atan2/atan2Report.hpp index 0fb4aaa6d..080119e34 100644 --- a/src/calc/atan2/atan2Report.hpp +++ b/src/calc/atan2/atan2Report.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/comparison/comparison.cpp b/src/calc/comparison/comparison.cpp index c2beace04..5dfa0de61 100644 --- a/src/calc/comparison/comparison.cpp +++ b/src/calc/comparison/comparison.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/comparison/comparisonReport.cpp b/src/calc/comparison/comparisonReport.cpp index 1833b491e..4a848c34d 100644 --- a/src/calc/comparison/comparisonReport.cpp +++ b/src/calc/comparison/comparisonReport.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/comparison/comparisonReport.hpp b/src/calc/comparison/comparisonReport.hpp index 53f692b9e..4582dff9f 100644 --- a/src/calc/comparison/comparisonReport.hpp +++ b/src/calc/comparison/comparisonReport.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/division/division.cpp b/src/calc/division/division.cpp index 5c737a68f..ef1a37aee 100644 --- a/src/calc/division/division.cpp +++ b/src/calc/division/division.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * @@ -117,6 +117,8 @@ namespace steppable::__internals::arithmetic std::string divide(const std::string& _number, const std::string& _divisor, const int steps, const int _decimals) { + checkDecimalArg(&_decimals); + if (isZeroString(_number) and isZeroString(_divisor)) { // Easter egg in open-source code diff --git a/src/calc/division/divisionReport.cpp b/src/calc/division/divisionReport.cpp index a46fdc919..99b9bdbb0 100644 --- a/src/calc/division/divisionReport.cpp +++ b/src/calc/division/divisionReport.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/division/divisionReport.hpp b/src/calc/division/divisionReport.hpp index fbeb45128..3a41f2a20 100644 --- a/src/calc/division/divisionReport.hpp +++ b/src/calc/division/divisionReport.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/factorial/factorial.cpp b/src/calc/factorial/factorial.cpp index 42c716f7d..f1f19bf48 100644 --- a/src/calc/factorial/factorial.cpp +++ b/src/calc/factorial/factorial.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/factorial/factorialReport.cpp b/src/calc/factorial/factorialReport.cpp index 91c24c075..ce324f6fa 100644 --- a/src/calc/factorial/factorialReport.cpp +++ b/src/calc/factorial/factorialReport.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/factorial/factorialReport.hpp b/src/calc/factorial/factorialReport.hpp index 6cc119892..daa3f5a5b 100644 --- a/src/calc/factorial/factorialReport.hpp +++ b/src/calc/factorial/factorialReport.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/hyp/hyp.cpp b/src/calc/hyp/hyp.cpp index 2ea4fb01a..d31f85458 100644 --- a/src/calc/hyp/hyp.cpp +++ b/src/calc/hyp/hyp.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/hyp/hypReport.cpp b/src/calc/hyp/hypReport.cpp index 997342801..09d11c650 100644 --- a/src/calc/hyp/hypReport.cpp +++ b/src/calc/hyp/hypReport.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/hyp/hypReport.hpp b/src/calc/hyp/hypReport.hpp index 1448a40d5..7525fa790 100644 --- a/src/calc/hyp/hypReport.hpp +++ b/src/calc/hyp/hypReport.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/log/log.cpp b/src/calc/log/log.cpp index 86b8e0c47..54c304512 100644 --- a/src/calc/log/log.cpp +++ b/src/calc/log/log.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/log/logReport.cpp b/src/calc/log/logReport.cpp index 9981d5311..fa4cea2dd 100644 --- a/src/calc/log/logReport.cpp +++ b/src/calc/log/logReport.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/log/logReport.hpp b/src/calc/log/logReport.hpp index 2f5cf4a55..1736b9a54 100644 --- a/src/calc/log/logReport.hpp +++ b/src/calc/log/logReport.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/multiply/multiply.cpp b/src/calc/multiply/multiply.cpp index 27af3e7c8..7a541cde8 100644 --- a/src/calc/multiply/multiply.cpp +++ b/src/calc/multiply/multiply.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/multiply/multiplyReport.cpp b/src/calc/multiply/multiplyReport.cpp index d7f313439..7036c0c2a 100644 --- a/src/calc/multiply/multiplyReport.cpp +++ b/src/calc/multiply/multiplyReport.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/multiply/multiplyReport.hpp b/src/calc/multiply/multiplyReport.hpp index a18d257f3..1c5467d7b 100644 --- a/src/calc/multiply/multiplyReport.hpp +++ b/src/calc/multiply/multiplyReport.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/power/power.cpp b/src/calc/power/power.cpp index 3942fbe9f..fb5b29397 100644 --- a/src/calc/power/power.cpp +++ b/src/calc/power/power.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/power/powerReport.cpp b/src/calc/power/powerReport.cpp index a534449f1..70183765f 100644 --- a/src/calc/power/powerReport.cpp +++ b/src/calc/power/powerReport.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/power/powerReport.hpp b/src/calc/power/powerReport.hpp index 6d212c05c..bbb20001a 100644 --- a/src/calc/power/powerReport.hpp +++ b/src/calc/power/powerReport.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/root/root.cpp b/src/calc/root/root.cpp index 1e4ca0e01..f4aafd3cd 100644 --- a/src/calc/root/root.cpp +++ b/src/calc/root/root.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/root/rootReport.cpp b/src/calc/root/rootReport.cpp index 1e356ece5..2ca48107b 100644 --- a/src/calc/root/rootReport.cpp +++ b/src/calc/root/rootReport.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/root/rootReport.hpp b/src/calc/root/rootReport.hpp index a24940846..ba1a07331 100644 --- a/src/calc/root/rootReport.hpp +++ b/src/calc/root/rootReport.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/subtract/subtract.cpp b/src/calc/subtract/subtract.cpp index a6af5919f..6d98c57e8 100644 --- a/src/calc/subtract/subtract.cpp +++ b/src/calc/subtract/subtract.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/subtract/subtractReport.cpp b/src/calc/subtract/subtractReport.cpp index 5107c68d8..f8fa73569 100644 --- a/src/calc/subtract/subtractReport.cpp +++ b/src/calc/subtract/subtractReport.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/subtract/subtractReport.hpp b/src/calc/subtract/subtractReport.hpp index f229120fa..36a9afb43 100644 --- a/src/calc/subtract/subtractReport.hpp +++ b/src/calc/subtract/subtractReport.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/trig/trig.cpp b/src/calc/trig/trig.cpp index d1bd4a3e6..8e5b78e09 100644 --- a/src/calc/trig/trig.cpp +++ b/src/calc/trig/trig.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/trig/trigReport.cpp b/src/calc/trig/trigReport.cpp index 5edfa118a..3b86cb11c 100644 --- a/src/calc/trig/trigReport.cpp +++ b/src/calc/trig/trigReport.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calc/trig/trigReport.hpp b/src/calc/trig/trigReport.hpp index d37966e9d..4278e7309 100644 --- a/src/calc/trig/trigReport.hpp +++ b/src/calc/trig/trigReport.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calculus/nInt/nInt.cpp b/src/calculus/nInt/nInt.cpp index 30a70564a..2418cb126 100644 --- a/src/calculus/nInt/nInt.cpp +++ b/src/calculus/nInt/nInt.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calculus/nInt/nIntReport.cpp b/src/calculus/nInt/nIntReport.cpp index 92b10dd07..d71dc7c44 100644 --- a/src/calculus/nInt/nIntReport.cpp +++ b/src/calculus/nInt/nIntReport.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/calculus/nInt/nIntReport.hpp b/src/calculus/nInt/nIntReport.hpp index aaeef0bf5..dcbc166d8 100644 --- a/src/calculus/nInt/nIntReport.hpp +++ b/src/calculus/nInt/nIntReport.hpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/colors.cpp b/src/colors.cpp index 9a8f4f448..d7b777cde 100644 --- a/src/colors.cpp +++ b/src/colors.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/constants.cpp b/src/constants.cpp index 8e3e6e06c..e715b0dff 100644 --- a/src/constants.cpp +++ b/src/constants.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/factors.cpp b/src/factors.cpp index 56daca81a..dfa585cd3 100644 --- a/src/factors.cpp +++ b/src/factors.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/format.cpp b/src/format.cpp index 8e80f7f73..4c61820c0 100644 --- a/src/format.cpp +++ b/src/format.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/fraction.cpp b/src/fraction.cpp index 1e03cc36b..9d822689f 100644 --- a/src/fraction.cpp +++ b/src/fraction.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/getString.cpp b/src/getString.cpp index 991787ae7..a09ee5656 100644 --- a/src/getString.cpp +++ b/src/getString.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/logging.cpp b/src/logging.cpp index 533899905..a390f6a8f 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/number.cpp b/src/number.cpp index db386d403..00ca97358 100644 --- a/src/number.cpp +++ b/src/number.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/platform.cpp b/src/platform.cpp index f0a29768a..748f60a05 100644 --- a/src/platform.cpp +++ b/src/platform.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/rounding.cpp b/src/rounding.cpp index a684fec92..1fa2d7c2d 100644 --- a/src/rounding.cpp +++ b/src/rounding.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/symbols.cpp b/src/symbols.cpp index d71b01539..4a38c84fa 100644 --- a/src/symbols.cpp +++ b/src/symbols.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/testing.cpp b/src/testing.cpp index 03d572e0e..712766082 100644 --- a/src/testing.cpp +++ b/src/testing.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/src/util.cpp b/src/util.cpp index b8b7d4846..0c4011ee3 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * @@ -22,6 +22,8 @@ #include "util.hpp" +#include "platform.hpp" + #include #ifdef WINDOWS @@ -35,6 +37,8 @@ #include #include +using namespace std::literals; + namespace steppable::__internals::numUtils { bool isNumber(const std::string& s) @@ -178,8 +182,7 @@ namespace steppable::__internals::numUtils if (const auto firstNonZero = std::ranges::find_if(out, [](const int num) { return num != 0; }); out.begin() != firstNonZero && out.front() == 0) { - std::replace_if( - out.begin(), firstNonZero, [](const int num) { return num == 0; }, -2); + std::replace_if(out.begin(), firstNonZero, [](const int num) { return num == 0; }, -2); } return out; diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c59da2df3..a61cf08fc 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tests/random_tests/__init__.py b/tests/random_tests/__init__.py index 0f29adeea..214676c1a 100644 --- a/tests/random_tests/__init__.py +++ b/tests/random_tests/__init__.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tests/random_tests/random_test_base.py b/tests/random_tests/random_test_base.py index 026ea380d..f556f6781 100644 --- a/tests/random_tests/random_test_base.py +++ b/tests/random_tests/random_test_base.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tests/random_tests/run_tests.py b/tests/random_tests/run_tests.py index 20099f08a..aa710f568 100644 --- a/tests/random_tests/run_tests.py +++ b/tests/random_tests/run_tests.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tests/random_tests/test_add.py b/tests/random_tests/test_add.py index 7553ca9dd..16df63521 100644 --- a/tests/random_tests/test_add.py +++ b/tests/random_tests/test_add.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tests/random_tests/test_division.py b/tests/random_tests/test_division.py index 09dd5e492..f446f8a50 100644 --- a/tests/random_tests/test_division.py +++ b/tests/random_tests/test_division.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tests/random_tests/test_multiply.py b/tests/random_tests/test_multiply.py index 10b7380f3..8a9e32ad4 100644 --- a/tests/random_tests/test_multiply.py +++ b/tests/random_tests/test_multiply.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tests/random_tests/test_subtract.py b/tests/random_tests/test_subtract.py index fd63381de..dd9e2370f 100644 --- a/tests/random_tests/test_subtract.py +++ b/tests/random_tests/test_subtract.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tests/testAbs.cpp b/tests/testAbs.cpp index 5c0c9fbd9..3bac52a3f 100644 --- a/tests/testAbs.cpp +++ b/tests/testAbs.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/tests/testAdd.cpp b/tests/testAdd.cpp index dd4f53ee5..27afa8813 100644 --- a/tests/testAdd.cpp +++ b/tests/testAdd.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/tests/testAtan2.cpp b/tests/testAtan2.cpp index 31453bc05..e8cbaa081 100644 --- a/tests/testAtan2.cpp +++ b/tests/testAtan2.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/tests/testBaseConvert.cpp b/tests/testBaseConvert.cpp index 31453bc05..e8cbaa081 100644 --- a/tests/testBaseConvert.cpp +++ b/tests/testBaseConvert.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/tests/testComparison.cpp b/tests/testComparison.cpp index 09afe7dee..9a790155a 100644 --- a/tests/testComparison.cpp +++ b/tests/testComparison.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/tests/testDecimalConvert.cpp b/tests/testDecimalConvert.cpp index 845904bca..7e36a992b 100644 --- a/tests/testDecimalConvert.cpp +++ b/tests/testDecimalConvert.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/tests/testDivision.cpp b/tests/testDivision.cpp index 6e988b189..531a6f5fa 100644 --- a/tests/testDivision.cpp +++ b/tests/testDivision.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/tests/testFactorial.cpp b/tests/testFactorial.cpp index 24fc3cb4c..75caa21bf 100644 --- a/tests/testFactorial.cpp +++ b/tests/testFactorial.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/tests/testFactors.cpp b/tests/testFactors.cpp index bbb8251ad..fb6365e18 100644 --- a/tests/testFactors.cpp +++ b/tests/testFactors.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/tests/testFormat.cpp b/tests/testFormat.cpp index 39126817b..8103c8cc3 100644 --- a/tests/testFormat.cpp +++ b/tests/testFormat.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/tests/testFraction.cpp b/tests/testFraction.cpp index 43c629927..7ebbffa7e 100644 --- a/tests/testFraction.cpp +++ b/tests/testFraction.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/tests/testHyp.cpp b/tests/testHyp.cpp index 2bbae4985..02f64d95e 100644 --- a/tests/testHyp.cpp +++ b/tests/testHyp.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/tests/testLog.cpp b/tests/testLog.cpp index 7a95be8f5..e94b3fb9d 100644 --- a/tests/testLog.cpp +++ b/tests/testLog.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/tests/testMultiply.cpp b/tests/testMultiply.cpp index 582f1fdbe..1b1ee0e3a 100644 --- a/tests/testMultiply.cpp +++ b/tests/testMultiply.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/tests/testNInt.cpp b/tests/testNInt.cpp index d55882cb2..9dae516f2 100644 --- a/tests/testNInt.cpp +++ b/tests/testNInt.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/tests/testNumber.cpp b/tests/testNumber.cpp index be16afc29..301f2b697 100644 --- a/tests/testNumber.cpp +++ b/tests/testNumber.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/tests/testPower.cpp b/tests/testPower.cpp index c9a075aa0..d30779bdc 100644 --- a/tests/testPower.cpp +++ b/tests/testPower.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/tests/testRoot.cpp b/tests/testRoot.cpp index 9c02d9c38..6f181b7ba 100644 --- a/tests/testRoot.cpp +++ b/tests/testRoot.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/tests/testSubtract.cpp b/tests/testSubtract.cpp index be2935577..3cbe06d74 100644 --- a/tests/testSubtract.cpp +++ b/tests/testSubtract.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/tests/testTrig.cpp b/tests/testTrig.cpp index 1492e5344..fb6998eed 100644 --- a/tests/testTrig.cpp +++ b/tests/testTrig.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/tests/testUtil.cpp b/tests/testUtil.cpp index b86bab8f8..da2e9e118 100644 --- a/tests/testUtil.cpp +++ b/tests/testUtil.cpp @@ -1,5 +1,5 @@ /************************************************************************************************** - * Copyright (c) 2023-2024 NWSOFT * + * Copyright (c) 2023-2025 NWSOFT * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * diff --git a/tools/__init__.py b/tools/__init__.py index 0f29adeea..214676c1a 100644 --- a/tools/__init__.py +++ b/tools/__init__.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tools/add_copyright_header.py b/tools/add_copyright_header.py index 2f7137a9f..bbcf8a6c2 100644 --- a/tools/add_copyright_header.py +++ b/tools/add_copyright_header.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tools/benchmark.py b/tools/benchmark.py index 4132c7a09..baf0cba6b 100644 --- a/tools/benchmark.py +++ b/tools/benchmark.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tools/build.py b/tools/build.py index 5b2005da8..4855de0bc 100644 --- a/tools/build.py +++ b/tools/build.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tools/building/__init__.py b/tools/building/__init__.py index 0f29adeea..214676c1a 100644 --- a/tools/building/__init__.py +++ b/tools/building/__init__.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tools/building/compiler_detection.py b/tools/building/compiler_detection.py index 148ff445b..571039a13 100644 --- a/tools/building/compiler_detection.py +++ b/tools/building/compiler_detection.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tools/building/constants.py b/tools/building/constants.py index 3e3c17fd5..df6d5ccba 100644 --- a/tools/building/constants.py +++ b/tools/building/constants.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tools/building/directories.py b/tools/building/directories.py index f7d44fcdb..52b2c708a 100644 --- a/tools/building/directories.py +++ b/tools/building/directories.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tools/building/project.py b/tools/building/project.py index 161eb9311..021b513ad 100644 --- a/tools/building/project.py +++ b/tools/building/project.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tools/generate_changelog.py b/tools/generate_changelog.py index 1769b2681..fe16e7fc1 100644 --- a/tools/generate_changelog.py +++ b/tools/generate_changelog.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tools/install.py b/tools/install.py index 6e7b65ff9..2c01e217a 100644 --- a/tools/install.py +++ b/tools/install.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tools/new_component.py b/tools/new_component.py index 49eeae919..acb34e3fe 100644 --- a/tools/new_component.py +++ b/tools/new_component.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tools/patch_compile_commands.py b/tools/patch_compile_commands.py index 463012141..03f13d491 100644 --- a/tools/patch_compile_commands.py +++ b/tools/patch_compile_commands.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tools/run_clang_tidy.py b/tools/run_clang_tidy.py index 46cd134ae..baf521a82 100644 --- a/tools/run_clang_tidy.py +++ b/tools/run_clang_tidy.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # diff --git a/tools/translation.py b/tools/translation.py index 76ec45749..2024ddf53 100644 --- a/tools/translation.py +++ b/tools/translation.py @@ -1,5 +1,5 @@ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # @@ -44,7 +44,7 @@ ISO_639_REGEX = re.compile(r"^[a-z]{2}(-[A-Z]{2})?$") LOCALIZED_HEADER = """\ ##################################################################################################### -# Copyright (c) 2023-2024 NWSOFT # +# Copyright (c) 2023-2025 NWSOFT # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # From d94ea5f09ce713bf949605aed4be87d60150d4e6 Mon Sep 17 00:00:00 2001 From: Andy Zhang Date: Thu, 2 Jan 2025 06:07:24 +0800 Subject: [PATCH 2/4] Add decimal check. --- include/util.hpp | 2 +- src/calc/hyp/hyp.cpp | 24 ++++++++++++++++++++++++ src/calc/log/log.cpp | 22 +++++++++++++++++++--- src/calc/root/root.cpp | 4 ++++ src/calc/trig/trig.cpp | 26 ++++++++++++++++++++++++++ src/calculus/nInt/nInt.cpp | 4 ++++ 6 files changed, 78 insertions(+), 4 deletions(-) diff --git a/include/util.hpp b/include/util.hpp index 6e32bf37a..665b4ae45 100644 --- a/include/util.hpp +++ b/include/util.hpp @@ -208,7 +208,7 @@ namespace steppable::__internals::utils if (*decimal > MAX_DECIMALS) { output::error("checkDecimalArg"s, - "The number of decimals ({}) is more than the accepted {} digits."s, + "The number of decimals ({0}) is more than the accepted {1} digits."s, { std::to_string(*decimal), std::to_string(MAX_DECIMALS) }); programSafeExit(1); } diff --git a/src/calc/hyp/hyp.cpp b/src/calc/hyp/hyp.cpp index d31f85458..66479601e 100644 --- a/src/calc/hyp/hyp.cpp +++ b/src/calc/hyp/hyp.cpp @@ -51,6 +51,8 @@ namespace steppable::__internals::arithmetic { std::string sinh(const std::string& x, const int decimals) { + checkDecimalArg(&decimals); + const auto& twoX = multiply(x, "2", 0); const auto& eTwoX = roundOff(power(static_cast(constants::E), twoX, 0), decimals + 2); const auto& eX = roundOff(power(static_cast(constants::E), x, 0), decimals + 2); @@ -63,6 +65,8 @@ namespace steppable::__internals::arithmetic std::string cosh(const std::string& x, const int decimals) { + checkDecimalArg(&decimals); + const auto& twoX = multiply(x, "2", 0); const auto& eTwoX = roundOff(power(static_cast(constants::E), twoX, 0), decimals + 2); const auto& eX = roundOff(power(static_cast(constants::E), x, 0), decimals + 2); @@ -75,6 +79,8 @@ namespace steppable::__internals::arithmetic std::string tanh(const std::string& x, const int decimals) { + checkDecimalArg(&decimals); + const auto& numerator = sinh(x, decimals); const auto& denominator = cosh(x, decimals); @@ -83,6 +89,8 @@ namespace steppable::__internals::arithmetic std::string coth(const std::string& x, const int decimals) { + checkDecimalArg(&decimals); + const auto& denominator = tanh(x, decimals); if (isZeroString(denominator)) { @@ -95,6 +103,8 @@ namespace steppable::__internals::arithmetic std::string csch(const std::string& x, const int decimals) { + checkDecimalArg(&decimals); + const auto& denominator = sinh(x, decimals); if (isZeroString(denominator)) { @@ -107,6 +117,8 @@ namespace steppable::__internals::arithmetic std::string sech(const std::string& x, const int decimals) { + checkDecimalArg(&decimals); + const auto& denominator = cosh(x, decimals); if (isZeroString(denominator)) { @@ -119,6 +131,8 @@ namespace steppable::__internals::arithmetic std::string asinh(const std::string& x, const int decimals) { + checkDecimalArg(&decimals); + // /------| // / 2 // asinh(x) = ln(x + \/ x + 1 ) @@ -132,6 +146,8 @@ namespace steppable::__internals::arithmetic std::string acosh(const std::string& x, const int decimals) { + checkDecimalArg(&decimals); + // /------| // / 2 // acosh(x) = ln(x + \/ x - 1 ) @@ -145,6 +161,8 @@ namespace steppable::__internals::arithmetic std::string atanh(const std::string& x, const int decimals) { + checkDecimalArg(&decimals); + // 1 1 + x // atanh(x) = --- * ln( ------- ) // 2 1 - x @@ -158,6 +176,8 @@ namespace steppable::__internals::arithmetic std::string acoth(const std::string& x, const int decimals) { + checkDecimalArg(&decimals); + // 1 1 + x // acoth(x) = --- * ln( ------- ) // 2 x - 1 @@ -171,6 +191,8 @@ namespace steppable::__internals::arithmetic std::string acsch(const std::string& x, const int decimals) { + checkDecimalArg(&decimals); + // /-------| // 1 / 1 // acsch(x) = ln(--- + / ---- + 1 ) @@ -189,6 +211,8 @@ namespace steppable::__internals::arithmetic std::string asech(const std::string& x, const int decimals) { + checkDecimalArg(&decimals); + // /-------| // 1 / 1 // asech(x) = ln(--- + / ---- - 1 ) diff --git a/src/calc/log/log.cpp b/src/calc/log/log.cpp index 54c304512..cb753dc73 100644 --- a/src/calc/log/log.cpp +++ b/src/calc/log/log.cpp @@ -47,6 +47,8 @@ namespace steppable::__internals::arithmetic { std::string _log(const std::string& x, const size_t _decimals) { + checkDecimalArg(&_decimals); + const auto& decimals = _decimals + 2; // Zero check if (numUtils::isZeroString(x)) @@ -104,6 +106,8 @@ namespace steppable::__internals::arithmetic // Common logarithms std::string logb(const std::string& _number, const std::string& _base, const size_t _decimals) { + checkDecimalArg(&_decimals); + // -ln(1/a) // log (x) = ---------- // b -ln(1/b) @@ -118,11 +122,23 @@ namespace steppable::__internals::arithmetic return numUtils::roundOff(result, _decimals); } - std::string log10(const std::string& _number, const size_t _decimals) { return logb(_number, "10", _decimals); } + std::string log10(const std::string& _number, const size_t _decimals) + { + checkDecimalArg(&_decimals); + return logb(_number, "10", _decimals); + } - std::string log2(const std::string& _number, const size_t _decimals) { return logb(_number, "2", _decimals); } + std::string log2(const std::string& _number, const size_t _decimals) + { + checkDecimalArg(&_decimals); + return logb(_number, "2", _decimals); + } - std::string ln(const std::string& _number, const size_t _decimals) { return _log(_number, _decimals); } + std::string ln(const std::string& _number, const size_t _decimals) + { + checkDecimalArg(&_decimals); + return _log(_number, _decimals); + } } // namespace steppable::__internals::arithmetic #ifndef NO_MAIN diff --git a/src/calc/root/root.cpp b/src/calc/root/root.cpp index f4aafd3cd..652cbba0b 100644 --- a/src/calc/root/root.cpp +++ b/src/calc/root/root.cpp @@ -127,6 +127,8 @@ namespace steppable::__internals::arithmetic std::string _root(const std::string& _number, const std::string& base, const size_t _decimals, const int steps) { + checkDecimalArg(&_decimals); + if (isDecimal(base)) { const auto& fraction = Fraction(base); @@ -186,6 +188,8 @@ namespace steppable::__internals::arithmetic std::string root(const std::string& _number, const std::string& base, const size_t _decimals, const int steps) { + checkDecimalArg(&_decimals); + if (isZeroString(_number)) return "0"; if (isInteger(_number)) diff --git a/src/calc/trig/trig.cpp b/src/calc/trig/trig.cpp index 8e5b78e09..dcec9e73a 100644 --- a/src/calc/trig/trig.cpp +++ b/src/calc/trig/trig.cpp @@ -97,6 +97,8 @@ namespace steppable::__internals::arithmetic std::string _cos(const std::string& x, const int decimals) { + checkDecimalArg(&decimals); + // .,,. ., /=====================================================================\ // //%, .( | NOTE: DO NOT CALL THIS METHOD DIRECTLY IN PRODUCTION CODE! | // /%( ., | /-\ THIS METHOD ONLY ACCEPTS RADIANS AS INPUT, AND DOES | @@ -135,6 +137,8 @@ namespace steppable::__internals::arithmetic std::string cos(const std::string& x, const int decimals, const int mode) { + checkDecimalArg(&decimals); + // Mode Options: // 0: Radians (default) // 1: Degrees (converts to radians) @@ -169,6 +173,8 @@ namespace steppable::__internals::arithmetic std::string sin(const std::string& x, const int decimals, const int mode) { + checkDecimalArg(&decimals); + // Mode Options: // 0: Radians (default) // 1: Degrees (converts to radians) @@ -206,6 +212,8 @@ namespace steppable::__internals::arithmetic std::string tan(const std::string& x, const int decimals, const int mode) { + checkDecimalArg(&decimals); + // Mode Options: // 0: Radians (default) // 1: Degrees (converts to radians) @@ -260,6 +268,8 @@ namespace steppable::__internals::arithmetic std::string csc(const std::string& x, const int decimals, const int mode) { + checkDecimalArg(&decimals); + auto sinX = sin(x, decimals + 1, mode); if (isZeroString(sinX)) { @@ -271,6 +281,8 @@ namespace steppable::__internals::arithmetic std::string sec(const std::string& x, const int decimals, const int mode) { + checkDecimalArg(&decimals); + auto cosX = cos(x, decimals + 1, mode); if (isZeroString(cosX)) { @@ -282,6 +294,8 @@ namespace steppable::__internals::arithmetic std::string cot(const std::string& x, const int decimals, const int mode) { + checkDecimalArg(&decimals); + auto tanX = tan(x, decimals + 1, mode); if (isZeroString(tanX)) { @@ -293,6 +307,8 @@ namespace steppable::__internals::arithmetic std::string atan(const std::string& _x, const int decimals, const int mode) { + checkDecimalArg(&decimals); + auto x = _x; // Zero check if (isZeroString(x)) @@ -346,6 +362,8 @@ namespace steppable::__internals::arithmetic std::string asin(const std::string& x, const int decimals, const int mode) { + checkDecimalArg(&decimals); + if (compare(abs(x, 0), "1", 0) == "1") { error("trig::asin", $("trig", "b06650e0-7101-4734-9647-5abb56beb492")); @@ -386,6 +404,8 @@ namespace steppable::__internals::arithmetic std::string acos(const std::string& x, const int decimals, const int mode) { + checkDecimalArg(&decimals); + if (compare(x, "1", 0) == "2") return "0"; std::string circleAngle; @@ -410,6 +430,8 @@ namespace steppable::__internals::arithmetic std::string asec(const std::string& x, const int decimals, const int mode) { + checkDecimalArg(&decimals); + if (compare(abs(x, 0), "1", 0) == "1") { error("trig::asec", $("trig", "fffb4742-3712-4c9a-a7ff-65cd51508a0a")); @@ -424,6 +446,8 @@ namespace steppable::__internals::arithmetic std::string acsc(const std::string& x, const int decimals, const int mode) { + checkDecimalArg(&decimals); + if (compare(abs(x, 0), "1", 0) != "0") { error("trig::acsc"s, $("trig", "c021dfde-300c-4d74-a6a1-87a514c1bbe0")); @@ -438,6 +462,8 @@ namespace steppable::__internals::arithmetic std::string acot(const std::string& x, const int decimals, const int mode) { + checkDecimalArg(&decimals); + if (compare(abs(x, 0), "1", 0) != "0") { error("trig::acot"s, $("trig", "c0c6a29f-abda-4676-9662-1d00f94f10a4")); diff --git a/src/calculus/nInt/nInt.cpp b/src/calculus/nInt/nInt.cpp index 2418cb126..78613351d 100644 --- a/src/calculus/nInt/nInt.cpp +++ b/src/calculus/nInt/nInt.cpp @@ -24,6 +24,7 @@ #include "fn/calculus.hpp" #include "output.hpp" #include "rounding.hpp" +#include "util.hpp" #include #include @@ -32,6 +33,7 @@ using namespace steppable::__internals::arithmetic; using namespace steppable::__internals::numUtils; +using namespace steppable::__internals::utils; using namespace std::literals; namespace steppable::__internals::calculus @@ -42,6 +44,8 @@ namespace steppable::__internals::calculus const int max_steps, const int decimals) { + checkDecimalArg(&decimals); + auto acc = "0." + std::string(decimals - 1, '0') + "1"; auto previous = std::vector(max_steps, "0"s); auto current = std::vector(max_steps, "0"s); From eecb8bedc5d84a980d546c1d8bf36d48cc20b32c Mon Sep 17 00:00:00 2001 From: Andy Zhang Date: Thu, 2 Jan 2025 06:26:07 +0800 Subject: [PATCH 3/4] Fix trig issues. --- src/calc/trig/trig.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calc/trig/trig.cpp b/src/calc/trig/trig.cpp index dcec9e73a..3aa51d10e 100644 --- a/src/calc/trig/trig.cpp +++ b/src/calc/trig/trig.cpp @@ -125,12 +125,12 @@ namespace steppable::__internals::arithmetic // 13x + 660x + 15120 auto a = add(subtract(multiply("313", x4, 0), multiply("6900", x2, 0), 0), "15120", 0); auto b = add(add(multiply("13", x4, 0), multiply("660", x2, 0), 0), "15120", 0); - return standardizeNumber(divide(a, b, 0, decimals * 2)); + return standardizeNumber(divide(a, b, 0, decimals + 2)); } // otherwise use recursion // double C = cos(x / 4); - auto result = _cos(standardizeNumber(divide(x, "4", 0, decimals + 1)), decimals * 2); - auto result2 = roundOff(multiply(result, result, 0), static_cast(decimals) * 2); + auto result = _cos(standardizeNumber(divide(x, "4", 0, decimals + 1)), decimals + 2); + auto result2 = roundOff(multiply(result, result, 0), static_cast(decimals) + 2); // return 8 * C2 * (C2 - 1) + 1; return standardizeNumber(add(multiply("8", multiply(result2, subtract(result2, "1", 0), 0), 0), "1", 0)); } From 5c504c493443420f26696fd1d7d418facfd5d925 Mon Sep 17 00:00:00 2001 From: Andy Zhang Date: Thu, 2 Jan 2025 09:16:32 +0800 Subject: [PATCH 4/4] Update LICENSE Signed-off-by: Andy Zhang --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 48c7a7bee..9c1cdb2c0 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Andy Zhang +Copyright (c) 2023-2025 Andy Zhang Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal