Skip to content

maxbucknell/psym

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

psym Build Status

Symbolic mathematics in JavaScript.

Introduction

var psym = require('psym')
var a = psym.symbol('a')
var expr = psym.operations.add(psym.operations.multiply(3, a), 4)

psym.print(expr)
// '(3・a)+4)'
psym.evaluate(expr)
// Error: Symbol 'a' could not be resolved into a number with given scope
psym.evaluate(expr, {a: 10})
// 34

License

Copyright (c) 2014 Max Bucknell. Licensed under the MIT license.

About

Symbolic mathematics in JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors