stdlib icon indicating copy to clipboard operation
stdlib copied to clipboard

[RFC]: add structured package data for unary functions in `math/base/special` (tracking issue)

Open gunjjoshi opened this issue 4 months ago • 7 comments

Description

This RFC proposes adding structured package data for unary functions in math/base/special/*.

Example PR: https://github.com/stdlib-js/stdlib/pull/2909

  • [x] abs
  • [x] abs2
  • [x] abs2f
  • [x] absf
  • [x] absgammalnf
  • [x] acos
  • [x] acosd
  • [x] acosdf
  • [x] acosf
  • [x] acosh
  • [x] acot
  • [x] acotd
  • [x] acotdf
  • [x] acotf
  • [x] acoth
  • [x] acovercos
  • [x] acovercosf
  • [x] acoversin
  • [x] acoversinf
  • [x] acsc
  • [x] acscd
  • [x] acscdf
  • [x] acscf
  • [x] acsch
  • [x] ahavercos
  • [x] ahavercosf
  • [x] ahaversin
  • [x] ahaversinf
  • [x] asec
  • [x] asecd
  • [x] asecdf
  • [x] asecf
  • [x] asech
  • [x] asin
  • [x] asind
  • [x] asindf
  • [x] asinf
  • [x] asinh
  • [x] atan
  • [x] atand
  • [x] atandf
  • [x] atanf
  • [x] atanh
  • [x] avercos
  • [x] avercosf
  • [x] aversin
  • [x] aversinf
  • [x] bernoulli
  • [x] bernoullif
  • [x] besselj0
  • [x] besselj1
  • [x] bessely0
  • [x] bessely1
  • [x] binet
  • [x] cabs
  • [x] cabs2
  • [x] cabs2f
  • [x] cabsf
  • [x] cbrt
  • [x] cbrtf
  • [x] cceil
  • [x] cceilf
  • [x] ccis
  • [x] ceil
  • [x] ceil10
  • [x] ceil2
  • [x] ceilf
  • [x] cexp
  • [x] cfloor
  • [x] cfloorf
  • [x] cinv
  • [x] cinvf
  • [x] cos
  • [x] cosd
  • [x] cosdf
  • [x] cosf
  • [x] cosh
  • [x] cosm1
  • [x] cosm1f
  • [x] cospi
  • [x] cospif
  • [x] cot
  • [x] cotd
  • [x] cotdf
  • [x] cotf
  • [x] coth
  • [x] covercos
  • [x] covercosf
  • [x] coversin
  • [x] coversinf
  • [x] cphase
  • [ ] cphasef
  • [ ] cround
  • [ ] croundf
  • [x] csc
  • [x] cscd
  • [x] cscdf
  • [x] cscf
  • [x] csch
  • [ ] csignum
  • [ ] csignumf
  • [x] deg2rad
  • [x] deg2radf
  • [x] digamma
  • [x] dirac-delta
  • [x] dirac-deltaf
  • [x] dirichlet-eta
  • [x] ellipe
  • [x] ellipk
  • [x] erf
  • [x] erfc
  • [x] erfcinv
  • [x] erfcx
  • [x] erfinv
  • [x] exp
  • [x] exp10
  • [x] exp2
  • [x] expit
  • [x] expm1
  • [x] expm1rel
  • [x] factorial
  • [x] factorial2
  • [x] factorial2f
  • [x] factorialln
  • [x] factoriallnf
  • [x] fibonacci
  • [x] fibonacci-index
  • [x] fibonacci-indexf
  • [x] fibonaccif
  • [x] floor
  • [x] floor10
  • [x] floor2
  • [x] floorf
  • [x] fresnelc
  • [x] fresnels
  • [x] gamma
  • [x] gamma-lanczos-sum
  • [x] gamma-lanczos-sum-expg-scaled
  • [x] gamma-lanczos-sum-expg-scaledf
  • [x] gamma1pm1
  • [x] gammaln
  • [x] gammasgn
  • [x] gammasgnf
  • [x] hacovercos
  • [x] hacovercosf
  • [x] hacoversin
  • [x] hacoversinf
  • [x] havercos
  • [x] havercosf
  • [x] haversin
  • [x] haversinf
  • [x] inv
  • [x] invf
  • [x] kernel-log1p
  • [x] kernel-log1pf
  • [x] labs
  • [x] ln
  • [x] lnf
  • [x] log
  • [x] logf
  • [x] log10
  • [x] log1mexp
  • [x] log1p
  • [x] log1pexp
  • [ ] log1pf
  • [x] log1pmx
  • [x] log2
  • [x] logit
  • [x] logitf
  • [x] lucas
  • [x] lucasf
  • [x] negafibonacci
  • [x] negafibonaccif
  • [x] negalucas
  • [x] negalucasf
  • [x] nonfibonacci
  • [x] nonfibonaccif
  • [x] rad2deg
  • [x] rad2degf
  • [x] ramp
  • [x] rampf
  • [x] rcbrt
  • [x] rcbrtf
  • [x] riemann-zeta
  • [x] round
  • [x] round-nearest-even
  • [x] round10
  • [x] round2
  • [x] roundf
  • [x] rsqrt
  • [x] rsqrtf
  • [x] sec
  • [x] secd
  • [x] secdf
  • [x] secf
  • [x] sech
  • [x] signum
  • [x] signumf
  • [x] sin
  • [x] sinc
  • [x] sincf
  • [x] sind
  • [x] sindf
  • [x] sinf
  • [x] sinh
  • [x] sinpi
  • [x] sinpif
  • [x] spence
  • [x] spencef
  • [x] sqrt
  • [x] sqrt1pm1
  • [x] sqrtf
  • [x] sqrtpi
  • [x] sqrtpif
  • [x] tan
  • [x] tand
  • [x] tandf
  • [x] tanf
  • [x] tanh
  • [x] tribonacci
  • [x] tribonaccif
  • [x] trigamma
  • [x] trigammaf
  • [x] trunc
  • [x] trunc10
  • [x] trunc2
  • [x] truncf
  • [x] vercos
  • [x] vercosf
  • [x] versin
  • [x] versinf

Related Issues

Related issue: https://github.com/stdlib-js/stdlib/issues/1147

Questions

No.

Other

No.

Checklist

  • [x] I have read and understood the Code of Conduct.
  • [x] Searched for existing issues and pull requests.
  • [x] The issue name begins with RFC:.

gunjjoshi avatar Aug 22 '25 10:08 gunjjoshi

@gunjjoshi Thanks for opening this!

kgryte avatar Aug 22 '25 11:08 kgryte

@gunjjoshi I don't believe that the sincos* packages should be included in this list, as there are two outputs.

kgryte avatar Nov 01 '25 00:11 kgryte

@gunjjoshi I don't believe that the sincos* packages should be included in this list, as there are two outputs.

Thanks for catching it, I've removed them now!

gunjjoshi avatar Nov 01 '25 00:11 gunjjoshi

@gunjjoshi I believe we can remove cpolar* from this list, as those APIs return two values, not one.

kgryte avatar Nov 07 '25 07:11 kgryte

Big shoutout to @manvith2003 for helping get this to the finish line!

kgryte avatar Nov 07 '25 07:11 kgryte

@gunjjoshi I believe we can remove cpolar* from this list, as those APIs return two values, not one.

Ahh, right. I've removed them now. Thanks for catching it!

gunjjoshi avatar Nov 07 '25 16:11 gunjjoshi

log1pf was merged and should be added to the tracking issue.

kgryte avatar Dec 03 '25 20:12 kgryte