Socket
Socket
Sign inDemoInstall

2d-algebra

Package Overview
Dependencies
0
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 3.1.0

2

package.json
{
"name": "2d-algebra",
"version": "3.0.0",
"version": "3.1.0",
"description": "Library for building expressions and computing derivatives",

@@ -5,0 +5,0 @@ "repository": "github:abersnaze/2d-algebra",

@@ -87,11 +87,12 @@ # 2D Algebra Typescript Module

| eq(b) | equivalent to `minus(b).squared()` |
| abs() | replaces the top term with the absolution value |
Once the expression is complete you can use the following methods
| Method | Description |
| ------------------------------ | --------------------------------------------------------------------------------- |
| eval(Map<symbol, number>) | fully evaluate the expression. throw error if not all of the symbols are defined. |
| apply(Map<symbol, Expression>) | substitute one or more variables with expressions and return the new expression. |
| derivative(symbol) | compute the partial derivative with respect to one symbol. |
| toString() | makes a ASCII art tree diagram of the expression tree. |
| Method | Description |
| ------------------------- | ----------------------------------------------------------------------------------- |
| eval(Map<symbol, number>) | fully evaluate the expression. throw error if not all of the symbols are defined. |
| apply(Map<symbol, Term>) | substitute one or more variables with different term and return the new expression. |
| derivative(symbol) | compute the partial derivative with respect to one symbol. |
| toString() | makes a ASCII art tree diagram of the expression tree. |

@@ -98,0 +99,0 @@ ### Why no parentheses? `(` or `)`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc