-
-
Notifications
You must be signed in to change notification settings - Fork 859
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
Add function to compute norm(s) #4508
Comments
How about just making |
I like this idea, but I can see two problems: readability (it's not obvious to the uninformed reader what Additionally, we might as well go all the way and accept a positional argument to specify what p-norm to compute (not sure what the name would be though). |
calc.hypot
to compute hypotenuses
Description
calc.hypot(x, y) == calc.sqrt(x * x y * y)
for floats and integers. For lengths,calc.hypot(x, y)
would work similarly, keeping the unit.Use Case
Computing hypotenuses with lengths is currently very annoying because multiplying lengths is not allowed. This would solve this problem.
The text was updated successfully, but these errors were encountered: