Commit c2d2eb28 authored by Philipp Frank's avatar Philipp Frank
Browse files

inverse trigonometric functions

parent 57cbbc96
Pipeline #93594 passed with stages
in 11 minutes and 17 seconds
......@@ -141,5 +141,8 @@ ptw_dict = {
"power": (np.power, _power_helper),
"clip": (np.clip, _clip_helper),
"softplus": (softplus, _softplus_helper),
"exponentiate": (exponentiate, _exponentiate_helper)
"exponentiate": (exponentiate, _exponentiate_helper),
"arcsin": (np.arcsin, lambda v: (np.arcsin(v), 1./np.sqrt(1.-v**2))),
"arccos": (np.arccos, lambda v: (np.arccos(v), -1./np.sqrt(1.-v**2))),
"arctan": (np.arctan, lambda v: (np.arctan(v), 1./(1.+v**2)))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment