axkr / symja_android_library

:coffee: Symja - computer algebra language & symbolic math library. A collection of popular algorithms implemented in pure Java.
https://matheclipse.org/
GNU General Public License v3.0
380 stars 85 forks source link

Improve DateObjectExpr with arithmetic methods #595

Open axkr opened 2 years ago

axkr commented 2 years ago

Improve DateObjectExpr with arithmetic methods plusYears, plusMonths, plusDays

See

datahaki commented 2 years ago

several continuous probability distributions can operate on DateObject's in combination with a parameter of type Quantity[1, "s"] (or any compatible unit) for instance

NormalDistribution, UniformDistribution, TrapezoidalDistribution, LaplaceDistribution, CauchyDistribution, LogisticDistribution, ...

see for example:

https://github.com/datahaki/tensor/blob/eb41eb5894b17ac60815bf6355b4c1470f996f64/src/test/java/ch/alpine/tensor/pdf/c/NormalDistributionTest.java#L159

datahaki commented 2 years ago

ups, Mathematica doesn't like it:

image