fibo/algebra

means completeness and balancing, from the Arabic word الجبر

106

stars

970

commits

TypeScript

primary language

Jun 30, 2025

updated

fibo.github.io/algebra/
algebra
complex-numbers
math
matrix
octonion
quaternion
ring
scalar
vector

README

algebra

means completeness and balancing, from the Arabic word الجبر

To install with npm do npm install algebra.

Real numbers:

import { R } from 'algebra';

const x = new R(0.1);
x.add(0.2);
console.log(x.value); // 0.3

Complex numbers:

import { C } from 'algebra';

const z = new C([1, 2]); // 1 + 2i
const z_ = new C(z).conj(); // 1 - 2i
console.log(z.mul(z_).eq(5)); // true

See full documentation here: https://fibo.github.io/algebra

Contributors

fibo

968 commits

kissarat

1 commits

fibo/algebra

means completeness and balancing, from the Arabic word الجبر

106

stars

970

commits

TypeScript

primary language

Jun 30, 2025

updated

fibo.github.io/algebra/
algebra
complex-numbers
math
matrix
octonion
quaternion
ring
scalar
vector

README

algebra

means completeness and balancing, from the Arabic word الجبر

To install with npm do npm install algebra.

Real numbers:

import { R } from 'algebra';

const x = new R(0.1);
x.add(0.2);
console.log(x.value); // 0.3

Complex numbers:

import { C } from 'algebra';

const z = new C([1, 2]); // 1 + 2i
const z_ = new C(z).conj(); // 1 - 2i
console.log(z.mul(z_).eq(5)); // true

See full documentation here: https://fibo.github.io/algebra

Contributors

fibo

968 commits

kissarat

1 commits

Languages

TypeScript

42.8%

JavaScript

36.4%

HTML

20.8%