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

Option for output of factor(n) as string #88

Open
Glen-O opened this issue Sep 25, 2020 · 1 comment
Open

Option for output of factor(n) as string #88

Glen-O opened this issue Sep 25, 2020 · 1 comment

Comments

@Glen-O
Copy link

Glen-O commented Sep 25, 2020

At times, it is desirable to incorporate the default REPL output of factor(n) into strings for use, for example, within a println command. It would be nice to have a type variant - factor(String,n) - which outputs in string form (eg/ factor(String,90) = "2 * 3^2 * 5"), as well as a method for converting a Factorization form into a nice string (eg/ prodform(factor(90)) = "2 * 3^2 * 5").

@oscardssmith
Copy link
Member

If we wanted it, it would be spelled string(factor(n)).

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