Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ algebra Public

means completeness and balancing, from the Arabic word ljbr

License

Notifications You must be signed in to change notification settings

fibo/algebra

Repository files navigation

algebra

means completeness and balancing, from the Arabic word ljbr

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

About

means completeness and balancing, from the Arabic word ljbr

Topics

Resources

Readme

License

MIT license

Stars

Watchers

Forks

Packages

No packages published

Contributors 3