robust-sum

WebJar for robust-sum

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

robust-sum
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

robust-sum
WebJar for robust-sum
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/mikolalysenko/robust-sum

Скачать robust-sum

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/robust-sum/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>robust-sum</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/robust-sum/
implementation 'org.webjars.npm:robust-sum:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/robust-sum/
implementation ("org.webjars.npm:robust-sum:1.0.0")
'org.webjars.npm:robust-sum:jar:1.0.0'
<dependency org="org.webjars.npm" name="robust-sum" rev="1.0.0">
  <artifact name="robust-sum" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='robust-sum', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "robust-sum" % "1.0.0"
[org.webjars.npm/robust-sum "1.0.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

robust-sum

Computes the sum of two increasing non-overlapping sequences of floats as an increasing non-overlapping sequence. This can be used to perform exact arithmetic calculations on floating point values.

For more information, see:

testling badge

build status

Install

	npm install robust-sum

Example

var robustSum = require("robust-sum")

var seq = robustSum([1, 64], [1e-64, 1e64])
console.log("result = ", seq)

API

require("robust-sum")(a, b)

Computes the sum of two non-overlapping increasing sequences of floats exactly as a non-overlapping increasing sequence of floats.

  • a is a non-overlapping sequence of floats that is increasing in magnitude
  • b is a non-overlapping sequence of floats that is increasing magnitude

Returns A non-overlapping increasing sequence that encodes the result of a+b

Credits

Based on JRS' robust geometric predicates for floating point arithmetic.

Implementation (c) 2013 Mikola Lysenko. MIT License

Версии библиотеки

Версия
1.0.0