Skip to content

[affine-cipher] Use x consistently in the encryption formula - #2711

Merged
IsaacG merged 2 commits into
mainfrom
fix-affine-cipher-formula
Nov 24, 2026
Merged

IsaacG merged 2 commits into
mainfrom
fix-affine-cipher-formula

Conversation

@exercism-agent

@exercism-agent exercism-agent Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

The encryption formula in description.md reads E(x) = (ai + b) mod m, and the list under it defines i. This PR changes i to x, so the formula matches y = E(x) in the decryption section.

🤖 Generated with Claude Code

Co-authored-by: iHiD <286476+iHiD@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@exercism-agent exercism-agent Bot changed the title affine-cipher: use i in the encryption formula [affine-cipher] Use i in the encryption formula Nov 23, 2026
@iHiD
iHiD marked this pull request as ready for review November 23, 2026 07:05
@iHiD
iHiD requested a review from a team as a code owner November 23, 2026 07:05
@exercism-agent exercism-agent Bot added the ready-to-translate The English in this PR is final; queue its translations label Nov 23, 2026
exercism-i18n Bot added a commit to exercism/i18n that referenced this pull request Nov 23, 2026
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@exercism-i18n

exercism-i18n Bot commented Nov 23, 2026

Copy link
Copy Markdown

This PR has been translated 🚀

@glennj

glennj commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Keep x and change i to x. This will make E(x) for encrypting consistent with D(y) shown for decrypting

Co-authored-by: iHiD <286476+iHiD@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@exercism-agent exercism-agent Bot changed the title [affine-cipher] Use i in the encryption formula [affine-cipher] Use x consistently in the encryption formula Nov 24, 2026
@exercism-agent

Copy link
Copy Markdown
Contributor Author

Done. The formula is now E(x) = (ax + b) mod m, and x is the letter's index.

@github-actions github-actions Bot removed the ready-to-translate The English in this PR is final; queue its translations label Nov 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This push changed English, so ready-to-translate has come off and any queued translation is withdrawn.

A maintainer: please re-apply ready-to-translate once the copy is final. That queues the translation at the PR's head commit.

@glennj

glennj commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Label to be added after 3 approvals.

@iHiD iHiD added the ready-to-translate The English in this PR is final; queue its translations label Nov 24, 2026
@iHiD

iHiD commented Nov 24, 2026

Copy link
Copy Markdown
Member

Label to be added after 3 approvals.

Sorry! Only just saw this. And I totally agree with it for future!

exercism-i18n Bot added a commit to exercism/i18n that referenced this pull request Nov 24, 2026
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@exercism-i18n

exercism-i18n Bot commented Nov 24, 2026

Copy link
Copy Markdown

This PR has been translated 🚀

@IsaacG
IsaacG merged commit fd83c09 into main Nov 24, 2026
14 of 15 checks passed
@IsaacG
IsaacG deleted the fix-affine-cipher-formula branch November 24, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-translate The English in this PR is final; queue its translations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants