complex-numbers

Top 22 complex-number Open-Source Projects

  • mathjs

    An extensive math library for JavaScript and Node.js

  • Project mention: Show HN: Heynote – A Dedicated Scratchpad for Developers | news.ycombinator.com | 2023-12-22

    The Math blocks are powered by Math.js (https://mathjs.org/).

  • ganja.js

    :triangular_ruler: Javascript Geometric Algebra Generator for Javascript, c++, c#, rust, python. (with operator overloading and algebraic literals) -

  • Project mention: The Montreal Problem: Why Programming Languages Need a Style Czar | news.ycombinator.com | 2024-03-15

    Some people's brains just work this way. Here's an example of a somewhat popular and regularly maintained library written in a similar style: https://github.com/enkimute/ganja.js/blob/6e97cb45d780cd7c66...

    Once your learn to recognise the commonalities, you'll see examples everywhere. The most extreme and stereotypical version is the billboards written by some homeless people. You can probably picture it already in your mind's eye: A wall of very dense text with little whitespace or structure, and a mix of fonts and colours seemingly at random.

    I had a brilliant mathematician friend who wrote like this. He would squeeze and entire semester's worth of study notes into a single sheet of paper, on one side. It was impenetrable gibberish to everyone else, but the colours and 2D positioning let him build a mental mind-map.

    For people like this, if you reformat their code even a tiny bit, their mental map is invalidated, and they lose track of it completely and become upset. I discovered this (the hard way) when applying automatic code formatting tools to the codebases I mentioned previously.

    Personally, I find this type of thing to be absolutely fascinating, because it's the intersection of many fields of study, and hence is under-studied. There's elements of pedagogy, psychology, literacy, compute science, etc...

    It's an open question how we can get large groups of neurodiverse humans to collaborate on a codebase when they don't even "read" or "think" in compatible ways!

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • mpmath

    Python library for arbitrary-precision floating-point arithmetic

  • Project mention: mpmath – Python library for arbitrary-precision floating-point arithmetic | news.ycombinator.com | 2024-01-19
  • Measurements.jl

    Error propagation calculator and library for physical measurements. It supports real and complex numbers with uncertainty, arbitrary precision calculations, operations with arrays, and numerical integration.

  • arb

    Arb has been merged into FLINT -- use https://github.com/flintlib/flint/ instead

  • Project mention: Patriot Missile Floating point Software Problem lead to deaths 28 Americans | news.ycombinator.com | 2024-01-03

    You can instead list your criteria for good number format and look at alternatives with those lenses. Floating point is designed for a good balance between dynamic range and precision, and IEEE 754 binary formats can be seen as a FP standard particularly optimized for numerical calculation.

    There are several other FP formats. The most popular one is IEEE 754 minus subnormal numbers, followed by bfloat16, IEEE 754 decimal formats (formerly IEEE 854) and posits. Only first two have good hardware supports. The lack of subnormal number means that `a <=> b` can't be no longer rewritten to `a - b <=> 0` among others but is widely believed to be faster. (I don't fully agree, but it's indeed true for existing contemporary hardwares.) IEEE 754 decimal formats are notable for lack of normalization guarantee. Posits are, in some sense, what IEEE 754 would have been if designed today, and in fact aren't that fundamentally different from IEEE 754 in my opinion.

    Fixed-point formats share pros and cons of finitely sized integer numbers and you should have no difficulty to analyze them. In short, they offer a smaller dynamic range compared to FP, but its truncation model is much simpler to reason. In turn you will get a varying precision and out-of-bound issues.

    Rational number formats look very promising at the beginning, but they are much harder to implement efficiently. You will need a fast GCD algorithm (not Euclidean) and also have to handle out-of-bound numerators and denumerators. In fact, many rational number formats rely on arbitrary-precision integers precisely for avoiding those issues, and inherit the same set of issues---unbounded memory usage and computational overhead. Approximate rational number formats are much rarer, and I'm only aware of the Inigo Quilez's floating-bar experiment [1] in this space.

    [1] https://iquilezles.org/articles/floatingbar/

    Interval/ball/affine arithmetics and others are means to automatically approximate an error analysis. They have a good property of being never incorrect, but it is still really easy for them to throw up and give a correct but useless answer like [-inf, inf]. Also they are somewhat awkward in a typical procedural paradigm because comparisons will return a tri-state boolean (true, false, unsure). Nevertheless they are often useful when correctly used. Fredrik Johansson's Arb [2] is a good starting point in my opinion.

    [2] https://arblib.org/

    Finally you can model a number as a function that returns a successively accurate approximation. This is called the constructive or exact real number, and simultaneously most expensive and most correct. One of the most glaring problems is that an equality is not always decidable, and practical applications tend to have various heuristics to get around this fact. Amazingly enough, Android's built-in calculator is one of the most used applications that use this model [3].

    [3] https://dl.acm.org/doi/pdf/10.1145/2911981

  • Grassmann.jl

    ⟨Grassmann-Clifford-Hodge⟩ multilinear differential geometric algebra

  • calc

    C-style arbitrary precision calculator

  • Project mention: Calc: C-style arbitrary precision calculator | news.ycombinator.com | 2024-04-10
  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • Complex.js

    Complex.js is a com numbers library written in JavaScript

  • cvnn

    Library to help implement a complex-valued neural network (cvnn) using tensorflow as back-end

  • Matft

    Numpy-like library in swift. (Multi-dimensional Array, ndarray, matrix and vector library)

  • algebra

    means completeness and balancing, from the Arabic word الجبر (by fibo)

  • Fermat

    A library providing math and statistics operations for numbers of arbitrary size.

  • quantum-tensors

    Quantum Tensors - NPM package for sparse matrix operations for quantum information and computing

  • num-complex-solidity

    Complex numbers for Solidity

  • java.math.expression.parser

    java math expression parser is faster than JEP

  • bra-ket-vue

    ⟨𝜑|𝜓⟩.vue - a Vue-based visualization of quantum states and operations

  • yagrad

    yet another scalar autograd engine - featuring complex numbers and fixed DAG

  • Project mention: Yagrad – 100 SLOC autograd engine with complex numbers and fixed DAG | news.ycombinator.com | 2024-03-17
  • f-flat_node

    F♭ (pronounced F-flat) is a toy language.

  • vec-mat-comp-quat

    C++ 2d/3d/4d Vector, 2x2/3x3/4x4 Matrix, Complex Number, Quaternion, and 3d Transformation Classes / Functions (Header Only libraries)

  • go-bigcomplex

    Golang big complex number library, currently supporting big Gaussian integer and big Hurwitz integer.

  • mobius-shader

    Möbius transformations in GLSL

  • rootsMapPython

    Fractals made from complex roots of all possible polynomials of certain degree (12 - 24) and small set of complex coefficients (2 or 3), littlewood polynomials included

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

complex-numbers related posts

Index

What are some of the best open-source complex-number projects? This list will help you:

Project Stars
1 mathjs 14,027
2 ganja.js 1,492
3 mpmath 910
4 Measurements.jl 472
5 arb 457
6 Grassmann.jl 449
7 calc 317
8 Complex.js 227
9 cvnn 141
10 Matft 119
11 algebra 104
12 Fermat 64
13 quantum-tensors 54
14 num-complex-solidity 52
15 java.math.expression.parser 35
16 bra-ket-vue 29
17 yagrad 25
18 f-flat_node 24
19 vec-mat-comp-quat 17
20 go-bigcomplex 7
21 mobius-shader 6
22 rootsMapPython 5

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com