jalaali alternatives and similar packages
Based on the "Math" category.
Alternatively, view jalaali alternatives based on common mentions on social networks and blogs.
-
vector
An efficient implementation of Int-indexed arrays (both mutable and immutable), with a powerful loop optimisation framework . -
statistics
A fast, high quality library for computing with statistics in Haskell. -
HerbiePlugin
GHC plugin that improves Haskell code's numerical stability -
hgeometry
HGeometry is a library for computing with geometric objects in Haskell. It defines basic geometric types and primitives, and it implements some geometric data structures and algorithms. The main two focusses are: (1) Strong type safety, and (2) implementations of geometric algorithms and data structures that have good asymptotic running time guarantees. -
computational-algebra
General-Purpose Computer Algebra System as an EDSL in Haskell -
dimensional
Dimensional library variant built on Data Kinds, Closed Type Families, TypeNats (GHC 7.8+). -
mwc-random
A very fast Haskell library for generating high quality pseudo-random numbers. -
numhask
A haskell numeric prelude, providing a clean structure for numbers and operations that combine them. -
cf
"Exact" real arithmetic for Haskell using continued fractions (Not formally proven correct) -
poly
Fast polynomial arithmetic in Haskell (dense and sparse, univariate and multivariate, usual and Laurent) -
optimization
Some numerical optimization methods implemented in Haskell -
equational-reasoning
Agda-style equational reasoning in Haskell -
safe-decimal
Safe and very efficient arithmetic operations on fixed decimal point numbers -
polynomial
Haskell library for manipulating and evaluating polynomials -
monoid-subclasses
Subclasses of Monoid with a solid theoretical foundation and practical purposes -
eigen
Haskel binding for Eigen library. Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms. -
vector-th-unbox
Deriver for unboxed vectors using Template Haskell
Build time-series-based applications quickly and at scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of jalaali or a related project?
README
Jalaali Haskell
A few Haskell functions for converting Jalaali (Jalali, Persian, Khayyami, Khorshidi, Shamsi) and Gregorian calendar systems to each other.
About
Jalali calendar is a solar calendar that was used in Persia, variants of which today are still in use in Iran as well as Afghanistan. Read more on Wikipedia or see Calendar Converter.
Calendar conversion is based on the algorithm provided by Kazimierz M. Borkowski and has a very good performance.
API
Types
type JalaaliYear = Int
type JalaaliMonth = Int
type JalaaliDay = Int
type GregorianYear = Int
type GregorianMonth = Int
type GregorianDay = Int
type JulianDayNumber = Int
type DayInMarch = Int
type LeapOffset = Int
type JalaaliDate = (JalaaliYear, JalaaliMonth, JalaaliDay)
type GregorianDate = (GregorianYear, GregorianMonth, GregorianDay)
Functions
toJalaali
Converts a Gregorian date to Jalaali.
toJalaali :: GregorianYear -> GregorianMonth -> GregorianDay -> JalaaliDate
toGregorian
Converts a Jalaali date to Gregorian.
toGregorian :: JalaaliYear -> JalaaliMonth -> JalaaliDay -> GregorianDate
isValidJalaaliDate
Checkes whether a Jalaali date is valid or not.
isValidJalaaliDate :: JalaaliYear -> JalaaliMonth -> JalaaliDay -> Bool
isJalaaliLeapYear
Checks whether a Jalaali year is leap or not.
isJalaaliLeapYear :: JalaaliYear -> Bool
jalaaliMonthLength
Returns the number of days in a Jalaali year and month.
jalaaliMonthLength :: JalaaliYear -> JalaaliMonth -> Int
jalCal
Determines if a Jalaali year is leap or common, and finds the day in March of the first day of the Jalaali year.
jalCal :: JalaaliYear -> (LeapOffset, GregorianYear, DayInMarch)
j2d
Converts a Jalaali date to Julian Day number.
j2d :: JalaaliYear -> JalaaliMonth -> JalaaliDay -> JulianDayNumber
d2j
Converts a Julian Day number to a Jalaali date.
d2j :: JulianDayNumber -> JalaaliDate
g2d
Converts a Gregorian date to Julian Day number.
g2d :: GregorianYear -> GregorianMonth -> GregorianDay -> JulianDayNumber
d2g
Converts a Julian Day number to a Gregorian date.
d2g :: JulianDayNumber -> GregorianDate
License
MIT
*Note that all licence references and agreements mentioned in the jalaali README section above
are relevant to that project's source code only.