symja_android_library icon indicating copy to clipboard operation
symja_android_library copied to clipboard

Improve unit tests for math.js based functions

Open axkr opened this issue 5 years ago • 0 comments

Improve JUnit tests/accuracy/documentation for the functions ported from

  • https://github.com/paulmasson/math

The Symja port can be found in this package:

  • https://github.com/axkr/symja_android_library/tree/master/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/builtin/functions

The "wrapper classes" can be found here:

The documentation should be inserted or updated here:

  • https://github.com/axkr/symja_android_library/tree/master/symja_android_library/doc/functions

This data can be used to check accuracy:

  • https://github.com/paulmasson/math-test-data

In the last column of this table you can find the Symja function name:

mpmath		math.js					Symja
-------------------------------------------------------------------
airyai              airyAi				AiryAi
airybi              airyBi				AiryBi
besseli             besselI				BesselI
besselj             besselJ				BesselJ
besselk             besselK				BesselK
bessely             besselY				BesselY
cn                  cn					JacobiCN
digamma             digamma				PolyGamma
dn                  dn					JacobiDN
ellipe              ellipticE				EllipticE
ellipf              ellipticF				EllipticF
ellipk              ellipticK				EllipticK
ellippi             ellipticPi				EllipticPi
ei                  expIntegralEi			ExpIntegralEi
erf                 erf					Erf
erfc                erfc				Erfc
erfi                erfi				Erfi
expint              expIntegralE			ExpIntegralE
gamma               gamma				Gamma
gammainc            gamma				Gamma	
hankel1             hankel1				HankelH1
hankel2             hankel2				HankelH2
hyper               hypergeometricPFQ			HypergeometricPFQ
hyperu              hypergeometricU			HypergeometricU
hyp0f1              hypergeometric0F1			Hypergeometric0F1
hyp1f1              hypergeometric1F1			Hypergeometric1F1
hyp2f1              hypergeometric2F1			Hypergeometric2F1
kleinj              kleinJ				KleinInvariantJ
laguerre            laguerre				LaguerreL
legenp              legendreP               		LegendreP
legenq              legendreQ               		LegendreQ
sn                  sn					JacobiSN
struveh             struveH                		StruveH
struvel             struveL				StruveL
whitm               whittakerM				WhittakerM
whitw               whittakerW				WhittakerW
zeta                zeta				Zeta

See:

  • https://github.com/paulmasson/math/issues/4
  • https://github.com/Hipparchus-Math/hipparchus/issues/92
  • https://hipparchus.org/hipparchus-core/complex.html
  • https://hipparchus.org/hipparchus-core/analysis.html

Chat:

  • https://gitter.im/symja_android_library/Lobby

axkr avatar Jun 21 '20 08:06 axkr