Skip to content

Added sum to SIObject#112

Merged
prehner merged 1 commit into
masterfrom
sum
Apr 29, 2026
Merged

Added sum to SIObject#112
prehner merged 1 commit into
masterfrom
sum

Conversation

@prehner
Copy link
Copy Markdown
Contributor

@prehner prehner commented Apr 28, 2026

si.linspace(100*si.GRAM, si.KILOGRAM,10).sum()
5.5 kg

Of course there are many similar methods that we might want to make available for quantities, but the sum might be a particularly relevant one.

@prehner prehner merged commit b0fd749 into master Apr 29, 2026
21 checks passed
@prehner prehner deleted the sum branch April 29, 2026 10:50
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

Successfully merging this pull request may close these issues.

2 participants