From d26f0a535f73877a38bd851b55c69e3f56753eff Mon Sep 17 00:00:00 2001 From: tolik518 Date: Wed, 25 Feb 2026 20:17:57 +0100 Subject: [PATCH] updated UPPER_SUBFACTORIAL_LIMIT to 100_000 --- Cargo.lock | 6 +++--- factorion-bot-discord/.env.example | 2 +- factorion-bot-discord/Cargo.toml | 4 ++-- factorion-bot-reddit/Cargo.toml | 4 ++-- factorion-bot-reddit/README.md | 2 +- factorion-lib/Cargo.toml | 2 +- factorion-lib/src/calculation_tasks.rs | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c6947e7..efd395a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -399,7 +399,7 @@ dependencies = [ [[package]] name = "factorion-bot-discord" -version = "2.2.2" +version = "2.2.3" dependencies = [ "anyhow", "dotenvy", @@ -414,7 +414,7 @@ dependencies = [ [[package]] name = "factorion-bot-reddit" -version = "5.3.2" +version = "5.3.3" dependencies = [ "anyhow", "base64 0.22.1", @@ -434,7 +434,7 @@ dependencies = [ [[package]] name = "factorion-lib" -version = "4.2.2" +version = "4.2.3" dependencies = [ "arbtest", "chrono", diff --git a/factorion-bot-discord/.env.example b/factorion-bot-discord/.env.example index ca6f8a4..8e8f2da 100644 --- a/factorion-bot-discord/.env.example +++ b/factorion-bot-discord/.env.example @@ -8,7 +8,7 @@ DISCORD_TOKEN=your_discord_bot_token_here # FLOAT_PRECISION=100 # UPPER_CALCULATION_LIMIT=10000 # UPPER_APPROXIMATION_LIMIT=100000 -# UPPER_SUBFACTORIAL_LIMIT=10000 +# UPPER_SUBFACTORIAL_LIMIT=100000 # UPPER_TERMIAL_LIMIT=10000 # UPPER_TERMIAL_APPROXIMATION_LIMIT=1073741822 # INTEGER_CONSTRUCTION_LIMIT=100000000 diff --git a/factorion-bot-discord/Cargo.toml b/factorion-bot-discord/Cargo.toml index db0c726..deb59c5 100644 --- a/factorion-bot-discord/Cargo.toml +++ b/factorion-bot-discord/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "factorion-bot-discord" -version = "2.2.2" +version = "2.2.3" edition = "2024" description = "factorion-bot (for factorials and related) on Discord" license = "MIT" @@ -10,7 +10,7 @@ keywords = ["factorial", "termial", "bot", "math", "discord"] categories = ["mathematics", "web-programming", "parser-implementations"] [dependencies] -factorion-lib = { path = "../factorion-lib", version = "4.2.2", features = ["serde", "influxdb"] } +factorion-lib = { path = "../factorion-lib", version = "4.2.3", features = ["serde", "influxdb"] } serenity = { version = "0.12", default-features = false, features = ["client", "gateway", "rustls_backend", "model", "cache"] } tokio = { version = "1.48.0", features = ["macros", "rt-multi-thread", "time"] } dotenvy = "^0.15.7" diff --git a/factorion-bot-reddit/Cargo.toml b/factorion-bot-reddit/Cargo.toml index 840514e..b316526 100644 --- a/factorion-bot-reddit/Cargo.toml +++ b/factorion-bot-reddit/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "factorion-bot-reddit" -version = "5.3.2" +version = "5.3.3" edition = "2024" description = "factorion-bot (for factorials and related) on Reddit" license = "MIT" @@ -10,7 +10,7 @@ keywords = ["factorial", "termial", "bot", "math"] categories = ["mathematics", "web-programming", "parser-implementations"] [dependencies] -factorion-lib = {path = "../factorion-lib", version = "4.2.2", features = ["serde", "influxdb"]} +factorion-lib = {path = "../factorion-lib", version = "4.2.3", features = ["serde", "influxdb"]} reqwest = { version = "0.12.28", features = ["json", "native-tls"], default-features = false } serde = { version = "1.0.219", default-features = false, features = ["derive"] } serde_json = "1.0.140" diff --git a/factorion-bot-reddit/README.md b/factorion-bot-reddit/README.md index 7cc3291..323ee89 100644 --- a/factorion-bot-reddit/README.md +++ b/factorion-bot-reddit/README.md @@ -114,7 +114,7 @@ INFLUXDB_TOKEN= FLOAT_PRECISION= 1024 UPPER_CALCULATION_LIMIT= 1000000 UPPER_APPROXIMATION_LIMIT= 300 -UPPER_SUBFACTORIAL_LIMIT= 1000000 +UPPER_SUBFACTORIAL_LIMIT= 100000 UPPER_TERMIAL_LIMIT= 10000 UPPER_TERMIAL_APPROXIMATION_LIMIT= 1073741822 INTEGER_CONSTRUCTION_LIMIT= 100000000 diff --git a/factorion-lib/Cargo.toml b/factorion-lib/Cargo.toml index 2c9c04c..830b13d 100644 --- a/factorion-lib/Cargo.toml +++ b/factorion-lib/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "factorion-lib" -version = "4.2.2" +version = "4.2.3" edition = "2024" description = "A library used to create bots to recognize and calculate factorials and related concepts" license = "MIT" diff --git a/factorion-lib/src/calculation_tasks.rs b/factorion-lib/src/calculation_tasks.rs index 0f3af23..b433a0c 100644 --- a/factorion-lib/src/calculation_tasks.rs +++ b/factorion-lib/src/calculation_tasks.rs @@ -25,7 +25,7 @@ pub mod recommended { pub static UPPER_APPROXIMATION_LIMIT: fn() -> Integer = || Integer::u64_pow_u64(10, 300).complete(); // Limit for exact subfactorial calculation, set to limit calculation time - pub static UPPER_SUBFACTORIAL_LIMIT: fn() -> Integer = || 1_000_000.into(); + pub static UPPER_SUBFACTORIAL_LIMIT: fn() -> Integer = || 100_000.into(); // Limit for exact termial calculation, set to limit calculation time (absurdly high) pub static UPPER_TERMIAL_LIMIT: fn() -> Integer = || Integer::u64_pow_u64(10, 10000).complete(); // Limit for approximation, set to ensure enough accuracy (5 decimals)