Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,13 @@
|
||||
module math
|
||||
|
||||
// square returns the square of the argument x, i.e. x * x
|
||||
@[inline]
|
||||
pub fn square[T](x T) T {
|
||||
return x * x
|
||||
}
|
||||
|
||||
// cube returns the cube of the argument x, i.e. x * x * x
|
||||
@[inline]
|
||||
pub fn cube[T](x T) T {
|
||||
return x * x * x
|
||||
}
|
||||
Reference in new issue
Block a user