Skip to content

Commit

Permalink
Update xlns.py
Browse files Browse the repository at this point in the history
  • Loading branch information
markgarnold committed Nov 22, 2024
1 parent 4892c19 commit 6e576a4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/xlns.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,16 @@ def xlnsarctan2(x,y):
arccosh = lambda x: xlnsapplyfunc(x,np.arccosh)
arctanh = lambda x: xlnsapplyfunc(x,np.arctanh)

def sqrt(x):
"""square root means x**.5"""
return x**.5

def sum(x,axis=None):
"""xl.sum(x) means x.sum()"""
if axis==None:
return x.sum()
else:
return x.sum(axis=axis)

def float64(x):
"""convert to floating point; like np.float64, but works with all classes"""
Expand Down

0 comments on commit 6e576a4

Please sign in to comment.