-
-
Notifications
You must be signed in to change notification settings - Fork 552
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
Implements function that returns the sum of a number's digits #28100
Comments
New commits:
|
Author: Alex Shearer |
Commit: |
comment:3
What is the advantage of this function compared to
? |
comment:4
Replying to @videlec:
There is no real advantage, although we thought it makes sense to have a dedicated sum of digits function implemented. |
comment:5
While we are at it, since As an aside, it would have been more Pythonic if once upon a time, |
comment:6
Replying to @videlec:
A related question: what are the disadvantages to the proposed function tl;dr: why not instead implement |
comment:7
Ticket retargeted after milestone closed |
comment:8
Replying to @jhpalmieri:
+1 |
comment:9
Unless the Users would better learn a bit of Python rather being lost in an endless Sage namespace (that applies to the main namespace but also to objects). |
comment:10
As I commented earlier, if But maybe a better solution would to be modify And honestly, I think the use case for which this makes a difference is quite narrow. |
comment:11
Batch modifying tickets that will likely not be ready for 9.1, based on a review of the ticket title, branch/review status, and last modification date. |
comment:13
Setting new milestone based on a cursory review of ticket status, priority, and last modification date. |
comment:14
Setting a new milestone for this ticket based on a cursory review. |
comment:15
Stalled in |
This ticket adds a function to return, given a number and base, the sum of digits of that number in that base. For example, this enables:
Component: number theory
Author: Alex Shearer
Branch/Commit: u/gh-sheareralexj/implements_function_that_returns_the_sum_of_a_number_s_digits @
a8e7f14
Issue created by migration from https://trac.sagemath.org/ticket/28100
The text was updated successfully, but these errors were encountered: