Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A bug in gcd and lcm (Number Theory) ? #564

Open
LSAXYZ321 opened this issue Nov 22, 2024 · 1 comment
Open

A bug in gcd and lcm (Number Theory) ? #564

LSAXYZ321 opened this issue Nov 22, 2024 · 1 comment

Comments

@LSAXYZ321
Copy link

I noticed that the functions gcd (Greatest Common Divisor) and lcm (Least Common Multiple) found in Functions - Number Theory , won't accept and input with only 2 variables although the UI says the third variable is optional
So with an input as the following
gcd(60; 40; )
lcm(60; 40; )
, I get the following answer:
"Argument 3, Value 3, in gcd() must be a free value that is rational (polynomial).""

If I type variable 1 or 2 in at the third optional place, the calculation is done, but that shouldn't be necessary

BR Lars

@hanna-kn
Copy link
Contributor

In gcd(60; 40; ) the third argument is specified (as an empty expression). Use gcd(60; 40) and lcm(60; 40), without the second semicolon, instead.

There was however a bug (now fixed) which caused inclusion of empty optional arguments in output from insert function dialog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants