All Projects β†’ axetroy β†’ deno_math

axetroy / deno_math

Licence: other
Deno module for high-precision calculations and scientific computing

Programming Languages

typescript
32286 projects

Labels

Projects that are alternatives of or similar to deno math

deno sticker
πŸ¦• The data I used for submitting for printing deno_sticker.
Stars: ✭ 50 (+138.1%)
Mutual labels:  deno
deno cheerio
How to use cheerio in Deno
Stars: ✭ 23 (+9.52%)
Mutual labels:  deno
svelte
Svelte compiler ported to Deno
Stars: ✭ 71 (+238.1%)
Mutual labels:  deno
Thread
type safe multi-threading made easier
Stars: ✭ 34 (+61.9%)
Mutual labels:  deno
dotland
deno.land website
Stars: ✭ 947 (+4409.52%)
Mutual labels:  deno
garn-validator
Create validations with ease
Stars: ✭ 42 (+100%)
Mutual labels:  deno
denoliver
A simple, dependency free static file server for Deno with possibly the worst name ever.
Stars: ✭ 94 (+347.62%)
Mutual labels:  deno
croner
Trigger functions and/or evaluate cron expressions in JavaScript. No dependencies. Most features. All environments.
Stars: ✭ 169 (+704.76%)
Mutual labels:  deno
zeno.zsh
zsh fuzzy completion and utility plugin with Deno.
Stars: ✭ 119 (+466.67%)
Mutual labels:  deno
compress
compress and uncompress for Deno
Stars: ✭ 29 (+38.1%)
Mutual labels:  deno
oembed-parser
Extract oEmbed data from given webpage
Stars: ✭ 65 (+209.52%)
Mutual labels:  deno
azure-functions-deno-worker
Run Deno πŸ¦• on Azure Functions ⚑️
Stars: ✭ 99 (+371.43%)
Mutual labels:  deno
shell
A very lightweight framework for building shell/CLI applications. Works in Node.js, Deno, and the browser.
Stars: ✭ 63 (+200%)
Mutual labels:  deno
land
Run Deno X module without installation.
Stars: ✭ 39 (+85.71%)
Mutual labels:  deno
Deno-news-cli
A deno based CLI app to show quick news at your terminal
Stars: ✭ 18 (-14.29%)
Mutual labels:  deno
awesome-oak
A list of community projects for oak
Stars: ✭ 63 (+200%)
Mutual labels:  deno
kafkaSaur
Apache Kafka client for Deno
Stars: ✭ 42 (+100%)
Mutual labels:  deno
sinco
Browser Automation and Testing Tool for Deno, written in full TypeScript
Stars: ✭ 54 (+157.14%)
Mutual labels:  deno
deno serverless aliyun
δΈΊι˜Ώι‡ŒδΊ‘ serverless 平台添加 Deno Runtime
Stars: ✭ 60 (+185.71%)
Mutual labels:  deno
deno-bin
Use Deno via npm
Stars: ✭ 52 (+147.62%)
Mutual labels:  deno

Build Status

math

The math module is used to provide a helper for high-precision calculations and scientific computing.

Usage

All the following modules are exposed in mod.ts

Big

A class for high-precision calculations.

import { Big } from "https://deno.land/x/[email protected]/mod.ts";

new Big(0.1).plus(0.2).toString(); // '0.3'

Documentation

Matrix

A class for Matrix computing.

import { Matrix } from "https://deno.land/x/[email protected]/mod.ts";

const m = new Matrix([
  [1, 2, 3],
  [4, 5, 6]
]).transpose();

console.log(m.toString());
/**
1, 4
2, 5
3, 6
*/

Documentation

abs

get a numeric absolute value.

import { abs } from "https://deno.land/x/[email protected]/mod.ts";

abs(-1); // '1'
abs("-0.1"); // '0.1'

min

get a smaller numeric from a numeric set. Similar to Math.min.

import { min } from "https://deno.land/x/[email protected]/mod.ts";

min([-1, 0, "1"]); // '-1'

max

get a larger numeric from a numeric set. Similar to Math.max.

import { max } from "https://deno.land/x/[email protected]/mod.ts";

max([-1, 0, "1"]); // '1'

sum

get the sum of a numeric set.

import { sum } from "https://deno.land/x/[email protected]/mod.ts";

sum([1, "2", 3]); // '6'

plus

get the value of a numeric plus another numeric. Similar to Javascript + operator.

import { plus } from "https://deno.land/x/[email protected]/mod.ts";

plus("1", 2); // '3'

minus

get the value of a numeric minus another numeric. Similar to Javascript - operator.

import { minus } from "https://deno.land/x/[email protected]/mod.ts";

minus("1", 2); // '-1'

times

get the value of a numeric times another numeric. Similar to Javascript * operator.

import { times } from "https://deno.land/x/[email protected]/mod.ts";

times("1", 2); // '2'

div

get the value of a numeric divided another numeric. Similar to Javascript / operator.

import { div } from "https://deno.land/x/[email protected]/mod.ts";

div("1", 2); // '0.5'

mod

get the value of a numeric modulo another numeric. Similar to Javascript % operator.

import { mod } from "https://deno.land/x/[email protected]/mod.ts";

mod("3", 2); // '1'

pow

get the value of a numeric raised to the power another numeric. Similar to Math.pow.

import { pow } from "https://deno.land/x/[email protected]/mod.ts";

pow("3", 2); // '9'

sqrt

get the value is the square root of a numeric. Similar to Math.sqrt.

import { sqrt } from "https://deno.land/x/[email protected]/mod.ts";

sqrt("3", 2); // '1.7320508075688772'

round

get the value of input rounded using rounding mode rm to a maximum of dp decimal places. Similar to Math.round.

import { round } from "https://deno.land/x/[email protected]/mod.ts";

round("3.456", 2); // '3.46'

toExponential

get an exponential notation string from a numeric. Similar to Number.prototype.toExponential.

import { toExponential } from "https://deno.land/x/[email protected]/mod.ts";

toExponential("3.456", 2); // '3.46e+0'

toFixed

get a normal notation string from a numeric. Similar to Number.prototype.toFixed.

import { toFixed } from "https://deno.land/x/[email protected]/mod.ts";

toFixed("3.4", 6); // '3.400000'

toPrecision

get the value of a numeric to the specified number of sd significant digits. Similar to Number.prototype.toPrecision.

import { toPrecision } from "https://deno.land/x/[email protected]/mod.ts";

toPrecision("3.4567890", 6); // '3.456789'

eq

Where a numeric equal to another numeric. Similar to Javascript === operator.

import { eq } from "https://deno.land/x/[email protected]/mod.ts";

eq("1.200", "1.2e+0"); // true

gt

Where a numeric greater than another numeric. Similar to Javascript > operator.

import { gt } from "https://deno.land/x/[email protected]/mod.ts";

gt(2, "1"); // true

gte

Where a numeric greater than or equal to another numeric. Similar to Javascript >= operator.

import { gte } from "https://deno.land/x/[email protected]/mod.ts";

gte(2, "1"); // true
gte(2, "2"); // true
gte(2, "3"); // false

lt

Where a numeric less than another numeric. Similar to Javascript < operator.

import { lt } from "https://deno.land/x/[email protected]/mod.ts";

lt(2, "1"); // false
lt(2, "2"); // false
lt(2, "3"); // false

lte

Where a numeric less than or equal to another numeric. Similar to Javascript <= operator.

import { lte } from "https://deno.land/x/[email protected]/mod.ts";

lte(2, "1"); // false
lte(2, "2"); // true
lte(2, "3"); // false
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].